Adding a private GitHub repo over HTTPS fails with `rpc error: code = Unknown desc = authentication required`.
BeginnerTroubleshootingRepos, Clusters, Projects & Permissions
Answer
Likely causes → No credentials stored for that URL, an expired or revoked personal access token, a token without repo/contents:read scope, or the repo secret is missing the argocd.argoproj.io/secret-type: repository label.
Diagnose →
argocd repo list
kubectl -n argocd get secrets -l argocd.argoproj.io/secret-type=repository
git ls-remote https://<user>:<token>@github.com/org/config.git # test the token outside Argo CD
Fix → Re-add the repo with a valid token: argocd repo add https://github.com/org/config.git --username git --password <token> --upsert.
Prevent → Use a GitHub App credential template instead of personal tokens, and alert on repo connection failures.
More on Repos, Clusters, Projects & Permissions
An 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`application destination server 'https://kubernetes.default.svc' and namespace 'payments' do not match any of the allowed destinations in project 'team-a'`.Beginner