A developer could create an Application in their project that deploys a ClusterRoleBinding granting cluster-admin. How do you prevent privilege escalation?
AdvancedScenarioTenancy, Security & Secrets
Answer
Situation read → Projects that allow cluster-scoped RBAC kinds are an escalation path.
What I'd do →
- Remove
rbac.authorization.k8s.iocluster kinds from team projects'clusterResourceWhitelist. - Blacklist
Role/RoleBindingin namespaces too if teams should not grant rights, or allow only via a platform-owned tenant chart. - Restrict
sourceReposso teams cannot point at arbitrary repos with arbitrary manifests. - Add Kyverno/Gatekeeper policies as a second layer, and consider destination service account impersonation.
Why → The controller runs with broad rights; the project is what prevents a team from borrowing them.
Interview tip → Say "Argo CD is a confused deputy unless projects restrict it".
More on Tenancy, Security & Secrets
Ten teams share one Argo CD. How do you isolate them?IntermediateCI needs to trigger a sync of one app after a deploy commit. How do you give it access?BeginnerAn auditor says the Sealed Secrets private key is a single point of failure and a single point of compromise. How do you respond?AdvancedYou need the same database password in 12 clusters. Which secrets approach do you choose and why?IntermediateYour team wants to use SOPS with Argo CD. What do you set up?AdvancedA plaintext Secret was committed to the config repo and pushed. What do you do?Beginner