Facing unauthorized access when using multiple namespaced credentials for the same registry in a pull secret in RHOCP 4

Solution Verified - Updated -

Issue

  • Pulling images occasionally fails when using different authentication credentials for multiple namespaces on the same registry in the pull-secret:

    Error: Error initializing source docker://registry.example.com/my-first-namespace/openshift/release@sha256:<sha> .... "unauthorized: access to the requested resource is not authorized" 
    

Environment

  • Red Hat OpenShift Platform (RHOCP)
    • 4.11 and older

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content