Interview Prep/GitOps & Argo CD/Repos, Clusters, Projects & Permissions

A CI job's `argocd app sync` fails with `account 'ci-bot' does not have apiKey capability`.

BeginnerTroubleshootingRepos, Clusters, Projects & Permissions
Answer

Likely causes → The local account was created with only login capability, or not created at all.

Diagnose → argocd account list shows capabilities per account.

Fix →

# argocd-cm
data:
  accounts.ci-bot: apiKey

Then argocd account generate-token --account ci-bot --expires-in 720h and add a scoped RBAC policy for ci-bot.

Prevent → Prefer project-scoped tokens (argocd proj role create-token) for CI, with an expiry, rotated automatically.

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

More on Repos, Clusters, Projects & Permissions