docker-credential-helpers icon indicating copy to clipboard operation
docker-credential-helpers copied to clipboard

Unable to authenticate with container registry using pass

Open Time0o opened this issue 10 months ago • 3 comments

Apologies if I have made a basic mistake, but I cannot get the pass credential helper to work on a very basic level. I have installed and initialized pass v1.7.4 and docker-credential-pass 0.6.4 and initialized the former.

I have then logged into a GitHub container registry via:

echo  $GH_TOKEN | docker login ghcr.io -u $MY_USERNAME --password-stdin

And tried to pull or push images but this always fails with "unauthorized" but the GitHub token has the correct rights and more importantly this works when not using the pass credential helper. Should this not at least prompt for the password of my GPG key???

Am I missing a step?

Time0o avatar Feb 03 '25 12:02 Time0o

Same happens to me. I have to manually run pass show something first in order to unlock pass, and then it works for some time after.

andreyrd avatar Feb 25 '25 18:02 andreyrd

Same happens to me. I have to manually run pass show something first in order to unlock pass, and then it works for some time after.

I had the exact same issue! Showing the password prompted for the gpg password and after that I could pull private images.

Lauszus avatar Mar 13 '25 18:03 Lauszus

I believe this is a duplicate of #327

Lauszus avatar Mar 13 '25 18:03 Lauszus