-
Notifications
You must be signed in to change notification settings - Fork 72
Description
As a user of skopeo I would like an additional flag for skopeo to automatically pick up cosign-style signatures artifacts when copying a single image or a series of images using skopeo copy and skopeo sync so I can copy the signature artifacts over automatically with the image(s) that are getting copied.
While the larger background is the missing specification of OCI references types which is currently discussed here, cosign adopted a fairly straight forward and portable approach to associate images and their signatures stored as OCI artifacts (sort of) with a naming convention. For a given image the signature is expected in the same repository in a manifest tag named like this:
sha256-<sha256_checksum_of_image>.sig
Upon providing a the flag, skopeo should be able to probe during the copying process if such a tag exist and simply copy it over as well, retaining the name.
This is sort of a pre-cursor to let skopeo verify signed images during manifests getting copied / sync'd around (#1533). The use case for simple signature copy is to allow mirroring of signed images for the benefit of being able to verify those images in the target registry. Sometimes the environment of the target registry is even disconnected by a physical air-gap.
Background: Quay is a heavy user of skopeo and would like to rely on it natively to capture potential signature artifacts during repository mirror configurations.