mirror: copy cosign .sig OCI artifacts alongside release images#4779
Merged
mirror: copy cosign .sig OCI artifacts alongside release images#4779
Conversation
The mirror pipeline copies release images and component images from quay.io to arosvc.azurecr.io but never copies the cosign .sig OCI artifacts (tagged as sha256-<digest>.sig). OCP 4.21 enforces cosign signature verification via ClusterImagePolicy for ocp-release pulls, so disconnected clusters that depend solely on arosvc fail with SignatureValidationFailed during z-stream upgrades. After each successful image copy, the worker now attempts to also copy the corresponding .sig artifact from the source registry. For digest-based references (component images), the digest is extracted from the reference string. For tag-based references (release images), the manifest is fetched to compute the digest. If a .sig artifact does not exist (older unsigned releases), the failure is logged at debug level and does not affect the overall mirror result. Fixes: ARO-26171
1e36c3c to
21739a1
Compare
Collaborator
Author
|
/azp run ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
okay, it looks all references flowing through the mirror pipeline are digest-based, so please ignore my previous comment below: |
yjst2012
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context
Incident: ITN-2026-00112
IcM: 780900379
Jira: ARO-26171
OCP 4.21 ships a ClusterImagePolicy that enforces cosign signature verification for all pulls of quay.io/openshift-release-dev/ocp-release. In disconnected ARO clusters that depend on �rosvc.azurecr.io, the mirror pipeline never copied .sig OCI artifacts, causing SignatureValidationFailed during z-stream upgrades within 4.21.x.
Test plan
epoFromReference, sigReference, digestFromReference