~/talk

Keeping secrets secret in Django

Talkat Django Day Copenhagen 2026 · on Friday, 2026-10-02· [django, security]
slides:none on file

Explains that Django’s SECRET_KEY is used for cryptographic signing (sessions, password reset tokens, messages), shows signing/unsigning code, and demonstrates that changing keys breaks signatures unless added to secret key fallbacks. Presents a practical tool django-root-secrets: generate a per-environment root key, encrypt individual secrets into the repo, and decrypt at runtime with management commands. Covers leak mitigation: least-privilege, short-lived credentials, rotation cadence, and that the package reduces distribution from dozens of secrets to one per environment.

AI-written summary · about

  1. 0:00Introduction
  2. 0:22What is a secret?
  3. 2:04Django secret key explained
  4. 6:59Cryptographic signing in Django
  5. 12:18Generating secure secret keys
  6. 18:40Secret key rotation impact
  7. 21:07Managing secrets in Django
  8. 24:37Root encryption key approach
  9. 27:05Who can access secrets?
  10. 28:56Handling secret leaks
  11. 31:03Q&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.