Interview Prep/Kubernetes/Security, RBAC and policy

A pod can create other pods in its namespace. Why is that dangerous?

AdvancedScenarioSecurity, RBAC and policy
Answer

Situation read → Reviewing RBAC shows create pods for a CI ServiceAccount.

What I'd do →

  1. Explain that creating pods allows mounting any Secret or ServiceAccount in the namespace and running arbitrary images
  2. Treat create pods, exec, get secrets and impersonate as privilege escalation paths
  3. Constrain with PSA restricted and admission policy
  4. Split CI per namespace
  5. Audit with kubectl auth can-i --list

Why → Pod creation lets the actor assume the identities and data available in the namespace.

Interview tip → Mention RBAC escalation prevention (bind and escalate verbs).

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security, RBAC and policy