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!


Hi there,

Can you provide the error your request is receiving, is it a 401? Are you sure that the proper API token is being provided in that request from fluxcd?


John Kwiatkoski

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

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.

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.