Skip to content
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

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

Open
jakwozny opened this issue Feb 25, 2025 · 0 comments

Comments

@jakwozny
Copy link

jakwozny commented Feb 25, 2025

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"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant