A Tale of Scalable Authentication
summary
KATs (Crypto Auth Tokens) implement twice-derived keys: a root key produces a per-service verification key, which plus a user identity derives a per user-service creation key. Users fetch that creation key once (cached encrypted in the session), backends fetch the verification key on startup, and users locally HMAC single-use tokens per request. Verification is symmetric and hundreds of times faster than public-key checks, enabling per-request auth at a few million RPS, collapsing many token libraries and preventing broad replay across services.
AI-written summary · about
chapters (11)
- 0:00Introduction to Kats
- 0:35Authentication overview
- 0:58Token authentication basics
- 2:20Authentication models
- 3:39Pre-Kats world challenges
- 5:57Infrastructure and requirements
- 8:54Lifecycle of a Kats token
- 12:32Token generation and validation
- 14:11Scaling authentication
- 15:57Comparing Kats to alternatives
- 18:28Post-Kats world and conclusion
