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

You want Argo CD to deploy with the minimum RBAC in each namespace rather than cluster-admin. What are your options?

AdvancedScenarioTenancy, Security & Secrets
Answer

Situation read → The default controller identity is very powerful.

What I'd do →

  1. Register clusters with namespace-scoped credentials (argocd cluster add --namespace a --namespace b), so the controller only watches and writes those namespaces.
  2. Enable destination service account impersonation and map each project destination to a namespace-local ServiceAccount with a Role.
  3. Install cluster-scoped prerequisites (CRDs, namespaces) through a separate platform pipeline or instance.

Why → The controller can only do what the credentials allow; impersonation brings Kubernetes RBAC per tenant.

Interview tip → Mention Flux's serviceAccountName per Kustomization as the comparable model.

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

More on Tenancy, Security & Secrets