Build in OpenShift fails with 403 AccessDenied error on AWS backed by S3
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
AccessDeniedto 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.