Interview Prep/GitOps & Argo CD/Tenancy, Security & Secrets

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 →

  1. Remove rbac.authorization.k8s.io cluster kinds from team projects' clusterResourceWhitelist.
  2. Blacklist Role/RoleBinding in namespaces too if teams should not grant rights, or allow only via a platform-owned tenant chart.
  3. Restrict sourceRepos so teams cannot point at arbitrary repos with arbitrary manifests.
  4. 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".

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Tenancy, Security & Secrets