How do you secure multi-tenant clusters against privilege escalation through Pod creation rights?
AdvancedProductionSecurity Hardening & Compliance
Answer
A user who can create Pods can mount any Secret or use any ServiceAccount in that namespace. Restrict via PSA restricted, policy disallowing hostPath, privileged, hostPID, and capabilities beyond a safe set, namespace-scoped RBAC with no cross-namespace Secret access, and scoped ServiceAccount usage via admission rules (a Pod may only use its own SA).
More on Security Hardening & Compliance
What is the baseline security checklist for a production cluster?BeginnerWhy should containers run as non-root?BeginnerHow should human access to the cluster be managed?BeginnerWhat is the purpose of image scanning in CI and in the cluster?BeginnerWhy not store secrets in Git or in ConfigMaps?BeginnerWhat is a default-deny NetworkPolicy baseline?Beginner