Interview Prep/DevSecOps/Kubernetes Security

A Helm chart from a vendor creates a ClusterRole with `*` on `*`. The team wants to install it today. What do you do?

IntermediateScenarioKubernetes Security
Answer

Situation read → Wildcard RBAC gives the vendor's controller full cluster control. If it is compromised, so is the cluster.

What I'd do →

  1. Render it: helm template vendor/chart | yq 'select(.kind == "ClusterRole")' and list what the operator really needs.
  2. Check the chart values for a "namespaced" or "restricted RBAC" mode; many charts have one.
  3. If not, write a narrower ClusterRole and disable chart-managed RBAC (rbac.create=false).
  4. Install into a dedicated namespace and log its API actions.
  5. Raise an issue with the vendor.

Why → Third-party operators are part of the supply chain and should get least privilege too.

Interview tip → "Render before you install" shows good habits.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security