~/talk

Security strategies for multi tenant applications

Talkat DjangoCon Europe 2020 Β· 2020-09-18..09-19Β· [security]
slides:none on file

Explains concrete defenses against tenant data leaks: explicit per-query filters, a middleware-backed enforcement layer using djangoscopes that throws scope errors or auto-injects filters, and monitoring (query sampling, result-size thresholds, honeypot tenants). Gives real incidents: two 2017 leaks and a near-total-customer leak last year caught by a quick test. Integration cost is small β€” ~3 hours to retrofit a 55k LOC codebase, ~2–3 days to fully deploy β€” and includes a safe model choice field to prevent form leaks.

AI-written summary Β· about

  1. 0:00Introduction
  2. 0:25What is multi-tenancy
  3. 2:31Database separation options
  4. 6:46Row-level separation explained
  5. 8:11Common data leak risks
  6. 12:46Defense in depth approach
  7. 14:54Introducing Django Scopes
  8. 18:06Real-world integration
  9. 21:57Third layer verification
  10. 23:43Summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← β†’
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.