Skip to content

Commit 8a7de39

Browse files
authored
(#407) Added docs warning about data leakage prevention. (#442)
1 parent a5a416f commit 8a7de39

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/in-depth/server/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ To use this access control provider, update your `TableController` as follows:
200200

201201
If you want to allow both unauthenticated and authenticated access to a table, decorate the controller with `[AllowAnonymous]` instead of `[Authorize]`.
202202

203+
!!! warning
204+
It is very easy to accidentally leak data for a different user when using access control providers to limit the data. If the operation is create and the entity that exists is for another user, the response will contain the information for the other user.
205+
206+
To prevent this data leakage case, it is important to add a filtering that ensures the data being returned is for the same user.
207+
203208
## Configure logging
204209

205210
Logging is handled through [the normal logging mechanism](https://learn.microsoft.com/aspnet/core/fundamentals/logging/?view=aspnetcore-10.0) for ASP.NET Core. Assign the `ILogger` object to the `Logger` property:

0 commit comments

Comments
 (0)