slsa icon indicating copy to clipboard operation
slsa copied to clipboard

Specify a mediaType for SLSA attestations

Open sudo-bmitch opened this issue 2 years ago • 5 comments

Some tools require a mediaType for storing/transferring content like SLSA attestations. It would be useful if SLSA had a mediaType, either based on a registered domain, or ideally registered with IANA.

sudo-bmitch avatar Jul 31 '23 16:07 sudo-bmitch

A possible example is application/vnd.slsa.in-toto.dsse.

sudo-bmitch avatar Jul 31 '23 16:07 sudo-bmitch

I think we should handle this at the in-toto level, since the SLSA Provenance is a layer inside. I'll close this in favor of https://github.com/in-toto/attestation/issues/271.

MarkLodato avatar Aug 01 '23 13:08 MarkLodato

That feels backwards to me. My understanding is that would be a mediaType that names the envelope that happens to contain application data, rather than the application that happens to use an envelope. But we can have that discussion on the linked issue.

sudo-bmitch avatar Aug 02 '23 01:08 sudo-bmitch

Update: We discussed the general topic of attestation media types at the in-toto community meeting last week. The decision from the in-toto side is to continue indicating the attestation type at the DSSE layer, with guidelines for indicating the predicate type as well. What those guidelines are is still TBD. Implementations or use cases that don't use signing/in-toto fall outside the purview of in-toto, so they can certainly use or define their own predicate-specific mediaType.

So, please feel free to re-open this issue if a SLSA-specific media type for Build L1 use cases is still needed.

marcelamelara avatar Aug 07 '23 15:08 marcelamelara

Following the latest discussion on the in-toto end, it sounds like this issue needs to be re-opened for SLSA L1 use cases.

marcelamelara avatar Aug 16 '23 00:08 marcelamelara