Interview Prep/GitOps & Argo CD/AppProjects, RBAC & SSO

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.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on AppProjects, RBAC & SSO