-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TLS certs not passed correctly if helm repo contains path in repository URL #19138
Comments
I did some digging, if the the argo-cd/pkg/apis/application/v1alpha1/repository_types.go Lines 239 to 240 in 3d77d9c
However, when I try to set the PR #5888 introduced this change to disallow oci scheme in URL. @alexmt, I noticed that you implemented this change. Do you think this can be reverted as helm now supports
An alternative simple solution to fix this bug could be to explicitly add |
Another case(#8508 (comment)) of incorrect hostname parsing when repoURL contains port. |
Describe the bug
I am try to deploy a chart from a private OCI Helm registry with self-signed certificates. I have added the tls certificate for my domain
my-registry.default
inargocd-tls-certs-cm
configmap.When I create a Helm repository with
my-registry.default
repository URL everything works as expected. However, if the repository URL contains a path eg:my-registry.default/helm-charts
, the tls certificate for the domain i.emy-registry.default
is not picked up by Argo CD and results intox509: certificate signed by unknown authority
errors.To Reproduce
Expected behavior
Argo CD should connect successfully to the registry
Screenshots
Version
Didn't test with
master
but I think should be reproducible with it.Logs
Repo server logs
The text was updated successfully, but these errors were encountered: