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 →
- Register clusters with namespace-scoped credentials (
argocd cluster add --namespace a --namespace b), so the controller only watches and writes those namespaces. - Enable destination service account impersonation and map each project destination to a namespace-local ServiceAccount with a Role.
- 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.
More on Tenancy, Security & Secrets
Ten teams share one Argo CD. How do you isolate them?IntermediateA developer could create an Application in their project that deploys a ClusterRoleBinding granting cluster-admin. How do you prevent privilege escalation?AdvancedCI 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?Advanced