Advertisement
Advanced ArgoCD, RBAC

How do project roles and tokens enable least-privilege automation?

Short answer

AppProject roles define scoped policies for that project, and you generate JWT tokens bound to a role. CI uses such a token to, say, sync only that project's apps—no admin account needed. This confines automation to exactly the actions and objects it requires.

Save ArgoCD mock interview
Advertisement
AModel answer
AppProject roles define scoped policies for that project, and you generate JWT tokens bound to a role. CI uses such a token to, say, sync only that project's apps—no admin account needed. This confines automation to exactly the actions and objects it requires.
roles:
  - name: deployer
    policies: [ 'p, proj:team-a:deployer, applications, sync, team-a/*, allow' ]
Real-world example
The pipeline's project-scoped token can sync team-a apps only, never affecting other projects.
Likely follow-ups
  • How is a project token scoped? | Why not use an admin token for CI?
Related topics