Build in OpenShift fails with 403 AccessDenied error on AWS backed by S3

Solution Unverified - Updated -

Issue

  • While creating a build the following error is highlighted in the logs:

    error pushing image "image-registry.openshift-image-registry.svc:5000/[namespace]/[image]:[tag]" to "docker://image-registry.openshift-image-registry.svc:5000/[namespace]/[image]:[tag]": trying to reuse blob sha256:xxxxxxxxxxxxxxx at destination: failed to read from destination repository [namespace]/[image]: 500 (Internal Server Error)
    
  • The internal registry logs shown an AccessDenied to S3:

    level=error msg="response completed with error" err.code=unknown err.detail="s3aws: AccessDenied: Access Denied\n\tstatus code: 403, request id: xxxxxx"
    

Environment

  • Red Hat Openshift Container Platform (RHOCP)
    • 3
    • 4
  • AWS S3

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