Description
There is a significant change between versions v3.17.3 and v3.18.0 when using --debug
option.
v3.17.3:
helm pull oci://example.com/bitnamicharts/mongodb --version 16.5.3 --debug
DEBU[0000] resolving host=example.com
DEBU[0000] do request host=example.com request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.17.3 request.method=HEAD url="https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3"
DEBU[0000] fetch response received host=example.com response.header.connection=keep-alive response.header.content-length=87 response.header.content-type="application/json;charset=ISO-8859-1" response.header.date="Mon, 26 May 2025 09:48:00 GMT" response.header.docker-distribution-api-version=registry/2.0 response.header.www-authenticate="Bearer realm=\"https://example.com:443/artifactory/api/docker//v2/token\",service=\"example.com:443\",scope=\"repository:bitnamicharts/mongodb:pull\"" response.status="401 " url="https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3"
DEBU[0000] Unauthorized header="Bearer realm=\"https://example.com:443/artifactory/api/docker//v2/token\",service=\"example.com:443\",scope=\"repository:bitnamicharts/mongodb:pull\"" host=example.com
DEBU[0000] do request host=example.com request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=Helm/3.17.3 request.method=HEAD url="https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3"
INFO[0000] trying next host error="failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443: 404 " host=example.com
Error: failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443: 404
helm.go:86: 2025-05-26 12:48:00.482963 +0300 EEST m=+0.245820292 [debug] failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443: 404
v3.18.0:
helm pull oci://example.com/bitnamicharts/mongodb --version 16.5.3 --debug
Error: failed to resolve example.com/bitnamicharts/mongodb:16.5.3: GET "https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3": GET "https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443": response status code 404: : Not Found
helm.go:92: 2025-05-26 12:56:11.646723 +0300 EEST m=+0.185389335 [debug] failed to resolve example.com/bitnamicharts/mongodb:16.5.3: GET "https://example.com/v2/bitnamicharts/mongodb/manifests/16.5.3": GET "https://example.com:443/artifactory/api/docker//v2/token?scope=repository%3Abitnamicharts%2Fmongodb%3Apull&service=example.com%3A443": response status code 404: : Not Found
While from both outputs it is clear which request fails with 404, but only from output on v3.17.3
is evident that earlier response with WWW-Authenticate
header is incorrect and should be looked at (this is not part of the issue).
Metadata
Metadata
Assignees
Labels
No labels