Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix semantic bug in DSSE specification. #1248

Merged
merged 1 commit into from
Dec 24, 2021
Merged

Conversation

dlorenc
Copy link
Member

@dlorenc dlorenc commented Dec 23, 2021

The 'payloadType' field in a DSSE envelope is always supposed to be set
to the in-toto media type. We were incorrectly placing the inner predicateType
here.

The DSSE library probably shouldn't even expose this as a parameter given that it's
a MUST in the spec.

Signed-off-by: Dan Lorenc lorenc.d@gmail.com

Summary

Ticket Link

Fixes

Release Note


The 'payloadType' field in a DSSE envelope is always supposed to be set
to the in-toto media type. We were incorrectly placing the inner predicateType
here.

The DSSE library probably shouldn't even expose this as a parameter given that it's
a MUST in the spec.

Signed-off-by: Dan Lorenc <lorenc.d@gmail.com>
@dlorenc
Copy link
Member Author

dlorenc commented Dec 23, 2021

cc @mlieberman85 for a second instance of that bug we found earlier :)

@dlorenc
Copy link
Member Author

dlorenc commented Dec 23, 2021

Copy link
Member

@loosebazooka loosebazooka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stop working dan it's the holidays. ⛄ 🥧

@loosebazooka
Copy link
Member

The DSSE library probably shouldn't even expose this as a parameter given that it's
a MUST in the spec.

yeah that's weird

@dlorenc dlorenc merged commit f32c1d7 into sigstore:main Dec 24, 2021
@dlorenc dlorenc deleted the dsse branch December 24, 2021 02:00
@github-actions github-actions bot added this to the v1.5.0 milestone Dec 24, 2021
@dlorenc
Copy link
Member Author

dlorenc commented Dec 24, 2021

NVM I got the layering wrong - the DSSE implementation is fine.

In DSS, you can set any payloadType: https://github.com/secure-systems-lab/dsse/blob/master/protocol.md

The In-ToTo Attestation Spec is the one that requires that payloadType: https://github.com/in-toto/attestation/tree/main/spec#envelope

So fixing it here makes sense, given it's a library for generating in-toto attestations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants