Skip to content

Regression in 3.18.0 helm registry login (azure acr) #30883

Closed

Description

@MyChaOS87

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

helm 3.17.3:

az acr login -n REDACTED.azurecr.io --expose-token -o tsv --query accessToken 2>/dev/null | helm registry login REDACTED.azurecr.io  --password-stdin
Login Succeeded

Activity

  1. MyChaOS87 commented on May 20, 2025

    @MyChaOS87
    Author

    running with --debug only adds:

    helm.go:92: 2025-05-20 20:43:32.8715211 +0200 CEST m=+0.299970123 [debug] 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: e9207fa2-774a-4eed-8556-c41df5b91119
    
  2. MyChaOS87 commented on May 20, 2025

    @MyChaOS87
    Author

    bisecting led to:

    Bisecting: 0 revisions left to test after this (roughly 0 steps)
    [c188441757c66e8e863969c5cb1b27be61482a22] chore(oci): upgrade to ORAS v2
    
  3. MyChaOS87 commented on May 20, 2025

    @MyChaOS87
    Author

    just tried explicitly setting the username helped:

    helm  ➦ c1884417 <B>  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 --username=00000000-0000-0000-0000-000000000000 --password-stdin --debug
    Login Succeeded
    
  4. robertsirc commented on May 20, 2025

    @robertsirc
    Member

    Adding @TerryHowe to this I know he did some work on ORAS.

  5. mattfarina commented on May 20, 2025

    @mattfarina
    Collaborator

    The PR the bisect is related to is at #30296

  6. added
    bug
    on May 20, 2025
  7. gjenkins8 commented on May 20, 2025

    @gjenkins8
    Member

    closing to deduplicate -- please update #30873 (and please comment if you think this isn't a duplicate of #30873 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions