helm: Basic auth credentials from repo not used in install/upgrade/fetch commands
I added the repo (JFrog Artifactory) with the new --username
and --password
params, and they are stored correctly in the repositories.yaml
.
When I run helm repo update
everythings works fine, but for helm fetch <repo>/<chart>
, helm install <repo>/chart>
and helm upgrade <release> <repo/<chart>
it doesn’t pick up the credentials. It works if I pass them manually to each command, but this seems to be wrong for me, since they are already stored…
Versions:
Client: &version.Version{SemVer:"v2.9.0-rc3", GitCommit:"60abcdca41f544caaecb224acbfb92aee11e1f6e", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.9.0-rc3", GitCommit:"60abcdca41f544caaecb224acbfb92aee11e1f6e", GitTreeState:"clean"}
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:34:11Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2018-01-26T19:04:38Z", GoVersion:"go1.9.1", Compiler:"gc", Platform:"linux/amd64"}
Running against Minikube & GKE
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (10 by maintainers)
Commits related to this issue
- Basic auth credentials from repo not used in install/upgrade/fetch commands #3858 (cherry picked from commit fa62c476fc2156495dce4cce76780d7c166f3011) — committed to helm/helm by eyalbe4 6 years ago
- Basic auth credentials from repo not used in install/upgrade/fetch commands #3858 — committed to splisson/helm by eyalbe4 6 years ago
- Basic auth credentials from repo not used in install/upgrade/fetch commands #3858 — committed to splisson/helm by eyalbe4 6 years ago
- Basic auth credentials from repo not used in install/upgrade/fetch commands #3858 — committed to jianghang8421/helm by eyalbe4 6 years ago
@bacongobbler It’s still an issue in helm 2.10.0-rc.2:
@eyalbe4 we suspect that bug still exists. We created chartmuseum repository with basic auth, then watch this:
But
helm search
andhelm push
both work.@eyalbe4 @innocode-devops @dcovello and I figured it out. There was a mismatch between the chart urls in dependencies.yaml and the index.yaml in our chartmuseum. To solve it we now run chartmuseum with the --chart_url flag (or CHART_URL env variable) set to chartmuseum’s url.
@olvesh and @djablonski, I’ve just created this pull request with a fix for this issue. Thanks for reporting it! @bacongobbler, can you please merge the fix? Thanks