Which RBAC permissions do you treat as equivalent to cluster-admin, and how do you find them?
AdvancedProductionKubernetes Security Posture
Answer
Watch for:
escalateorbindon roles/rolebindings (grant yourself more).impersonateon users, groups or service accounts.createonpods(or workloads) in a namespace with privileged service accounts, or without PSA, since you can mount any service account or the host.get/list/watchonsecretscluster-wide (service account tokens and credentials).createonserviceaccounts/token,nodes/proxy,certificatesigningrequests/approval.updateon validating/mutating webhook configurations.
Find them with:
kubectl auth can-i --list --as=system:serviceaccount:argo:argo-server
kubectl get clusterrolebindings -o json | jq -r '.items[] | select(.roleRef.name=="cluster-admin") | .metadata.name'
Tools such as rbac-tool, KubiScan or Kubescape report these paths across the cluster.
More on Kubernetes Security Posture
What is your security baseline for a new production EKS cluster?IntermediateDraw the layered security controls for workloads on Kubernetes.BeginnerHow do you assign Pod Security Admission levels across namespaces in production?BeginnerKyverno, OPA Gatekeeper or ValidatingAdmissionPolicy: how do you choose?IntermediateShow a ValidatingAdmissionPolicy that blocks containers without resource limits.AdvancedHow do you roll out default-deny NetworkPolicies in a running production cluster?Intermediate