You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
helm registry login failing when updated cli to v3.18.0 #30873
Reacted by Michael Edoror, Jason Carter, halfmatthalfcat, Porter Jones, Christian Andersen, Carmelo Riolo, Konstantinos Konstantinidis, Zoe Roux, Julian König, Timo Hügel and 11 more
since 3.18.0 our pipeline stopped working on helm repo authentication. I can reproduce that locally from the 3.18.0 tag
helm 3.18.0:
az acr login -n REDACTED.azurecr.io --expose-token -o tsv --query accessToken 2>/dev/null | go run ./cmd/helm registry login REDACTED.azurecr.io --password-stdin
Error: authenticating to "REDACTED.azurecr.io": GET "https://REDACTED.azurecr.io/v2/": GET "https://REDACTED.azurecr.io/oauth2/token?service=REDACTED.azurecr.io": response status code 401: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information. CorrelationId: b65a8fc5-6038-4ca3-aa92-46b2b6976849
exit status 1
If someone could post the output of helm registry login --debug ... for both Helm v3.17 (suceeding) and v3.18 (failing), that would be very useful please.
While technically it is incorrect to specify a URL scheme for a registry. Helm may/want need to revert this behavior to prevent break folks workflows (discussing how/and any impacts)
I thought ORAS v2 went out with 3.17, so I don't think it is that. ORAS v2 did go out for 3.18. I'm camping and only getting spoty Internet. I won't be back until late Thursday.
There was a bump of oras-go to 2.6 in 3.18, but minor changes
If someone could post the output of helm registry login --debug ... for both Helm v3.17 (suceeding) and v3.18 (failing), that would be very useful please.
In #30883, I put --debug output into the ticket for 3.18.0 - I did not really deem it useful, but here is the link: #30883 (comment)
If you need more, I can look for it tmr when I am back at work
on AzureCR setting --username=00000000-0000-0000-0000-000000000000 explicitly helps as a workaround
was also getting it when running gcloud auth print-access-token | helm registry login -u oauth2accesstoken --password-stdin us-docker.pkg.dev/<projectid>/<chartpath>
@athornton2012@lrascao@dbeilin now that #30887 is merged, both the scheme and path will be stripped automatically, and operate as it was in 3.17.3, in order to keep Helm's backwards compatibility promise within the same MAJOR version. This fix will be released in 3.18.1.
For Helm 4, we can require a properly formatted host string, and document that in the migration guide.
Reacted by Daniel Beilin, Benoit Tigeot, Luis Rascão, Anjum Rashid and Anna Thornton
Can confirm that removing protocol (https://) when using Google Artifact Registry fixes the issue.
@athornton2012@lrascao@dbeilin now that #30887 is merged, both the scheme and path will be stripped automatically, and operate as it was in 3.17.3, in order to keep Helm's backwards compatibility promise within the same MAJOR version. This fix will be released in 3.18.1.
For Helm 4, we can require a properly formatted host string, and document that in the migration guide.
We bumped into the same issue (we're using GCP artifact registry as helm repository source) and upgrading to the patch v3.18.1 solved the problem. Apparently, GitHub Actions service is still using the impacted version baked in the runner image, causing the build failures.
Activity
DmytroDerkach commentedon May 20, 2025
I had the same issue with helm, just remove
https://gcloud auth print-access-token | helm registry login -u oauth2accesstoken --password-stdin us-docker.pkg.devbenoittgt commentedon May 20, 2025
Hello
It seems related to oras ref requirement in oras-go, and OCI repository requirement.
But I think the error could be clearer.
gershonkoral commentedon May 20, 2025
Unfortunately this did not work. Rolled back to v17
gjenkins8 commentedon May 20, 2025
ACR also seems to be affected, from #30883
since 3.18.0 our pipeline stopped working on helm repo authentication. I can reproduce that locally from the 3.18.0 tag
helm 3.18.0:
helm 3.17.3:
gjenkins8 commentedon May 20, 2025
The underlying change was an update from ORAS v1 -> v2: #30296
Investigating why this change has broken registry login
gjenkins8 commentedon May 20, 2025
If someone could post the output of
helm registry login --debug ...for both Helm v3.17 (suceeding) and v3.18 (failing), that would be very useful please.gjenkins8 commentedon May 20, 2025
One change in behavior looks to be that Helm no longer accepts registries prefixed with a URL protocol/scheme:
While technically it is incorrect to specify a URL scheme for a registry. Helm may/want need to revert this behavior to prevent break folks workflows (discussing how/and any impacts)
gjenkins8 commentedon May 20, 2025
There is potentially other issues reported in:
#30881
#30883
TerryHowe commentedon May 20, 2025
I thought ORAS v2 went out with 3.17, so I don't think it is that.ORAS v2 did go out for 3.18. I'm camping and only getting spoty Internet. I won't be back until late Thursday.There was a bump of oras-go to 2.6 in 3.18, but minor changes
benoittgt commentedon May 20, 2025
Is it a bad idea to handle the extra URL scheme in Helm and remove it ?
scottrigby commentedon May 21, 2025
@benoittgt I agree. This is what I did for the fix in #30887
MyChaOS87 commentedon May 21, 2025
In #30883, I put
--debugoutput into the ticket for 3.18.0 - I did not really deem it useful, but here is the link:#30883 (comment)
If you need more, I can look for it tmr when I am back at work
on AzureCR setting
--username=00000000-0000-0000-0000-000000000000explicitly helps as a workaroundMyChaOS87 commentedon May 21, 2025
I believe the problem could be that helm is always setting username and password (
helm/pkg/registry/client.go
Line 269 in cc58e3f
also documented here: https://pkg.go.dev/oras.land/oras-go/v2@main/registry/remote/auth#example-Client.Do-WithAccessToken
lrascao commentedon May 21, 2025
was also getting it when running
gcloud auth print-access-token | helm registry login -u oauth2accesstoken --password-stdin us-docker.pkg.dev/<projectid>/<chartpath>giautm commentedon May 21, 2025
TL/DR: Run the login command with the host only (for example:
helm registry login ghcr.io)Root-cause: Helm upgrade the oras-go to v2, which including a validate that rejecting all components of URL except the hostname + port.
https://github.com/oras-project/oras-go/blob/05a2b09cbf2eab1df691411884dc4df741ec56ab/registry/reference.go#L194-L199
dbeilin commentedon May 21, 2025
Removing org/repo fixed it for me on 3.18, thanks @giautm
Changed:
to:
TerryHowe commentedon May 21, 2025
Sounds like there is another potential issue with repo specified on login.
improve build stability
improve build stability
improve build stability
[#7<F9>12] improve build stability
[#712] improve build stability
fix(ci): Fix publish workflow for Helm 3.18.0 (#964)
scottrigby commentedon May 23, 2025
@athornton2012 @lrascao @dbeilin now that #30887 is merged, both the scheme and path will be stripped automatically, and operate as it was in 3.17.3, in order to keep Helm's backwards compatibility promise within the same MAJOR version. This fix will be released in
3.18.1.For Helm 4, we can require a properly formatted host string, and document that in the migration guide.
TerryHowe commentedon May 23, 2025
Is there a migration guide started or somewhere to record these items?
scottrigby commentedon May 23, 2025
we can make an issue in the helm-www repo and tag v4
StianOvrevage commentedon May 28, 2025
Can confirm that removing protocol (
https://) when using Google Artifact Registry fixes the issue.Works:
bijoy26 commentedon Jun 2, 2025
We bumped into the same issue (we're using GCP artifact registry as helm repository source) and upgrading to the patch
v3.18.1solved the problem. Apparently, GitHub Actions service is still using the impacted version baked in the runner image, causing the build failures.