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 →
- Render it:
helm template vendor/chart | yq 'select(.kind == "ClusterRole")'and list what the operator really needs. - Check the chart values for a "namespaced" or "restricted RBAC" mode; many charts have one.
- If not, write a narrower ClusterRole and disable chart-managed RBAC (
rbac.create=false). - Install into a dedicated namespace and log its API actions.
- 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.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerWhich RBAC permissions are effectively cluster-admin in disguise?AdvancedHow do service account tokens work now, and what is `automountServiceAccountToken`?Intermediate