Join our Newsletter — 33% off our NHI Course

How do you configure authorisation modes on the Kubernetes API server?

Configure authorisation modes by enabling the modes that match your control model and ordering them so the API server evaluates access as intended. Most deployments use RBAC as the primary authorisation mechanism, with other modes only where required by design. After configuration, test representative access requests to confirm denied and allowed actions behave correctly.

How Kubernetes API server authorisation modes fit together

The authorisation chain on the kubernetes api server is not just a list of flags, it is a decision order. Each request is evaluated by the enabled modes in sequence until one of them allows or denies the action, so the ordering matters when more than one authorisation mechanism is in use. In most clusters, RBAC is the primary mode because it gives predictable, policy-driven control over who can do what.

That means configuration should start from the access model you actually want to enforce, not from a default assumption that every available mode must be enabled. If you add an additional mode for a special case, make sure you understand whether it broadens access, narrows it, or acts as a fallback for only certain requests. The practical question is whether the resulting evaluation path still matches the privileges you intended to grant.

For cluster operators, the useful mental model is that authorisation mode selection is part of control-plane design. A well-chosen mode set gives you consistent behaviour for users, service accounts, controllers, and other callers of the API. A poorly chosen order can make a request succeed for reasons you did not intend, or fail in ways that are hard to diagnose later.

What to verify after changing API server authorisation settings

After you change the API server configuration, validate it with representative requests instead of assuming the flag file is enough. Test a normal allowed action, a clearly denied action, and at least one request that should be governed by the primary mode you expect to enforce. That confirms the API server is evaluating requests the way you designed, not just the way you configured it on paper.

You should also verify that the change applies to the correct control plane instance and survives the way your cluster is managed, whether that is static pod configuration, bootstrap automation, or a managed Kubernetes platform. In practice, authorisation mistakes often show up as mismatches between intended policy and the live API server process, so the live behaviour matters more than the edited manifest alone.

For teams operating a broader Kubernetes security baseline, it is useful to keep the authorisation setting aligned with the rest of the control plane hardening approach described in the Kubernetes Security Guide. If your environment uses workload or service account permissions heavily, the Kubernetes NHI Security Guide is the more specific companion for understanding how API-server authorisation affects non-human access paths.

When RBAC is enough, and when to add more

RBAC is the right starting point for most clusters because it maps cleanly to roles, bindings, and least-privilege administration. If the access question can be answered with role assignment and resource verbs, RBAC should usually stay the primary mode. Add another authorisation mode only when you have a concrete design reason, such as a special policy path or legacy requirement that RBAC alone does not cover.

That is also where authorisation becomes a governance issue, not just a configuration issue. The moment you combine modes, you need to know which mode is authoritative for which request path, because mixed models can create hidden exceptions. The safest operating pattern is to keep the number of active modes small and make the evaluation order easy to reason about.

If your cluster has more complex access patterns across namespaces, controllers, and automation, the Authorisation Models Guide helps frame where RBAC is sufficient and where finer-grained policy design becomes valuable. For identity lifecycle and access governance around Kubernetes identities, the IAM and IGA Basics guide is useful because API-server authorisation is only one part of the broader entitlement picture.

Risk and Threat Considerations

Misordered or overly broad authorisation modes can create unintended access, especially when teams assume the first matching mode behaves like a deny-by-default policy. In Kubernetes, the real risk is not just configuration drift, but a live control-plane decision path that allows actions outside the intended privilege boundary.

Failure mechanism: A request is evaluated by multiple enabled modes, and the order or fallback logic produces an allow decision that does not match the cluster’s intended access model. If the configuration is copied from another cluster or changed without representative tests, the API server may silently preserve a broader privilege path than operators expect.

Impact: Excessive API access can expose secrets, workload definitions, cluster-scoped resources, or administrative actions, which turns an authorisation misconfiguration into a control-plane compromise path. In practice, that can also make incident response harder because the access path looks legitimate from the API server’s point of view.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 AC-3 — Access Enforcement API server authorisation modes enforce who can do what.
AC-6 — Least Privilege RBAC on the API server should grant only the permissions required.
IA-5 — Authenticator Management API server access depends on the credentials used before authorisation is evaluated.
Recommendation — Configure and verify API access enforcement so requests are allowed or denied as intended. Minimise Kubernetes permissions to the smallest set needed for each role or service account. Manage credentials and tokens so API requests are attributable to the correct identities.
CIS Controls v8 CIS-5 — Account Management Cluster access is governed through identities and roles mapped to API permissions.
Recommendation — Review and remove unnecessary Kubernetes accounts and bindings regularly.
ISO/IEC 27001:2022 A.5.15 — Access control Authorisation modes are the mechanism that enforces access control on the API server.
Recommendation — Define and enforce access control rules for the Kubernetes control plane.

Practitioner Guidance

What to verify: Confirm the active authorisation mode order on the live API server, then test both an allowed and a denied request against the exact roles and users you expect to rely on. If the result surprises you, treat it as a policy design problem first, not a troubleshooting problem.

Common mistake: Treating authorisation mode selection as a one-time bootstrap setting. In managed and rapidly changing clusters, the practical control is whether the running API server still matches the intended mode sequence after upgrades, redeployments, and configuration management changes.

Practitioner takeaway: The safest configuration is the one you can explain request by request, because Kubernetes authorisation is only trustworthy when the live evaluation order matches the access model you intended to enforce.