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

A self-hosted GitLab repo fails with `x509: certificate signed by unknown authority`.

IntermediateTroubleshootingRepos, Clusters, Projects & Permissions
Answer

Likely causes → GitLab uses a certificate from an internal CA that the repo-server does not trust.

Diagnose → openssl s_client -connect gitlab.internal:443 -showcerts to see the chain; argocd cert list --cert-type https.

Fix →

argocd cert add-tls gitlab.internal --from ./internal-ca.pem

This writes to argocd-tls-certs-cm, which is mounted into repo-server. For Helm OCI registries on the same CA, the same entry applies by hostname.

Prevent → Keep the internal CA bundle in the Argo CD install values; never use --insecure-skip-server-verification as a permanent fix.

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

More on Repos, Clusters, Projects & Permissions