containers / skopeo

Work with remote images registries - retrieving information, images, signing content
Apache License 2.0
8.18k stars 775 forks source link

Implement OCI artifacts and revert #1672 #1673

Closed mtrmac closed 2 years ago

mtrmac commented 2 years ago

1672 changes a repo we use for testing skopeo sync, because that repo has added a Cosign signature, and the code now fails (the immediate cause is that it’s trying to compress the image and we don’t have a mapping for the signature blob’s MIME type).

(Note that the signature is not quite an OCI artifact: it uses an ordinary image‘s config MIME type, just an invalid layer MIME type. Still, OCI artifact support is basically a superset of handling this signature.)

We should teach skopeo sync to handle this image, and then revert #1672.

Independent parts necessary for this:

github-actions[bot] commented 2 years ago

A friendly reminder that this issue had no activity for 30 days.

mtrmac commented 2 years ago

This was done by #1680.

  • (Eventually we should to think more about skopeo sync’s behavior in repos with Cosign signatures. It can copy signatures along with the individual signed images, or it can ignore the signature relationships and copy each OCI tag completely independently. It would be weird and inefficient(although not quite broken) if it ended up doing both.)

We will end up in the weird situation after #1701, for users that opt into use-sigstore-attachments.