argocd repo add fails when using --enable-oci with self-signed certificate #6599
Closed
3 tasks done
Labels
bug/priority:medium
Should be fixed in the next minor releases
bug/severity:major
Malfunction in one of the core component, impacting a majority of users
bug
Something isn't working
component:config-management
Tools specific issues (helm, kustomize etc)
Milestone
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
argocd repo add fails with X509 certificate error when adding a private repo with self signed cert and using
--enable-oci
flag. Attempted workaround to use--insecure-skip-server-verification
works to add the registry, butargocd app create
fails with X509 certificate error.To Reproduce
Add the ca.crt to argo's cert list
argocd cert tls-add --from ~/ca.pem helmrepo.rogerfutrell.com
Add the helm repo
argocd repo add helmrepo.rogerfutrell.com --type helm --name test-helm --enable-oci --username <username> --password <password>
argocd repo add throws x509: certificate signed by unknown authority
Attempted Workaround
Add the helm repo with the insecure flag
argocd repo add helmrepo.rogerfutrell.com --type helm --name test-helm --enable-oci --username <username> --password <password> --insecure-skip-server-verification
argocd repo list -o yaml
indicates a successful connectionExpected behavior
argocd-server pod should be using the ca certificate
helmrepo.rogerfutrell.com
that is mounted to the pod when performinghelm registry login
argocd create app
should be using the ca certificatehelmrepo.rogerfutrell.com
that is mounted to the pod when performinghelm chart pull
argocd is able to execute the helm chart pull and ignores x509 errors because the repo was added with
--insecure-skip-server-verification
.Version
Logs
More Info
This same ca cert works with my private registry when I am not using
--enable-oci
. Issue seems specific to--enable-oci
.This works in helm in my laptop's bash shell, and helm is using my ca-cert in /etc/ssl/certs as expected:
Helm version
The text was updated successfully, but these errors were encountered: