Certificate signed by unknown authority error with OpenShift tekton pipeline in RHOCP 4

Solution Verified - Updated -

Environment

  • Red Hat Openshift Container Platform 4.9
  • Tekton Pipeline version v0.28.2

Issue

  • While running the operator certification pipeline facing "Get https://image-registry.openshift-image-registry.svc:5000/v2/": x509: certificate signed by unknown authority" at build-bundle step.

Resolution

  • Fix this issue by providing the certs to the buildah push command by doing the TLSVERIFY false.

  • Alternatively, provide the certs to the buildah push command by adding one more flag as below.

--cert-dir="/tekton-custom-certs"

Root Cause

  • Buildah is not able to push the images because of the certificates issue as the pipeline tasks are configured with TLSVERIFY = true by default.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments