--authorization-mode
The kube-apiserver flag, and matching kubelet setting, that lists which authorizers decide requests, such as Node,RBAC.
AlwaysAllow lets any authenticated request do anything in the cluster.
In more detail
The API server should use Node and RBAC and never AlwaysAllow. A bare kubelet binary defaults to AlwaysAllow, so its config must set Webhook, which asks the API server about each call.
Related terms
- Node authorizer — A Kubernetes authorizer that limits each kubelet to reading and writing only the objects for pods on its own node.
- role-based access control — An authorization model where permissions are grouped into named roles, such as reader or editor, and people or services are given roles.
- webhook — An HTTP request a provider sends to an address you registered, to tell you an event happened, instead of you polling for it.
Taught in
- The Metadata Endpoint And The Kubelet's Front Door — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Anonymous Access: The Fix That Kills The API Server — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Allowed Registries: Admission That Refuses Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Security Landing Zones & Centralized Egress Inspection — Cloud Security & DevSecOps Engineering
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Eleven Months Of Yes: The API Server — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Copied From A Blog Post: The Kubelet — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Component Sprint: The Reference Build — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Three Of Sixty: The Mock, And How To Read It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep