Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple secrets for the same registry [ghcr.io] #639

Open
biclighter81 opened this issue Nov 4, 2023 · 1 comment
Open

Multiple secrets for the same registry [ghcr.io] #639

biclighter81 opened this issue Nov 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@biclighter81
Copy link

Is your feature request related to a problem? Please describe.
Hi together maybe this isn't a feature request rather a "How To" question. I would like to check multiple Image manifests from the ghcr.io Registry, which are not all saved on the same account. So I have to use multiple API tokens for the same registry. This is my current configuration:

 registries: 
      - name: Docker Hub
        api_url: https://docker.io
        ping: yes
        credentials: secret:argocd/image-updater-pullsecrets#token
      - name: A GHCR
        api_url: https://ghcr.io
        ping: yes
        prefix: ghcr.io/a <-- tried to use prefix so the image updater can decide which secret it has to use
        credentials: secret:argocd/image-updater-pullsecrets-a-ghcr#token
      - name: B GHCR
        api_url: https://ghcr.io
        ping: yes
        prefix: ghcr.io/b <-- tried to use prefix so the image updater can decide which secret it has to use
        credentials: secret:argocd/image-updater-pullsecrets-b-ghcr#token

But it seems like the image updater isn't able to decide which token it has to use for which image. For the example image ghcr.io/b/image1 I get a 401 error. It's able to check ghcr.io/a/image1

Describe the solution you'd like
I would like to set the prefix f.e. ghcr.io/biclighter81 and the image updater should pick the right secret for the job.

Is this functionality already implemented?

Thank you :)

@biclighter81 biclighter81 added the enhancement New feature or request label Nov 4, 2023
@blxs
Copy link

blxs commented Nov 8, 2023

i have the same problem... can anyone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants