You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if skopeo copy supported the naming convention used by cosign triangulate to additionally copy cosign artifacts when copying an image.
# Let's start with this image as a source
SOURCE=quay.io/redhat-user-workloads/ralphjbean-tenant/demo/python-app-trgx
TAG=1d9d889b9cb12c4809c742e65fdee6a059838d3f
# Observe in stdout that there are cosign attestations and a signature present
cosign tree $DESTINATION:$TAG# Let's copy it to this destination. Your choice!
DESTINATION=quay.io/your/repo
# Copy just the image, see that the attestation data cannot be found
skopeo copy docker://$SOURCE:$TAG docker://$DESTINATION:$TAG
cosign tree $DESTINATION:$TAG# User can do this themselves, but it would be nice if it were automatic with a flag to the initial skopeo copy, above
DIGEST=$(skopeo inspect docker://$SOURCE:$TAG| jq -r .Digest | sed 's/:/-/')forSUFFIXin sig att sbom;do
skopeo copy docker://$SOURCE:$DIGEST.$SUFFIX docker://$DESTINATION:$DIGEST.$SUFFIXdone# Confirm that the signatures and attestation data are relocatable
cosign tree $DESTINATION:$TAG
It would be nice if skopeo copy supported the naming convention used by
cosign triangulate
to additionally copy cosign artifacts when copying an image.Related: https://blog.sigstore.dev/cosign-image-signatures-77bab238a93/
The text was updated successfully, but these errors were encountered: