Authenitcate to registry tags list


I did setup in Kubernetes. It is to automate deployments. It reads the tags from a registry to look if there are new images, if there are, it will deploy them. I use the dockerconfig json to get the images. Flux tells me it using the same credentials to get the list of tags. But it get a unauthenticated error. I try to get the list of tags myself from the same link Flux uses, but I dont know how to authenticate.

How can I authenticate on this url:{reponame}/{imagename}/tags/list

Thanks in advance!

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi I can not test it right now, I did setup it with Terraform, but cause a lot of work this week I disabled it. But I think I found the problem. It tries to get de tags list of:{reponame}/{imagename}/tags/list

It got a 401. If I try to get the list manually with the same ImagePullSecrets it is also unauthenticated. But when I use the url:{reponame}/{imagename}/tags/list

I can authenticate, I do not know the reason exactly anymore why I was using the registry URL in the Flux manifest before the repo name. So this weekend I will apply the cluster with Terraform and try it without the registry as prefix.

Also good to know (I didnt know) the ‘WWW-Authenticate’ header will give more info about auth errors.