cosign icon indicating copy to clipboard operation
cosign copied to clipboard

Why not using an empty configuration for the signature on OCI 1.1?

Open Silvanoc opened this issue 1 year ago • 1 comments

Question

From what I see, the configuration file of the referrer containing the signature in OCI 1.1 format is needless. Why not using an empty one then, as foreseen by the spec? Please see here for guidance for an empty configuration.

The artifact is nevertheless not valid for container images, so keeping the configuration file for compliance with them is worthless.

Silvanoc avatar Jun 25 '24 20:06 Silvanoc

After looking at the part of the specification about "artifact usage", I am unsure if using an empty config ({}) with a media type other than application/vnd.oci.empty.v1+json (since that is the way cosign specifies the artifact type) is allowed. I'll try to clarify it.

Silvanoc avatar Jun 26 '24 10:06 Silvanoc