-
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
x509: certificate signed by unknown authority #13726
Comments
Signed-off-by: Nandor Galambosi <dromie@gmail.com>
…3871) Signed-off-by: Nandor Galambosi <dromie@gmail.com>
We have the problem as well and cannot continue without the feature. Is there a solution for this? |
@augeivv when you update your argocd-tls-certs-cm configmap with the TLS certificate, this configmap is mounted into argocd-server pod. Option B: update your argocd-tls-certs-cm configmap, wait 2 minutes, and deploy your application. Feel free to test this, you can use my testenv (https://gist.github.com/dromie/0199dada8f1d080c83c292e2e3e30f85) |
@dromie
(the The GUI shows the Repo connected succesfully, but i still get the x509 Error after creating an Application with a Helm Chart from this Repo Additional Info:
Am i missing something? |
@FrancescoAzzariti
|
I just checked - mine says: i'll try adding the cert of the issuer / the whole chain EDIT: After this I retried to apply the Application and i still get: EDIT2: |
Hi, we are facing the exact same problem on argocd v2.9.0. Helm version in pods is v3.12.1. We have one Harbor instance signed with a private CA in our network. We are trying to setup argocd to pull charts from an application but we always face the "x509: certificate signed by unknown authority". Local charts calling for the main metallb chart stored on Harbor : apiVersion: v2
name: metallb
description: A network load-balancer implementation for Kubernetes using standard routing protocols
type: application
version: 0.0.1
appVersion: 0.0.1
dependencies:
- name: helm/metallb
repository: oci://registry.harbor.ats-sre.ngxp.domaintests.loc
version: 0.13.9
I have performed the following tasks :
@FrancescoAzzariti you seemed to have found a way to make it work. Can you explain how did you perform the resolving task ? I don't quite understand what you mean by "I mounted the configmap which includes the cert+chain provided by trustmanager into the "reposerver" and "server" pod to /etc/ssl/certs/pkichain.pem". Can you provide more details ? (commands or created confimaps ?) Thank you ! Ps : To expand on this bug, we found that by creating an application from the UI did correctly pull the helm chart. From the "Repositories" settings panel, you can create an application from a specific registry by clicking on the 3 dots and Create application. If we do that, there is no issue, the helm chart is correctly retrieved from Harbor. It seems that the "--insecure-skip-verify" of helm is correctly passed and used here but not if we point to the repository in a chart or application. |
Hello, I assume we are currently talking about different possibilities. ArgoCD and Helm Charts. Roughly speaking, I have the same setup as @ElouanLD If I link directly to the Helm Chart repository in my ArgoCD application, the deployment works. However, if I link to a Git repository in the ArgoCD application, which contains a local chart, I still get the x509 error. I have also tried @FrancescoAzzariti solution. But without success. |
The ConfigMap ist created by Trustmanager ( https://github.com/cert-manager/trust-manager ) and placed inside the argo-cd namespace. Afterwards I updated the values.yaml of the helmchart by which ArgoCD is installed: This looks something like this for me:
|
Thank you for your help. It works. |
Facing the same issue We have a application with a source being a gitrepo, referencing a helmchart, with a dependancy on another helmchart which in an oci registry. This causes argocd to need to run helm dependency build_ but that doesn't pick up the certs or honour the tls ignore and argocd-server reports the error:
For anyone following if you get the error due to |
…3871) Signed-off-by: Nandor Galambosi <dromie@gmail.com>
Hello argocd:v2.10.0 {"execID":"092dc","level":"error","msg":"`helm pull oci://registry.kryukov.local/charts/devcontainer --version 0.1.0 --destination /tmp/0a234fff-856f-4fbe-af0d-6e6cc2404793` failed exit status 1: Error: failed to do request: Head \"https://registry.kryukov.local/v2/charts/devcontainer/manifests/0.1.0\": tls: failed to verify certificate: x509: certificate signed by unknown authority","time":"2024-02-28T10:21:14Z"} in containers. The file argocd@argo-cd-argocd-server-5f8bcf7999-kt2pj:~$ ls /app/config/tls
registry.kryukov.local argocd@argo-cd-argocd-repo-server-7bdbfcc9b4-qsxh5:/etc/ssl/certs$ ls /app/config/tls
registry.kryukov.local |
Facing the same issue, pretty much same setup as @FrancescoAzzariti. Might very well be a chain issue as well, and I'll try to fix that accordingly. In the argocd GUI I see the error |
Checklist:
argocd version
.Describe the bug
I deployed a self built private Harbor and have configured a self signed TLS certificate for it.
I configured a repo for argocd using the parameter " --insecure-skip-server-verification", and it appears to be successfully connected.
The command is as follows:
The chart in my Harbor is as follows:
I have created an application as follows:
The Configmap also looks normal.
I always thought that if the repo connection was successful, the application should not show 'x509: certificate signed by unknown authority'.
To Reproduce
Expected behavior
The expected behavior is that the application can proceed smoothly. Ultimately, a chart named nginx will be installed.
Screenshots
Version
argocd: 2.72
Paste any relevant application logs here.
The text was updated successfully, but these errors were encountered: