Interview Prep/Helm/Secrets & Security

A chart from the internet requests cluster-admin. How do you evaluate and contain it?

AdvancedScenarioSecrets & Security
Answer

Situation read → Many charts over-request RBAC.

What I'd do →

  1. helm template and review every ClusterRole/Role and binding.
  2. Check whether namespaced mode exists (rbac.clusterWide: false, watchNamespace).
  3. If not, replace with a reduced ClusterRole via values or a post-renderer.
  4. Install in a dedicated namespace with NetworkPolicies, Pod Security restricted, and image signature verification.

Why → Rendered output tells you exactly what you are granting.

Interview tip → Always review rendered RBAC before installing third-party charts.

All Helm questions Roadmap: Helm

More on Secrets & Security