Skip to content

auth.secret_name provided but still fails with "authentication required" on Docker Hub private repo / cosign #573

Answered by funkypenguin
funkypenguin asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @xopham!

Yes, I've followed both the documented instructions (creating a generic secret and then setting --type), and I've tried this format:

kubectl create -n connaisseur secret docker-registry registry-credentials \
      --docker-server=https://index.docker.io \
      --docker-username='{{ docker_hub_username }}' \
      --docker-password='{{ docker_hub_password }}'

In both cases, I get what looks like a valid /app/connaisseur-config/default/.docker/config.json in the pod (although the second format results in a file with no newlines).

To confirm whether the image is valid, here's what connaisseur says:

root@cn1:~# k run -n sandbox test --image myorg/curl:latest
Error from server:…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@xopham
Comment options

@funkypenguin
Comment options

@xopham
Comment options

@funkypenguin
Comment options

@xopham
Comment options

Answer selected by xopham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants