Interview Prep/DevSecOps/Kubernetes Security

Which RBAC permissions are effectively cluster-admin in disguise?

AdvancedConceptKubernetes Security
Answer
  • create on pods (or any workload): run a pod that mounts a privileged SA token or a hostPath, and become someone stronger.
  • get/list/watch on secrets: read every SA token and credential in scope. list returns full contents, not just names.
  • escalate and bind on roles: grant yourself permissions you do not hold.
  • impersonate on users, groups or service accounts.
  • pods/exec, pods/attach, nodes/proxy: run commands in other workloads or reach the kubelet API.
  • update/patch on validatingwebhookconfigurations or mutatingwebhookconfigurations: disable or hijack policy.
  • Wildcards (*) on verbs or resources.

We alert on bindings that grant any of these outside the platform team.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security