How do project roles and JWT tokens work?
IntermediateConceptAppProjects, RBAC & SSO
Answer
A project role has policies scoped to that project and can be bound to SSO groups or issued tokens:
argocd proj role create team-a ci
argocd proj role add-policy team-a ci --action sync --object '*' --permission allow
argocd proj role create-token team-a ci --expires-in 720h
The token is a JWT the CI system uses with --auth-token. Its issued-at time is recorded in the project, so you can revoke a token by deleting it from the role without affecting other tokens.
More on AppProjects, RBAC & SSO
What is an AppProject and what can it restrict?BeginnerWhy should teams not use the `default` project?BeginnerWhat does an empty `clusterResourceWhitelist` mean?IntermediateWhat are sync windows?IntermediateHow is Argo CD RBAC structured?BeginnerWhat do `allow` and `deny` effects do when both match?Intermediate