Interview Prep/DevSecOps/Kubernetes Security

Your Argo CD instance can deploy to every cluster with admin rights. How do you secure the GitOps control plane?

AdvancedScenarioKubernetes Security
Answer

Situation read → Argo CD is now the most powerful identity in the estate. Whoever controls it or its repos controls production.

What I'd do →

  1. SSO for the UI, disable the local admin user, RBAC via argocd-rbac-cm per team.
  2. Use AppProject to limit source repos, destination clusters and namespaces, and allowed resource kinds per team.
  3. Restrict cluster-scoped resources (clusterResourceWhitelist) to platform projects.
  4. Protect the config repos: branch protection, CODEOWNERS, signed commits; optionally verify commit signatures in Argo CD.
  5. Keep Argo CD patched and its API off the internet.

Why → In GitOps, a merge to the config repo is a deploy, so repo access is production access.

Interview tip → Mention AppProject boundaries; most setups leave the default project wide open.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security