Interview Prep/GitOps & Argo CD/Tenancy, Security & Secrets

CI needs to trigger a sync of one app after a deploy commit. How do you give it access?

BeginnerScenarioTenancy, Security & Secrets
Answer

Situation read → Least-privilege automation identity.

What I'd do →

  1. Create a project role: argocd proj role create team-a ci with policy applications, sync, team-a/web-dev, allow (and get).
  2. Generate a token with an expiry: argocd proj role create-token team-a ci --expires-in 720h.
  3. Store it as a CI secret and call argocd app sync team-a/web-dev --auth-token $TOKEN.
  4. Better still: rely on webhooks and auto-sync so CI needs no Argo CD access at all.

Why → Project tokens are scoped to one project and revocable individually.

Interview tip → The best answer is often "CI does not need Argo CD access; Git is the interface".

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

More on Tenancy, Security & Secrets