Cannot authenticate to Red Hat registries using my pull secret

Posted on

Hi,
After I set up crc locally, I was facing issues when trying to deploy anything that would require an image pull from registry.redhat.io.
So, I tried the same with podman, using the pull secret file for authentication:

$ podman pull --authfile ./pull-secret.txt registry.redhat.io/ubi8/ubi:latest
Trying to pull registry.redhat.io/ubi8/ubi:latest...
Error: initializing source docker://registry.redhat.io/ubi8/ubi:latest: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/articles/3399531

Then I tried the same, using a pull secret from another account I have:

$ podman pull --authfile ./acn-pull-secret.txt registry.redhat.io/ubi8/ubi:latest
Trying to pull registry.redhat.io/ubi8/ubi:latest...
Getting image source signatures
Copying blob 70de3d8fc2c6 skipped: already exists
Copying config 62ac1f7ef5 done
Writing manifest to image destination
Storing signatures
62ac1f7ef5371d1fb6e01abd84f7a6fd80ea1c64a0728fb5f19198b084dea171

Clearly, there's something wrong with the first pull secret. I tried to regenerate the pull secret, following the procedure in https://access.redhat.com/solutions/6996871 but with same result.

Please advise.

Thanks.

Responses