ArgoCD RBAC controls what authenticated users and groups can do within ArgoCD—viewing, syncing, creating, or deleting Applications, and managing clusters, repos, and projects. It's separate from Kubernetes RBAC (which governs cluster resource access) and is defined in the argocd-rbac-cm ConfigMap using policy rules and roles.
ArgoCD ships two built-in roles: role:admin (full access to everything) and role:readonly (view-only). You define custom roles in the RBAC policy for finer control. The policy.default sets the fallback role for users without a specific grant (often readonly or empty to deny).
Example
policy.default: role:readonly
Real-world example
Unmapped users default to readonly, while a custom 'team-a' role grants sync rights on team-a apps only.
Likely follow-ups
What does role:admin allow? | What is policy.default for?
Use the object field as project/application with wildcards, e.g., `team-a/*` grants a role over all apps in the team-a project. Because AppProjects group apps and constrain destinations/sources, scoping RBAC by project gives clean multi-tenant boundaries—each team manages only its project's apps.
Example
p, role:team-a, applications, *, team-a/*, allow
Real-world example
Team A's role has full application actions but only within the team-a project, isolating them from other teams.
Likely follow-ups
Why scope RBAC by project? | What does the object field represent?
ArgoCD supports SSO via OIDC (directly or through its bundled Dex connector for LDAP, SAML, GitHub, etc.). Users log in with their identity provider; group claims from the token are mapped to ArgoCD roles in the RBAC policy via `g, <group>, <role>` lines, centralizing access control with corporate identity.
AppProjects enforce what can be deployed (allowed repos, destinations, resource kinds) while RBAC enforces who can act on which project's apps. Together they isolate tenants: a team's role is scoped to its project, and the project restricts that team's apps to approved repos, clusters, and namespaces—limiting both authority and blast radius.
Example
# Project restricts destinations; RBAC restricts who can sync them
p, role:team-a, applications, sync, team-a/*, allow
Real-world example
Team A can only sync apps in its project, and that project can only deploy to team-a namespaces on approved clusters.
Likely follow-ups
What does a Project restrict vs what does RBAC restrict? | How do they combine for isolation?
List only the allowed actions in policy lines, omitting others (default deny). For example allow get and sync but not delete or override. Because ArgoCD RBAC is deny-by-default, granting sync without a delete rule means the user can trigger syncs but cannot delete the application.
The exec resource controls whether a user can open a shell into a running pod via ArgoCD's terminal feature. It's powerful (equivalent to kubectl exec) and can bypass other controls, so it's disabled by default and granted narrowly. Enabling it requires both the feature flag and an explicit RBAC allow.
Example
p, role:admin, exec, create, '*/*', allow
Real-world example
Only senior SREs get exec permission for emergency debugging, and it's off by default for everyone else.
Likely follow-ups
Why is exec disabled by default? | What does exec permission allow?
Beyond user SSO, ArgoCD supports local accounts and AppProject roles with scoped JWT tokens for automation. A project role defines allowed actions on that project's apps, and you issue a token bound to it for CI to sync apps—least privilege for pipelines without granting a human-level or admin account.
# AppProject role for CI
roles:
- name: ci-deployer
policies:
- p, proj:team-a:ci-deployer, applications, sync, team-a/*, allow
Real-world example
The CI pipeline uses a project-scoped token that can only sync team-a apps, never touching other projects.
Likely follow-ups
What is an AppProject role? | Why use scoped tokens for CI?
RBAC policy lives in the argocd-rbac-cm ConfigMap, with keys policy.csv (the rules), policy.default (fallback role), and scopes (which token claims to use for group mapping). Changes take effect without restart. Managing it declaratively (in Git) keeps access control itself under GitOps.