~/talk

Securing Multitenant Databases with Entity Framework Core

Talkat NDC London 2021 · 2021-01-25..01-29· [databases, security]
slides:none on file

Shows how Entity Framework Core queries leak tenant data when application code omits owner constraints, demonstrates three approaches: ad hoc per-query where clauses that are easy to forget, global query filters that secure reads but fail when an entity needs multiple security models (example: view-as-friend vs full ownership), and a robust per-request wrapper pattern that injects compiled filter expressions, enforces checks on find/add/remove, and logs breaches. Includes concrete code, interfaces mirroring DbContext, and a working demo proving unauthorized reads/deletes are blocked.

AI-written summary · about

  1. 0:00Start
  2. 20:00Global Query Filters
  3. 23:39Add Global Query Filter
  4. 57:17Pages
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.