-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Migrate to in-toto v1 #4269
Migrate to in-toto v1 #4269
Conversation
6e38f75
to
eee2a36
Compare
3ab8d90
to
043d0ae
Compare
Signed-off-by: Christian Dupuis <cd@atomist.com>
So looks like upstream has moved from https://github.com/in-toto/in-toto-golang to https://github.com/in-toto/attestation, and importantly, they've switching to generating using gRPC (yayyy). After digging into this some more, buildkit/vendor/github.com/in-toto/attestation/go/v1/statement.pb.go Lines 27 to 37 in 2c19066
So we need to use
Updating all these is gonna be a lot of fun - as discussed with @cdupuis, I'll take a look at this when I get a moment, but if anyone else fancies a try, they're welcome to 😄 cc @jsternberg (since you were looking into |
Short comment because I'm not at my computer, but I suspect it would be better to implement the marshaler interface from This should work for marshaling. I marshaling is a bit more difficult but that can be left to clients to figure out. |
@cdupuis this PR does not add the DSSE wrapper as described by the spec: https://github.com/in-toto/attestation/blob/main/spec/v1/envelope.md I think we'd need to add that to become v1 compliant. |
Closing this PR as I'm not working on this anymore and it wasn't working anyways. @kipz DSSE is for when you have signed content which isn't the case there, that's why this wasn't added. Once those attestations get signed, we need to introduce the envelope I believe. From the DSSE spec:
Without signed content, buildkit can't add |
No description provided.