Skip to content

Helm Registry only supports a single set of credentials per registry. #13237

Closed

Description

@tech1ndex

Description:

The helm registry command uses the OSX Keychain to store credentials, the issue is that if you store 2 credentials for the same registry, such as:

Credential A - https://myregistry.com

Credential B - https://myregistry.com/my-cool-project

If Credential A expires but persists in the keychain, helm will always try to use this credential even when pushing to the project that was enrolled with Credential B, furthermore if you inspect the config.json file, you will only see one set of credentials (Credential B).

I am not sure if this is a limitation of the OSX Keychain or simply the implementation here but it would be nice to have a mechanism where multiple projects from the same registry could have their credentials managed and used appropriately.

Workaround

In order to temporarily workaround this, you run helm registry login against the root registry URL (Credential A) which would overwrite the old entry with a fresh set of credentials.

Output of helm version:
version.BuildInfo{Version:"v3.15.3", GitCommit:"3bb50bbbdd9c946ba9989fbe4fb4104766302a64", GitTreeState:"clean", GoVersion:"go1.22.5"}

Output of kubectl version:
Client Version: v1.30.3

Cloud Provider/Platform (AKS, GKE, Minikube etc.): N/A

Activity

  1. added
    oci
    on Aug 8, 2024
  2. gjenkins8 commented on Aug 8, 2024

    @gjenkins8
    Member

    iirc, this a limitation of the underlying 'docker' credentials system. I don't think it is limited to MacOS either. I agree, the functionality above would be preferred.

    Also, iirc, there is an existing issue with more details. Digging that up (and closing this if it is a dup) would be useful.

  3. tech1ndex commented on Aug 8, 2024

    @tech1ndex
    Author

    Thanks @gjenkins8, I was kind of suspecting that this might not be limited to helm but figured it was worth raising. Also, I tried looking for an existing issue but couldn't seem to find one so I appreciate the effort and quick response on this!

  4. York-Richter commented on Aug 26, 2024

    @York-Richter

    Related to #11286 ?

  5. github-actions commented on Aug 20, 2025

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

  6. Tehsmash commented on Sep 19, 2025

    @Tehsmash

    Run into this today, and managed to narrow it down to how helm uses Oras for remote registry access. There is an issue raised there to handle it but they don't seem to be prioritizing it: oras-project/oras-go#840

  7. TerryHowe commented on Oct 14, 2025

    @TerryHowe
    Contributor

    I'm closing this as a dup of #11286 this should be covered by the registries.conf work I started on oras-project/oras-go#1008

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

    featureoci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions