Skip to content

Begin implementing dsse/in-toto support#11

Merged
segiddins merged 1 commit intomainfrom
segiddins/wip-begin-implementing-dsse-in-toto-support
May 7, 2024
Merged

Begin implementing dsse/in-toto support#11
segiddins merged 1 commit intomainfrom
segiddins/wip-begin-implementing-dsse-in-toto-support

Conversation

@segiddins
Copy link
Member

No description provided.

@segiddins segiddins force-pushed the segiddins/wip-begin-implementing-dsse-in-toto-support branch 2 times, most recently from 4d722ee to 9a1479e Compare May 7, 2024 17:51
@segiddins segiddins force-pushed the segiddins/wip-begin-implementing-dsse-in-toto-support branch from 9a1479e to 256e7c6 Compare May 7, 2024 17:53
@segiddins segiddins changed the title [WIP] Begin implementing dsse/in-toto support Begin implementing dsse/in-toto support May 7, 2024
"content" => {
"envelope" => {
"payloadType" => dsse_envelope.payloadType,
"payload" => [[dsse_envelope.payload].pack("m0")].pack("m0"),
Copy link
Member Author

Choose a reason for hiding this comment

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

are these double base64 encodings really correct?

"content" => [signature].pack("m0"),
"publicKey" => {
"content" => [certificate.to_pem].pack("m0")
if signature
Copy link
Member Author

Choose a reason for hiding this comment

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

this will be a lot clearer once I refactor the verifier to work directly on the sigstore protocol objects (a dev.sigstore.verification.v1.Input)

task conformance: %w[conformance:setup] do
sh({ "GHA_SIGSTORE_CONFORMANCE_XFAIL" =>
"test_verify_dsse_bundle_with_trust_root" },
"test_verify_rejects_bad_tsa_timestamp" },
Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't get openssl to use the correct timestamp for TSA validation. That code is essentially a no-op now, but at least the bones of DSSE bundle validation works!

@segiddins segiddins merged commit fba1417 into main May 7, 2024
@segiddins segiddins deleted the segiddins/wip-begin-implementing-dsse-in-toto-support branch May 7, 2024 19:34
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.

1 participant