Back to results for “Multi-cluster”
ArgoCD › RBAC

How is an ArgoCD RBAC policy rule structured?

Intermediate

Answer

Policy lines use a CSV-like format: `p, <subject>, <resource>, <action>, <object>, <effect>`. Resources include applications, clusters, repositories, projects, logs, exec. Actions include get, create, update, delete, sync, override. Objects scope by project/app (e.g., proj/app) and support wildcards. `g` lines map users/groups to roles.
p, role:dev, applications, sync, team-a/*, allow
p, role:dev, applications, get, team-a/*, allow
g, team-a-group, role:dev
Real-world example The dev role can get and sync any application in the team-a project, and the SSO group team-a-group is bound to it.

Common follow-ups: What does a 'p' line define? | How do 'g' lines work?