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.
More on Repos, Clusters, Projects & Permissions
Adding a private GitHub repo over HTTPS fails with `rpc error: code = Unknown desc = authentication required`.BeginnerAn SSH repo fails with `ssh: handshake failed: knownhosts: key is unknown`.BeginnerSSH repo: `ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain`.BeginnerA self-hosted GitLab repo fails with `x509: certificate signed by unknown authority`.IntermediateA credential template exists for `https://github.com/org`, yet new repos under the org still fail with `authentication required`.IntermediateSync fails with `application repo https://github.com/org/payments-config.git is not permitted in project 'team-a'`.Beginner