community icon indicating copy to clipboard operation
community copied to clipboard

`helm push` command failing to upload helm charts to artifactory when using `docker login` for authentication

Open jakwozny opened this issue 10 months ago • 1 comments

I have a helmoci repository in artifactory and a packaged helm chart file called test-chart-0.1.0.tgz. I am running helm push --debug test-chart-0.1.0.tgz oci://ARTIFACTORY_AUTHORITY/MY_HELM_REPO/PATH/TO/LOCATION to push my chart. The command successfully uploads the chart if I logged in using helm command: helm registry login -u **** -p **** ARTIFACTORY_AUTHORITY. However, if I helm registry logout ARTIFACTORY_AUTHORITY and use docker login instead, the push fails. The docker login command: docker login ARTIFACTORY_AUTHORITY -u **** -p ****

The error message:

Error: unexpected status from HEAD request to https://ARTIFACTORY_AUTHORITY/v2/MY_HELM_REPO/PATH/TO/LOCATION/test-chart/manifests/0.1.0: 403 Forbidden helm.go:86: 2025-02-25 12:00:50.444740205 +0000 GMT m=+0.754214161 [debug] unexpected status from HEAD request to https://ARTIFACTORY_AUTHORITY/v2/MY_HELM_REPO/PATH/TO/LOCATION/test-chart/manifests/0.1.0: 403 Forbidden

I couldn't find any docs mentioning using helm registry login instead of docker login, so I presume this is not the expected behaviour, please correct me if that's wrong.

helm version output:

version.BuildInfo{Version:"v3.17.1", GitCommit:"980d8ac1939e39138101364400756af2bdee1da5", GitTreeState:"clean", GoVersion:"go1.23.5"}

jakwozny avatar Feb 25 '25 14:02 jakwozny

Please raise Helm CLI specific issues over on https://github.com/helm/helm

gjenkins8 avatar May 19 '25 18:05 gjenkins8