Skip to content

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

@jakwozny

Description

@jakwozny

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions