Journeys · Kubernetes · L2
An API request through authentication, RBAC and admission
Who are you, may you, and is this acceptable? Three different gates, three different error codes.
✓ Validated on v1.37.2 · validation Run 1 · 2026-11-21Preview
The 30-second answer
Every request to the API server passes three gates, in order. Authentication decides who you are, from a client certificate or a bearer token; if no method recognises the credential, you get 401. Authorization decides whether that user may do this verb on this resource; RBAC answers from Roles and RoleBindings, and a no from every authorizer gives 403. Admission sees the object itself, but only for writes: mutating admission may change it, the API server validates it against the schema, then validating admission may reject it. Only then is it stored in etcd.
Mental model
A restaurant kitchen door. The guard checks your badge: no badge he trusts, no entry. The duty roster says what a waiter may do: take orders, yes; open the safe, no. Then the order checker reads the order slip itself, stamps the waiter's name on it, and sends it back if the table number is missing. Only a checked order goes into the ledger.
Where the analogy breaks
A real guard remembers you. The API server checks every request again, from scratch. And reads never meet the order checker: admission only sees writes. A list or a watch stops after the roster.
🔒 Free account
Sign up free to play this journey
A free account unlocks every scenario, journey and exam, and saves your progress. No payment, ever.