Kubernetes RBAC: Roles, Bindings and Least Privilege
Kubernetes RBAC controls which authenticated users, groups, and ServiceAccounts may call the Kubernetes API. This lesson explains Roles, ClusterRoles, bindings, verbs, subresources, and ServiceAccounts, then shows how to design least-privilege grants, spot escalation paths, and prove effective access with kubectl auth can-i before a small permission becomes cluster control.
Introduction
Kubernetes RBAC decides whether an authenticated user, group, or ServiceAccount may perform one API action. It does not prove who the caller is, and it does not control what a container can do after it starts. This lesson builds narrow grants, checks effective access, and closes paths that turn small permissions into cluster control.
Illustrative composite: a payments team gives its deployment ServiceAccount the built-in edit role in the production namespace because a release job needs to patch one Deployment. The grant also lets that identity read Secrets and create Pods that run as other ServiceAccounts in the namespace. Months later, a leaked CI token is used to read a database Secret. No single rule looked dramatic during review. The failure came from treating a namespace-wide convenience role as a release permission.
This is Module 9 of the Kubernetes roadmap series. The previous lesson covered StatefulSet storage patterns, where stateful workloads need stable identity and storage. Security starts with a similar question: which identity may act, on which objects, and inside which boundary? The next lesson in Module 9 Kubernetes Security covers SecurityContext and Pod Security Standards. Keep the split clear from the start. RBAC governs API requests. Pod security controls runtime privilege after a Pod is admitted.
The 5-minute takeaway
Start with one subject, one task, and one namespace. Write the smallest Role that names the API groups, resources, subresources, and verbs required. Bind it with a RoleBinding. Use a ClusterRoleBinding only when the task truly crosses namespaces or touches cluster-scoped resources. Test allowed and denied actions with kubectl auth can-i, then review the grant for escalation paths before you call it least privilege.
1. Kubernetes RBAC model: subjects, rules, and bindings
Kubernetes RBAC connects a subject to a set of allowed API actions through a binding. The subject is a user, group, or ServiceAccount. The Role or ClusterRole holds rules. The binding grants those rules at namespace or cluster scope. Authentication identifies the caller first; RBAC then answers whether that caller may act.
A useful way to read any grant is to ask four questions in order. Who is the subject? Which verbs may that subject use? On which API groups, resources, and subresources? Where does the grant apply? If one answer is vague, the grant is not ready for production. "The app needs access" is not a permission design. "The payments-api ServiceAccount may get the payments-config ConfigMap in the payments namespace" is a design you can review and test.
RBAC permissions are additive. There are no deny rules. Effective access is the union of every Role and ClusterRole bound to the subject directly, through group membership, and through aggregated ClusterRoles. That is why removing one binding may not remove access. Another binding, a broad group such as system:authenticated, or an aggregated role may still grant the same action. Access reviews must check effective permissions, not one YAML file in isolation.
Authentication and authorization also fail differently. A bad token, expired certificate, or wrong identity mapping is an authentication problem. A Forbidden response from the API server usually means the caller was identified but the authorizer did not allow the verb, resource, subresource, namespace, or named object. Start debugging from that distinction and you avoid changing RBAC when the real fault is identity mapping in the cloud provider or identity provider.
2. Kubernetes RBAC scope: Role versus ClusterRole
Kubernetes RBAC uses a Role for permissions inside one namespace and a ClusterRole for cluster-scoped objects, non-resource URLs, or reusable rules. A ClusterRole is not automatically cluster-wide in effect. The binding decides whether its namespaced-resource rules apply in one namespace or across all namespaces.
| Object | Where it lives | What it can describe | Typical use |
|---|---|---|---|
Role |
One namespace | Namespaced resources in that namespace | App reads one ConfigMap; operator patches Deployments in its namespace |
ClusterRole |
Cluster scope | Namespaced resources, cluster-scoped resources, and non-resource URLs | Shared pod reader; node reader; monitoring rules reused by namespace |
RoleBinding |
One namespace | Grants a Role or ClusterRole inside that namespace | Team access to one namespace; workload ServiceAccount access |
ClusterRoleBinding |
Cluster scope | Grants a ClusterRole across namespaces and cluster-scoped resources | Platform controllers, cluster monitoring, break-glass administration |
The common mistake is to create a ClusterRole and assume the work is done. A ClusterRole by itself grants nothing. It becomes effective only when a binding references it. Bound through a RoleBinding, its rules for namespaced resources apply only in the binding namespace. Bound through a ClusterRoleBinding, the same rules apply across namespaces, and rules for cluster-scoped resources or non-resource URLs can take effect.
Choose a Role when the permission belongs to one namespace and will not be reused. Choose a ClusterRole when several namespaces need the same rule set, or when the rule targets objects such as Nodes, PersistentVolumes, StorageClasses, Namespaces, or endpoints such as /healthz. Even then, prefer RoleBindings in each namespace unless the subject truly needs every namespace. Reuse is a reason for a ClusterRole. It is not a reason for a ClusterRoleBinding.
Namespace scope is a security boundary, but it is not a hard wall inside the namespace. Subjects that can create workloads in a namespace can often reach Secrets, ConfigMaps, mounted volumes, and ServiceAccounts in that same namespace. Separate teams, trust levels, and production data into different namespaces when the blast radius matters. RBAC can narrow API actions, but namespace design decides how much damage one allowed action can reach.
3. Kubernetes RBAC bindings: RoleBinding versus ClusterRoleBinding
Kubernetes RBAC bindings attach subjects to roles and set the scope where those rules apply. A RoleBinding grants access in one namespace and may reference a Role in that namespace or a ClusterRole. A ClusterRoleBinding grants a ClusterRole across the cluster. The binding, not the role name, sets the reach.
Subjects need exact names. User and group names are case sensitive and come from the authenticator, such as an identity provider, client certificate, or cloud identity mapping. ServiceAccount subjects name the account and its namespace. A ServiceAccount in observability can be the subject of a RoleBinding in payments; the grant then applies to resources in payments, because the binding lives there. That pattern is useful for a central monitor that needs narrow reads in selected namespaces without a cluster-wide grant.
The referenced ClusterRole can define get, list, and watch on Pods. The RoleBinding limits those Pod rules to payments. If the same ClusterRole also contains a rule for Nodes, that part does not become a useful node grant through this namespace binding. Node access needs a ClusterRoleBinding because Nodes are cluster-scoped.
Bindings have one operational trap: roleRef is immutable. You cannot edit a binding to point at a different role. Delete and recreate the binding, or manage RBAC manifests with kubectl auth reconcile, which handles replacement when the referenced role changes. During an incident, this matters because a quick patch to roleRef will fail while the old grant remains active. Plan the replacement, apply it, and verify effective access after the change.
Group bindings deserve the same care as direct user bindings. Binding a group is usually better than binding many individual users because the identity provider owns membership. The risk is a broad group. system:authenticated means every authenticated identity. system:serviceaccounts means every ServiceAccount in every namespace. system:serviceaccounts:payments means every ServiceAccount in one namespace. Those groups can be correct for discovery or platform functions, but they should never receive write access by accident.
4. Kubernetes RBAC rules: API groups, resources, and verbs
Kubernetes RBAC rules name API groups, resources, and verbs. The core API group is written as an empty string. Resources use the plural API names, such as pods, secrets, and deployments. Verbs describe the API action, such as get, list, watch, create, update, patch, or delete.
Read verbs are not equal. get reads one named object. list reads a collection. watch streams changes. For Secrets, list and watch can reveal Secret contents just as surely as get. Write verbs also differ. create makes a new object. update replaces an object. patch changes part of an object. delete removes one object. deletecollection removes a collection selected by labels and should be treated as a bulk destructive permission.
The example below gives a release operator only the actions it needs in one namespace. It can read Pods and logs, read Deployments, patch Deployments, and update the scale subresource. It cannot read Secrets, create Pods, or change RBAC objects.
Wildcards need a hard review. A * in apiGroups, resources, or verbs also covers future resources, subresources, and verbs added later by Kubernetes or custom APIs. That may be acceptable inside a tightly controlled platform role. It is rarely acceptable for an application ServiceAccount, a CI job, or a human team role. When a vendor chart asks for wildcards, ask which API calls the controller actually makes and split the grant by resource and verb.
Use API discovery to avoid guessing resource names. kubectl api-resources shows namespaced and cluster-scoped resources. kubectl api-resources --api-group=apps narrows the list to one group. For custom resources, the plural name and API group come from the CustomResourceDefinition. A rule with the wrong plural name can apply cleanly and still grant nothing useful, which is why effective-access tests belong in the change.
5. Kubernetes RBAC subresources and resourceNames
Kubernetes RBAC treats subresources as separate permissions. Access to pods does not include pods/log, pods/exec, pods/portforward, or pods/attach. Access to deployments does not automatically include deployments/scale. Name each subresource only when the task needs that exact API path before production use.
Subresources often carry more power than the parent resource. pods/log exposes application output, which may contain tokens or customer data. pods/exec and pods/attach can run or join processes in a container. pods/portforward can reach a Pod network namespace through the API server. serviceaccounts/token can create tokens for existing ServiceAccounts. nodes/proxy can reach kubelet APIs, and even get there is not a harmless read. Review subresources as separate security decisions, not as small additions to a parent rule.
resourceNames narrows some requests to named objects. It is useful for a workload that must read one ConfigMap, update one Lease, or patch one named object. It has limits. Top-level create cannot be restricted by name because the object name may not be known during authorization. deletecollection cannot be restricted by name. list and watch with resourceNames require the client to send a metadata.name field selector that matches the allowed name. Subresource creation is different: a rule can use resourceNames with pods/exec to limit exec to named Pods.
Treat named-object rules as a precision tool, not a substitute for scope. A named Secret read in production is still a Secret read. A named Pod exec rule still gives shell access to that Pod. The question is whether the subject needs that action at all. If the answer is yes, resourceNames can keep the grant from spreading to every object of that type in the namespace.
6. Kubernetes RBAC ServiceAccounts and workload identity
Kubernetes RBAC gives Pods API permissions through ServiceAccounts. Every namespace has a default ServiceAccount, and Pods use it unless the Pod spec names another account. Production workloads should use a dedicated ServiceAccount when they call the Kubernetes API, and no token when they do not.
A dedicated ServiceAccount makes access review possible. You can bind one Role to payments-api, another to payments-worker, and none to a batch job that only talks to a database. If every Pod uses default, one binding for a small task quietly becomes shared by every workload that forgot to set serviceAccountName. Set automountServiceAccountToken: false on the Pod or ServiceAccount when the workload does not need the Kubernetes API. A token that is not mounted cannot be stolen from the Pod filesystem.
Keep cloud identity separate in your head. On AWS, an IAM role can grant S3, DynamoDB, or Secrets Manager access to a workload, and IAM identity mapping can decide which Kubernetes username and groups a caller receives. Kubernetes RBAC then decides what that username, group, or ServiceAccount may do through the Kubernetes API. A Pod can have AWS access and no Kubernetes API access. It can also have Kubernetes API access and no AWS access. The AWS IAM Identity Center guide covers the cloud side; this lesson owns the cluster authorization side.
Secret access needs the same split. A Pod that mounts a Secret as a volume or environment variable does not need RBAC permission to get that Secret through the API. The kubelet delivers the mounted data. RBAC matters when a subject calls the API to read Secret objects. That is why get, list, and watch on secrets are sensitive even when the workload already consumes one Secret through a mount. For storage and rotation patterns, use the Kubernetes ConfigMaps and Secrets guide beside this lesson.
7. Kubernetes RBAC least privilege: design patterns
Kubernetes RBAC least privilege means each subject receives only the API actions required for one job, at the smallest scope that still works. Start in one namespace. Name resources and verbs. Separate read, deploy, debug, and administration. Test the denied cases as carefully as the allowed cases.
Design from the task, not from a job title. "Developer" can mean read logs in staging, patch a Deployment in one namespace, or administer every namespace. Those are different grants. Write the task as an API sentence: subject, verb, resource, subresource, namespace, and object name when possible. Then turn that sentence into a rule. If the sentence needs the word "everything", the task is probably several tasks wearing one label.
Separate duties that fail in different ways. A read-only observer needs get, list, and watch on selected resources, usually without Secrets. A release job needs patch access to named workload controllers and read access to rollout status. A debug role may need pods/log, and only rarely pods/exec or pods/portforward. A namespace administrator may need Role and RoleBinding management inside one namespace. A cluster administrator needs break-glass access that is rare, logged, and reviewed. Mixing those duties into one daily grant makes every token more valuable to an attacker.
Prefer groups for people and ServiceAccounts for workloads. Bind human access to identity-provider groups so joiners and leavers are handled outside the cluster. Bind workload access to the exact ServiceAccount named in the Pod spec. Avoid binding individual users except for short-lived exceptions with an expiry and owner. Avoid cluster-admin for daily work. If an administrator needs to inspect access, a low-privilege account with narrowly scoped impersonation for checks can be safer than doing every task as cluster-admin, but impersonation itself must be reviewed as a powerful grant.
Put RBAC manifests in Git and review them like production code. Policy checks should flag wildcards, Secret reads, workload creation, RBAC object writes, impersonate, escalate, bind, serviceaccounts/token, nodes/proxy, webhook configuration writes, and ClusterRoleBindings. The wider production habits in Kubernetes best practices apply here: small blast radius, clear ownership, and changes that can be reviewed before they reach the cluster.
8. Kubernetes RBAC built-in roles and aggregation
Kubernetes RBAC ships user-facing ClusterRoles named cluster-admin, admin, edit, and view. They are useful starting points, but they are broader than many production tasks. Aggregation can extend admin, edit, and view when operators add labelled ClusterRoles for custom resources, so review them after installs.
cluster-admin gives superuser access when bound cluster-wide. Through a RoleBinding, it gives full control over resources in that namespace, including the namespace itself. admin is intended for namespace administration through a RoleBinding. It allows read and write access to most namespace resources, including Roles and RoleBindings, but not write access to ResourceQuota or the Namespace object. edit allows read and write access to most objects in a namespace, but it does not allow viewing or modifying Roles or RoleBindings. It still allows Secret access and running Pods as any ServiceAccount in the namespace. view allows read access to most namespace objects, but not Roles, RoleBindings, or Secrets.
Those details explain why edit is not a harmless developer role. In a namespace with a powerful controller ServiceAccount, a subject with edit can create a Pod that uses that ServiceAccount and inherits its API access. The risk is not only the verbs printed in the role. It is the namespace contents those verbs can reach. Use view for broad read access where Secret exclusion is enough. Use custom Roles when the task is narrower than edit, which is often.
Aggregation is the mechanism that lets custom resources join the built-in roles. A ClusterRole with an aggregationRule selects other ClusterRoles by label, and the control plane fills its rules from the selected objects. The built-in admin, edit, and view roles use labels such as rbac.authorization.k8s.io/aggregate-to-admin, rbac.authorization.k8s.io/aggregate-to-edit, and rbac.authorization.k8s.io/aggregate-to-view. An operator can add a labelled ClusterRole so existing view bindings can read its custom resource without a new binding.
Audit aggregation after installing operators. List ClusterRoles with aggregate labels, read the effective view, edit, and admin rules, and check whether a custom resource contains sensitive data or actions. Do not hand-edit the rules field of an aggregated ClusterRole and expect the edit to survive. The control plane manages those rules from the selected ClusterRoles. Change the contributing ClusterRole or its labels instead.
9. Kubernetes RBAC privilege escalation risks
Kubernetes RBAC privilege escalation happens when a small grant can be used to gain a larger grant. The dangerous permissions are not limited to cluster-admin. Review verbs that manage RBAC itself, read Secrets, create workloads, mint tokens, impersonate identities, or control admission and node access.
The RBAC API has built-in escalation prevention. A subject cannot create or update a Role or ClusterRole containing permissions it does not already hold at the same scope, unless it has the escalate verb on roles or clusterroles. A subject cannot create or update a binding to a role whose permissions it does not already hold, unless it has the bind verb on the referenced role. Those guardrails are why escalate and bind need exact scoping. Use resourceNames on bind when a namespace administrator may grant only named roles such as view. Treat unscoped bind on clusterroles as a path to cluster-admin.
impersonate is a separate risk. It lets a subject act as another user, group, ServiceAccount, UID, or user-extra value. resourceNames can limit which identity values may be impersonated, but classic impersonation still gives the impersonator the actions available to that identity. User and group impersonation is not namespace scoped. ServiceAccount impersonation can be granted with namespace scope, yet the impersonated ServiceAccount may hold cluster-wide rights. Audit impersonation by identity and by the effective rights of every identity it can reach.
Other grants need escalation review even when they look operational. get, list, or watch on secrets can expose credentials. create on Pods or workload controllers can mount Secrets and ConfigMaps, use any ServiceAccount in the namespace, and request host access if Pod security allows it. create on serviceaccounts/token can mint tokens for existing ServiceAccounts. get on nodes/proxy can reach kubelet APIs. create on PersistentVolumes can create hostPath access. Write access to webhook configurations can change admission behaviour. CSR creation plus approval can create client certificates. Patch access to Namespace labels can weaken policies that select namespaces by label.
Members of system:masters bypass RBAC checks. Do not treat that group as a normal admin group. Review who can authenticate with that group through certificates, identity mappings, or cloud access configuration. Also review bindings for system:unauthenticated, system:authenticated, and system:serviceaccounts. Discovery access may be intentional. Write access for those broad groups is a finding until proven otherwise.
10. Kubernetes RBAC audit with kubectl auth can-i
Kubernetes RBAC audit work should prove effective access, not only read YAML. Use kubectl auth can-i for targeted checks, kubectl auth can-i --list for a subject view, and binding inventory to find every path that grants access. Test both allowed actions and actions that must stay denied.
--as flag uses impersonation, so the auditor needs impersonation rights for the identity being checked. Use --as-group when group membership matters. For a ServiceAccount, the username form is system:serviceaccount:<namespace>:<name>. Run checks in the namespace where the grant should apply, then repeat the same checks in a namespace where it should fail.
For subresource checks, use --subresource; can-i reads TYPE/NAME as a named object, so a slash form can test the wrong request. Pair those checks with an inventory sweep. Find bindings for the subject, wildcard rules, aggregate labels, and ClusterRoleBindings that name broad groups. A subject can pass one targeted check and still hold a second path through a group or aggregated role.
Remember what can-i does not prove. It answers an authorization question for the supplied subject attributes. It does not prove that admission will accept a Pod, that Pod Security Standards will allow a container setting, that a NetworkPolicy will permit traffic, or that AWS IAM will allow a cloud call. Use it as the RBAC evidence in a wider change review. For CI identities, apply the same evidence habit described in GitHub Actions security best practices: short-lived identity, narrow scope, and no standing broad token.
11. Kubernetes RBAC troubleshooting matrix
Kubernetes RBAC troubleshooting starts by separating identity, scope, verb, resource, and subresource. Most Forbidden errors come from one of those five fields. Most excess-access findings come from an extra binding, a broad group, aggregation, or a namespace that contains more powerful ServiceAccounts than the grant assumed.
| Symptom | First check | Likely fix |
|---|---|---|
Forbidden on kubectl logs |
The role grants pods but not pods/log |
Add get on pods/log only for the subjects that need logs |
Access works in dev but fails in prod |
Binding namespace and subject namespace | Add a RoleBinding in prod or fix the ServiceAccount subject namespace |
| RoleBinding to a ClusterRole cannot read Nodes | Nodes are cluster-scoped | Use a ClusterRoleBinding only if node access is truly required |
Binding edit fails when changing roleRef |
roleRef is immutable |
Delete and recreate the binding, or use kubectl auth reconcile |
can-i says yes but apply is denied |
Admission, quota, webhook, or Pod Security decision | Read the denial message; do not widen RBAC until the denying layer is named |
| Access remains after removing one binding | Another binding, group grant, or aggregated role | Search all bindings for the subject and its groups; check aggregate labels |
view gained access to a custom resource |
Operator ClusterRole has an aggregate-to-view label | Remove the label, narrow the contributing rules, or stop using built-in view for that audience |
Pod reads a mounted Secret but API get secrets is denied |
Mounted Secret delivery is not an API read by the Pod | Keep API Secret access denied unless the workload must call the API |
| Release job can patch a Deployment but cannot scale it | deployments/scale is separate |
Add get, update, or patch on deployments/scale only if scaling is part of the job |
| Role creation is forbidden | Escalation prevention blocks permissions the creator does not hold | Grant the missing permissions to the creator, narrow the role, or scope escalate with care |
| Binding creation is forbidden | The creator lacks the referenced role permissions | Grant the referenced permissions or scope bind to named roles |
When a request fails, copy the exact verb, resource, subresource, namespace, and object name from the error or audit log. Then run the matching can-i check with the same subject attributes. A check for get pods does not prove get pods/log. A check in the wrong namespace proves nothing about production. A check without --as-group can miss the group path that made the real request succeed or fail.
When access is too broad, work backward from effective permissions. List the subject rules, find every binding that names the subject or its groups, read the referenced roles, then check aggregation labels on ClusterRoles that feed built-in roles. Remove the widest path first, retest the task, and keep the narrower grant that still lets the work run. That order reduces risk without turning the fix into a guessing exercise.
12. Kubernetes RBAC production checklist
Kubernetes RBAC is production-ready when every grant has an owner, a task, a scope, and evidence. The checklist below turns the lesson into an access review. Use it for new namespaces, operator installs, CI identities, and quarterly reviews of human access.
- [ ] Each workload that calls the Kubernetes API has a dedicated ServiceAccount.
- [ ] Workloads that do not call the API set
automountServiceAccountToken: false. - [ ] Human access is bound to identity-provider groups, not scattered individual users.
- [ ] Roles name API groups, resources, subresources, and verbs without wildcards.
- [ ] RoleBindings are the default; ClusterRoleBindings have a written cluster-scope reason.
- [ ] Secret
get,list, andwatchgrants are rare, named where possible, and reviewed. - [ ] Workload creation rights are limited to namespaces whose ServiceAccounts and Secrets match the trust level.
- [ ]
impersonate,escalate, andbindare absent or scoped to named identities and roles. - [ ]
serviceaccounts/token,nodes/proxy, webhook writes, CSR approval, and PersistentVolume creation are treated as escalation findings. - [ ] Built-in
admin,edit, andviewbindings were checked after operator installs for aggregation changes. - [ ]
kubectl auth can-i --listand targeted denied checks were run for each production subject. - [ ] Break-glass cluster-admin access is separate from daily accounts and reviewed after use.
The next security step is runtime privilege. RBAC can stop a subject from creating a Pod, but it cannot decide whether an admitted Pod may run as root, add Linux capabilities, or use a privileged container. That boundary belongs to SecurityContext and Pod Security Standards in the next lesson. Treat the two controls as one design: RBAC limits who may ask the API for power, and Pod security limits how much power a workload may hold after admission.
Frequently Asked Questions
What is Kubernetes RBAC used for?
Kubernetes RBAC is used to authorize Kubernetes API requests after a caller has been authenticated. It decides whether a user, group, or ServiceAccount may use a verb such as get, patch, or delete on a resource or subresource in a namespace or across the cluster. It does not replace authentication, Pod security, NetworkPolicy, or cloud IAM.
In Kubernetes RBAC, what is the difference between Role and ClusterRole?
In Kubernetes RBAC, a Role lives in one namespace and grants permissions there. A ClusterRole lives at cluster scope and can describe namespaced resources, cluster-scoped resources, and non-resource URLs. A ClusterRole grants nothing until bound. A RoleBinding can limit its namespaced rules to one namespace, while a ClusterRoleBinding applies them cluster-wide.
In Kubernetes RBAC, can a RoleBinding reference a ClusterRole?
Yes. In Kubernetes RBAC, a RoleBinding may reference a ClusterRole to reuse the same rules in one namespace. The RoleBinding namespace sets where namespaced-resource permissions apply. This pattern is useful for shared rules such as a pod reader. It does not turn the grant into cluster-wide access, and cluster-scoped resources still need a ClusterRoleBinding.
How do I check Kubernetes RBAC permissions for a ServiceAccount?
Check Kubernetes RBAC permissions with kubectl auth can-i --list --as=system:serviceaccount:<namespace>:<name> -n <namespace>, then run targeted checks for allowed and denied actions. Test Secret reads, Pod creation, token creation, and cluster-wide access. The auditor needs impersonation rights for --as, and group checks may also need --as-group.
Why does Kubernetes RBAC permission on Pods not include logs or exec?
Kubernetes RBAC treats pods/log, pods/exec, pods/portforward, and pods/attach as subresources separate from pods. Reading Pod objects does not grant log access or shell access. Add get on pods/log for logs. Treat exec, attach, and port-forward as higher-risk grants and limit them by namespace, subject, and named Pod where possible.
How is Kubernetes RBAC different from AWS IAM?
Kubernetes RBAC authorizes actions through the Kubernetes API, such as patching a Deployment or reading Pods. AWS IAM authorizes AWS API actions and can also map an AWS identity to a Kubernetes username and groups. A workload may need AWS IAM for S3 and Kubernetes RBAC for the cluster API, or only one of the two.
Which Kubernetes RBAC permissions should trigger an escalation review?
Kubernetes RBAC permissions that should trigger review include impersonate, escalate, bind, Secret get/list/watch, workload creation, create on serviceaccounts/token, get on nodes/proxy, webhook configuration writes, CSR approval, PersistentVolume creation, Namespace patching, and any wildcard rule. Also review bindings for system:masters, system:authenticated, and system:serviceaccounts.
Preparing for Senior Platform & SRE Interviews
Practice real-world cluster triage, RBAC debugging, and pod scheduling scenarios in our Kubernetes scenario interview questions hub.
Explore Interview Scenarios →