Which RBAC permissions are effectively cluster-admin in disguise?
AdvancedConceptKubernetes Security
Answer
createonpods(or any workload): run a pod that mounts a privileged SA token or a hostPath, and become someone stronger.get/list/watchonsecrets: read every SA token and credential in scope.listreturns full contents, not just names.escalateandbindon roles: grant yourself permissions you do not hold.impersonateon users, groups or service accounts.pods/exec,pods/attach,nodes/proxy: run commands in other workloads or reach the kubelet API.update/patchonvalidatingwebhookconfigurationsormutatingwebhookconfigurations: disable or hijack policy.- Wildcards (
*) on verbs or resources.
We alert on bindings that grant any of these outside the platform team.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerHow do service account tokens work now, and what is `automountServiceAccountToken`?IntermediateWhat are the three Pod Security Standards?Beginner