You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot install chart on private Artifactory registry with self-signed cert #7140
We are using the Artifactory Helm plugin on Artifactory version 6.13.1. When installing a chart in a repository via helm install, the following error occurs:
» helm install --generate-name helm-virtual/foo
Error: failed to download "helm-virtual/foo" (hint: running `helm repo update` may help)
This repository was added with a specified CA file:
» helm repo add helm-virtual $ARTIFACTORY_URL/artifactory/helm-virtual --username $USER --password $PASS --ca-file=/tmp/artifactory.crt
"helm-virtual" has been added to your repositories
This is confirmed by checking ~/.helm/repository/repositories.yaml.
By changing the following to be hard coded, I can get past this error:
What happens if you run helm install --generate-name helm-virtual/foo --ca-file /tmp/artifactory.crt?
Can you show what's in your repositories.yaml? I recall there being a similar ticket raising that helm wasn't loading configuration from repositories.yaml, so that configuration wasn't being loaded during helm install.
Adding the --ca-file doesn't appear to help, unfortunately. Here's the output:
» helm install --generate-name helm-virtual/foo --ca-file /tmp/artifactory.crt --debug
install.go:148: [debug] Original chart version: ""
Error: Get https://artifactory.domain.local/artifactory/helm-virtual/namespace/project/foo-0.1.0.tgz: x509: certificate signed by unknown authority
helm.go:76: [debug] Get https://artifactory.domain.local/artifactory/helm-virtual/namespace/project/foo-0.1.0.tgz: x509: certificate signed by unknown authority
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
Activity
bacongobbler commentedon Dec 3, 2019
What happens if you run
helm install --generate-name helm-virtual/foo --ca-file /tmp/artifactory.crt?Can you show what's in your repositories.yaml? I recall there being a similar ticket raising that helm wasn't loading configuration from repositories.yaml, so that configuration wasn't being loaded during
helm install.tychedelia commentedon Dec 3, 2019
Adding the
--ca-filedoesn't appear to help, unfortunately. Here's the output:» helm install --generate-name helm-virtual/foo --ca-file /tmp/artifactory.crt --debug install.go:148: [debug] Original chart version: "" Error: Get https://artifactory.domain.local/artifactory/helm-virtual/namespace/project/foo-0.1.0.tgz: x509: certificate signed by unknown authority helm.go:76: [debug] Get https://artifactory.domain.local/artifactory/helm-virtual/namespace/project/foo-0.1.0.tgz: x509: certificate signed by unknown authorityHere's my lightly edited
repositories.yaml:tychedelia commentedon Dec 4, 2019
I've identified the location for the fix and will submit a patch today, if that's okay with y'all.
bacongobbler commentedon Dec 4, 2019
SGTM!
hickeyma commentedon Jan 10, 2020
@jmcelwain did you get a chance to push the PR?
tychedelia commentedon Jan 10, 2020
@hickeyma Yes, it's here: #7164
Merge pull request #7164 from jmcelwain/master
fix(install): use ca file for install (#7140)
fix(install): use ca file for install (helm#7140)
Feat/oci dependencies (#1)
github-actions commentedon Sep 24, 2020
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
fix(install): use ca file for install (helm#7140)
bacongobbler commentedon Nov 19, 2020
closing as stale.