Inspect the user's token claims (groups/email), match them against g bindings and p rules, account for policy.default and deny-by-default, and use API-server debug logs showing policy decisions. Tools/UI can display a user's roles. This pinpoints why an action is allowed or denied.
Real-world example
Debug logs reveal a denied sync stemmed from a group claim not listed in scopes, which is then corrected.
Likely follow-ups
What do you check first for a denial? | How do debug logs help?
ArgoCD RBAC governs actions within ArgoCD (who can view/sync/delete apps, manage clusters/repos). Kubernetes RBAC governs access to cluster API resources. A user might sync an app in ArgoCD (ArgoCD RBAC) while ArgoCD's service account applies the resources using its Kubernetes permissions.
Real-world example
A developer with ArgoCD sync rights triggers deploys, but the actual apply uses ArgoCD's own Kubernetes permissions.
Likely follow-ups
Who actually applies resources to the cluster? | Which RBAC governs app sync?
Set sourceRepos on the AppProject to an allow-list (with wildcards) of permitted repo URLs. Apps in that project can only pull from those repos, preventing teams from deploying arbitrary or untrusted sources.
Provide a tightly controlled admin path (a local admin account or a rarely-used group binding) whose use is logged and alerted, with credentials stored securely and rotated after use. It grants elevated access during incidents when SSO/normal roles are insufficient, while keeping the action auditable.
Real-world example
During an SSO outage, an on-call lead uses a monitored break-glass account to restore service, triggering an audit alert.
Likely follow-ups
Why log break-glass use? | When is break-glass justified?
Constrain the AppProject's destinations to the team's clusters/namespaces (with patterns like team-a-*). Even with sync rights, apps in that project can't target other namespaces, because the project rejects disallowed destinations at validation.
destinations:
- server: '*'
namespace: 'team-a-*'
Real-world example
Team A's apps can only deploy into team-a-* namespaces; a manifest targeting kube-system is rejected.
Likely follow-ups
What enforces the namespace limit? | Do sync rights override project destinations?
Grant create/delete on applications to platform admins and only get/sync to developers, via distinct roles. This separation means developers can deploy approved apps but not create arbitrary ones or remove them, enforcing change control and least privilege.
Use a g line with the username: `g, alice, role:dev`. This is common for local accounts or when not using group claims. For SSO, binding groups scales better than individual users.
policy.csv: |
g, alice, role:dev
Real-world example
A specific automation user 'alice' is bound directly to the dev role.
Likely follow-ups
User vs group bindings? | Why prefer groups for SSO?
The applicationsets resource in RBAC controls who can create/update/delete ApplicationSets. Because an ApplicationSet can generate many apps, this is a powerful permission usually reserved for platform admins, separate from ordinary application sync rights.
Combine Git signature verification (ArgoCD can require signed commits via configured GPG keys on the Project) with branch protection requiring reviews. Only commits signed by trusted keys and merged through review are deployed, adding supply-chain integrity to RBAC and process controls.
spec:
signatureKeys:
- keyID: ABCDEF1234567890
Real-world example
The project only syncs commits signed by approved GPG keys, blocking unsigned or tampered changes.
Likely follow-ups
How does ArgoCD verify commit signatures? | How does this complement RBAC?