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 →
- SSO for the UI, disable the local
adminuser, RBAC viaargocd-rbac-cmper team. - Use
AppProjectto limit source repos, destination clusters and namespaces, and allowed resource kinds per team. - Restrict cluster-scoped resources (
clusterResourceWhitelist) to platform projects. - Protect the config repos: branch protection, CODEOWNERS, signed commits; optionally verify commit signatures in Argo CD.
- 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.
More on Kubernetes Security
What are the 4Cs of cloud native security?BeginnerWhat happens to a request between `kubectl apply` and etcd from a security point of view?IntermediateExplain Role, ClusterRole, RoleBinding and ClusterRoleBinding.BeginnerHow do you check what a user or service account is allowed to do?BeginnerWhich RBAC permissions are effectively cluster-admin in disguise?AdvancedHow do service account tokens work now, and what is `automountServiceAccountToken`?Intermediate