Argo CD holds the keys to every cluster and repository it manages, so a weak Argo CD install is a single place from which an attacker can read secrets, change workloads and reach production. Argo CD stores cluster bearer tokens and Git credentials as Kubernetes Secrets in its own namespace, runs with broad cluster permissions by default, and exposes a web UI and API that teams often publish to the internet for convenience. This guide works through the controls that matter most: the admin account and SSO, RBAC policy, AppProject boundaries, repository credentials, cluster secrets, the exposed API server, patching and logging. It assumes you already understand GitOps; the wider model, including how Argo CD fits beside other GitOps tools, is covered in the GitOps Security Guide.
This is an independent guide from NHI Mgmt Group, based on the Argo CD project's public documentation as of November 2026. It is not sponsored or reviewed by the Argo CD project. Product features change, so confirm settings against the Argo CD project's current documentation. Where this guide goes beyond that documentation, the recommendations are NHI Mgmt Group advice.
Key takeaways
- Use the built-in
adminaccount only for initial setup, then setadmin.enabled: "false"inargocd-cmand move people to SSO through Dex or your own OIDC provider. - Set
policy.defaultinargocd-rbac-cmdeliberately. It applies to every authenticated user, and deny rules cannot take it away. - Stop using the
defaultAppProject. It permits any source repository, any cluster and every resource kind. Any project that can deploy into the Argo CD namespace effectively grants admin. - Repository and cluster credentials are non-human identities. Scope them to projects, prefer GitHub Apps and cloud workload identity over static keys, and give every token an expiry.
- Keep the API server off the open internet where you can, disable the unauthenticated Swagger UI, and patch quickly: recent advisories include critical secret extraction and repository credential exposure issues.
How Argo CD is built and where the risk sits
Argo CD has three core components. The API server (argocd-server) serves the UI, CLI and API and enforces authentication and RBAC. The repo-server clones Git and Helm repositories and renders manifests. The application controller compares desired and live state and applies changes to clusters. The documentation states that all traffic between these services uses TLS, that the repo-server has no Kubernetes privileges and stores no Git credentials, and that the API never returns sensitive data such as cluster credentials, Git credentials, OAuth2 client secrets or Secret values.
The risk concentrates in four places:
- The Argo CD namespace. Cluster credentials, repository credentials and
argocd-secretall live here. Anyone who can read Secrets in this namespace, or deploy into it, controls Argo CD. - The controller's cluster role. The documentation says the default is a cluster-admin level role so Argo CD can read and deploy cluster-wide, and recommends narrowing write access to the namespaces and resources needed.
- Trusted repositories. Write access to a repository Argo CD trusts can change deployed workloads, swap images or prune resources. Helm and Kustomize can also read files outside the application tree during rendering, and remote bases or Helm dependencies can pull from repositories that are not on the allow list.
- The API server endpoint. It is a login page and API for your whole delivery platform. Unauthenticated webhook handlers sit on it too.
In ATT&CK terms, the threats are abuse of exposed remote services (T1133 External Remote Services), stealing credentials through the container platform (T1552.007 Container API) and poisoning the delivery chain (T1195.002 Compromise Software Supply Chain).
Admin account, local users and SSO
Argo CD authenticates API requests with JWTs only. For the local admin account, the password is exchanged for a JWT signed by Argo CD that expires after 24 hours; the password is stored as a bcrypt hash in argocd-secret, and changing it revokes existing admin tokens. The user management documentation recommends using admin only for initial configuration and then setting admin.enabled: "false" in argocd-cm.
For people, use SSO. Argo CD supports the bundled Dex, which is useful for SAML, LDAP or connectors such as GitHub, or an existing OIDC provider configured under oidc.config in argocd-cm. With SSO, the identity provider signs tokens and controls expiry and revocation, and group claims drive RBAC. Configure PKCE where the provider supports it, set a logoutURL so logout also ends the SSO session, and reference client secrets with the $ prefix so they are read from a Secret rather than written into the ConfigMap.
Local accounts still have a place for automation. They are defined as accounts.<name> entries with apiKey and/or login capabilities. Give automation accounts apiKey only, and disable accounts with accounts.<name>.enabled: "false" when no longer needed. Note the documentation's warning: tokens generated with argocd account generate-token without --expires-in never expire.
Login throttling is controlled by environment variables. ARGOCD_SESSION_FAILURE_MAX_FAIL_COUNT defaults to 5 failures within ARGOCD_SESSION_FAILURE_WINDOW_SECONDS (default 300), and ARGOCD_MAX_CONCURRENT_LOGIN_REQUESTS_COUNT caps concurrent logins at 50 by default. Leave these enabled; setting the concurrency limit to 0 disables it. Keep anonymous access (users.anonymous.enabled) off.
RBAC policy that holds up
RBAC lives in argocd-rbac-cm. The policy.csv key holds permission lines (p, <subject>, <resource>, <action>, <object>, <effect>) and group assignments (g, <user or group>, <role>). Two built-in roles exist: role:readonly and role:admin. A matching deny overrides any allow, regardless of order.
Points that commonly go wrong:
policy.defaultis granted to every authenticated user and cannot be blocked by deny rules. Set it to an empty or minimal role. If your identity provider lets every employee log in,role:readonlyas default means every employee can read every application's manifests and live state.- Sensitive actions. Treat
exec(create, a web terminal into pods),applicationsoverride(sync arbitrary manifests or revisions),clusters,repositories,write-repositories,accountsandgpgkeysas admin-level and grant them to small groups. - Fine-grained sub-resources.
updateanddeleteon an application affect only the Application object. Sub-resource access uses the form<action>/<group>/<kind>/<ns>/<name>, and because glob patterns do not treat/as a separator, always write all four segments. - Revision control.
application.sync.requireOverridePrivilegeForRevisionSyncrequiresoverridefor syncs to a specific revision, andserver.rbac.rollback.enforce.enablecreates a separaterollbackpermission. Both are off by default and worth turning on where change control matters. - Scopes. The
scopeskey decides which OIDC claims are checked, defaulting to groups. Map identity provider groups, not individual users, to roles.
Test policy before you ship it. argocd admin settings rbac validate checks a policy file, and argocd admin settings rbac can tests whether a subject can perform an action on a resource. Put both in the pipeline that changes argocd-rbac-cm.
AppProjects as the tenancy boundary
AppProjects decide what an application may deploy, from where and to where. The documentation describes the default project as permitting deployments from any source repository, to any cluster, with all resource kinds. It cannot be deleted, but you can clear its sourceRepos, sourceNamespaces and destinations so any application still using it is denied.
For each team or environment, create a project that sets:
sourceRepos: an explicit list of repositories, with!deny rules where needed. Avoid'*'.destinations: specific clusters and namespaces, with denies for sensitive namespaces such askube-systemand the Argo CD namespace itself.clusterResourceWhitelist: an allow list of cluster-scoped kinds, ideally empty for application teams. Name restrictions can limit, for example, Namespace creation toteam1-*.namespaceResourceBlacklist: denied namespaced kinds, such as RBAC objects if teams should not grant themselves access.permitOnlyProjectScopedClusters: true: stops applications deploying to clusters outside their project. Project-scoped clusters add implicit destinations that do not show in the spec or UI, so audit them separately.
The declarative setup documentation is blunt: projects which can deploy to the Argo CD namespace grant admin access. Lock down who can use such projects and who can push to their source repositories.
Project roles let you issue JWTs for CI scoped to one project. Argo CD does not store these tokens, shows them only at creation, and the CLI creates them without expiry unless you pass -e. Always set an expiry and revoke with delete-token when a pipeline is retired.
Repository credentials
Repository credentials are Secrets labelled argocd.argoproj.io/secret-type: repository, or repo-creds for credential templates that match by URL prefix with the longest match winning. Supported material includes SSH private keys, username and password, TLS client certificates, GitHub App credentials (githubAppID, githubAppInstallationID, githubAppPrivateKey) and Azure service principals.
- Prefer GitHub Apps or short-lived tokens over personal access tokens tied to a human, so access survives staff changes and can be scoped to specific repositories.
- Read-only by default. Argo CD only needs to read most repositories. Keep write credentials (used by features that commit back) separate and controlled with the
write-repositoriesRBAC resource. - Scope to projects. The optional
projectfield scopes a credential to one project; unscoped credentials act as defaults for all projects without their own. - Pin hosts. SSH known hosts go in
argocd-ssh-known-hosts-cmand must be pre-configured. Verify keys out of band rather than trustingssh-keyscanoutput. Custom CAs go inargocd-tls-certs-cm. - Manage the Secret source. If you deliver these Secrets through Sealed Secrets, the documentation notes labels are stripped and must be re-added. The SOPS and Sealed Secrets and External Secrets Operator security guide pages cover delivery patterns.
Cluster secrets and controller privilege
Each managed cluster is a Secret labelled argocd.argoproj.io/secret-type: cluster, with a config that may hold a bearerToken, basic auth, awsAuthConfig or execProviderConfig. The security documentation explains that argocd cluster add creates an argocd-manager ServiceAccount on the target cluster, and that since version 2.4 adding Kubernetes 1.24 or later clusters creates a non-expiring token Secret.
- Use workload identity where available. On EKS, IAM authentication through
get-tokenmeans no token is stored and revocation happens in IAM. The documentation advises limiting the management role's trust policy to the Argo CD service accounts and reviewing any use ofAmazonEKSClusterAdminPolicy, which grants cluster-admin. GKE uses Workload Identity and AKS uses kubelogin flows. - Rotate static tokens. Delete the token Secret on the managed cluster and rerun
argocd cluster add. To revoke fully, delete theargocd-managerServiceAccount, ClusterRole and ClusterRoleBinding and runargocd cluster rm. - Narrow the role. Edit
argocd-manager-roleon external clusters, or theargocd-serverandargocd-application-controllerClusterRoles locally, and add unneeded kinds to resource exclusions. The cluster Secret'snamespacesfield restricts scope, with cluster-level resources ignored unlessclusterResourcesis true. - Never disable TLS verification.
tlsClientConfig.insecure: trueturns off certificate checks for the cluster API.
The How to audit Kubernetes cluster admin bindings walkthrough helps find over-broad bindings left behind by older installs.
Exposed dashboards and the API server
Argo CD instances published to the internet attract scanning, credential guessing and exploitation of unauthenticated bugs. Recent advisories in the project's GitHub security advisories list show why: several 2025 issues let unauthenticated requests crash argocd-server through malformed Azure DevOps, Bitbucket Server and Gogs webhook payloads.
- Put it behind private access. Reach the UI through VPN, zero trust access or an identity-aware proxy. If webhooks must arrive from a SaaS Git provider, expose only the webhook path, ideally through a separate ingress with source restrictions.
- Disable the Swagger UI.
/swagger-uiis unauthenticated by design; setserver.disable.swagger.ui: "true"inargocd-cmd-params-cm. - Enforce modern TLS with
--tlsminversion 1.2, and configure TLS for Redis, which uses plain connections by default. - Treat webhook payloads as untrusted. The documentation notes Argo CD only uses them to trigger a refresh, but configure shared secrets for each provider so unsigned payloads are rejected.
- Restrict
--coremode, which bypasses Argo CD authentication and RBAC, to highly trusted identities.
Patching, logging and detection
Argo CD has a steady stream of security fixes. Advisories published in 2025 and 2026 include a critical "Project API Token Exposes Repository Credentials" issue (GHSA-786q-9hcg-v9ff), a critical "Kubernetes Secret Extraction via ArgoCD ServerSideDiff" issue (GHSA-3v3m-wc6v-x4x3), and a high severity stored XSS in application link annotations that enabled developer-to-admin privilege escalation (GHSA-h98r-wv3h-fr38). Subscribe to the advisories feed, track the supported release lines and patch within days for critical issues.
For detection:
- Argo CD emits Kubernetes Events for application activity, naming the actor where known. Export them with a tool such as Event Exporter or Event Router so they outlive the cluster's short event retention.
- Security log lines carry a
securityfield with levels 1 (Low) to 5 (Emergency); the documentation warns not all security events are tagged yet. Alert on levels 4 and 5. - Client IP addresses are not logged by Argo CD, so log them at the ingress or proxy.
- Watch for changes to
argocd-cm,argocd-rbac-cmand Secrets in the Argo CD namespace, new cluster Secrets, new project tokens, and anyexecsessions. - Cap rendered manifest size with
reposerver.max.combined.directory.manifests.sizeand restrict who can create Applications, since in-memory manifests can reach 300 times their on-disk size.
For the pipeline identities that push to Argo CD's repositories, see the CI/CD Pipeline Identity Security Guide.
Common failure patterns
- The
adminaccount still enabled, with the password shared in a team chat. policy.default: role:readonlycombined with company-wide SSO, exposing every manifest to every employee.- All applications in the
defaultproject, so any team can deploy anything anywhere. - A project that can deploy into the Argo CD namespace, quietly granting admin to its developers.
- Personal access tokens of a departed engineer still serving as repository credentials.
- Non-expiring
argocd-managertokens with cluster-admin on every production cluster. - Project and account tokens created without expiry and never revoked.
- The UI and API on a public load balancer with Swagger enabled and patches months behind.
Practitioner checklist
admin.enabled: "false"is set and people sign in through SSO with group-based RBAC.policy.defaultis minimal and RBAC changes are tested withargocd admin settings rbac validateandcan.- The
defaultproject is emptied; every application belongs to a scoped AppProject. - No project can deploy to the Argo CD namespace except the platform team's.
- Repository credentials use GitHub Apps or short-lived tokens, scoped to projects, read-only where possible.
- Clusters use cloud workload identity or rotated tokens, and controller roles are narrowed.
- Every account and project token has an expiry and an owner.
- The API server is private, Swagger UI is disabled, TLS 1.2 is the minimum and webhooks use shared secrets.
- Argo CD is patched against current advisories, and Events and security logs are shipped to the SIEM.
Standards and references
- Argo CD: Security
- Argo CD: RBAC Configuration
- Argo CD: User Management
- Argo CD: Declarative Setup
- Argo CD: Projects
- Argo CD: GitHub security advisories
- OWASP: Top 10 CI/CD Security Risks
- CISA: Binding Operational Directive 23-02, Mitigating the Risk from Internet-Exposed Management Interfaces
Related NHI Mgmt Group resources: GitOps Security Guide · Kubernetes Security Guide · Helm Security Guide · SOPS and Sealed Secrets