Interview Prep/Kubernetes/Security Hardening & Compliance

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).

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security Hardening & Compliance