Skip to content

helm dependency update unauthorized #241

@AClarkie

Description

@AClarkie

Describe the bug
After az login and adding my acr helm repo I can run the follow commands with no error:

  1. helm repo update
  2. helm search mpdcontainerprod1/ingester
  3. helm fetch mpdcontainerprod1/ingester (fetches with no error)

However when I try to run helm dependency update against a requirements.yaml I get an unauthorized error message:

Downloading ingester from repo https://mpdcontainerprod1.azurecr.io/helm/v1/repo
Save error occurred:  could not download https://mpdcontainerprod1.azurecr.io/helm/v1/repo/_blobs/ingester-1.0.1.tgz: Failed to fetch https://mpdcontainerprod1.azurecr.io/helm/v1/repo/_blobs/ingester-1.0.1.tgz : 401 Unauthorized

The same set of commands work when using a service principal, but not with my credentials despite being an owner on the acr registry.

To Reproduce
Steps to reproduce the behavior:

  1. az login
  2. az configure --defaults acr=mpdcontainerprod1
  3. az acr helm repo add
  4. helm repo update
  5. helm dependency update where requirements.yaml is:
dependencies:
  - name: ingester
    version: 1.0.1
    repository: https://mpdcontainerprod1.azurecr.io/helm/v1/repo

Expected behavior
I expect the charts specified in the requirements.yaml to be downloaded

Any relevant environment information

  • OS: ubuntu
  • Azure CLI: 2.0.66
  • Registry and image names

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFeature bugs that should be fixed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions