~/talk

Role-based access control in Django - How we forked Guardian

Talkat DjangoCon Europe 2026 · 2026-04-15..04-19· [security]
links:none on file
links:none on file
slides:none on file

A fork of Guardian called AK-Guardian fork implements role-based authorization for Django by adding roles, a group hierarchy with cached descendant sets, just-in-time privilege grants, delegated permissions, and moving custom permissions into the database; Django’s model backend is effectively disabled for authorization and replaced by a unified SQL path that joins user→role/group→role-object-permission→permission. The implementation produces a single complex query, benchmarks with 10,000 groups benchmark show very fast results, and the new role object permission model is actively used in production.

AI-written summary · about

  1. 0:00Introduction by host
  2. 1:06Speaker introduction and setup
  3. 2:54What is access control
  4. 4:19Django’s built-in permissions
  5. 10:25Guardian’s object permissions
  6. 14:42Enterprise requirements for RBAC
  7. 21:29Rebuilding Guardian’s architecture
  8. 26:41Final SQL query and benchmarks
  9. 29:12Q&A session
~/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.