Sign Bundle with a Timestamp Authority#1216
Conversation
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Co-authored-by: Facundo Tuesca <facu@tuesca.com> Signed-off-by: dm <darkamaul@hotmail.fr>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
# Conflicts: # CHANGELOG.md # sigstore/dsse/__init__.py # sigstore/verify/verifier.py # test/assets/tsa/bundle.txt.sigstore # test/unit/verify/test_verifier.py
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Co-authored-by: William Woodruff <william@yossarian.net> Signed-off-by: dm <darkamaul@hotmail.fr>
Co-authored-by: William Woodruff <william@yossarian.net> Signed-off-by: dm <darkamaul@hotmail.fr>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
|
/gcbrun |
|
This looks like something bad on the Windows CI: |
I think this might require some of the same build config tricks that rfc3161-client CI has... alternatively maybe wait for a rfc3161-client release and avoid installing from git |
Yeah, I think we can prep another release. CC @DarkaMaul |
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
|
/gcbrun |
Signed-off-by: Alexis <alexis.challande@trailofbits.com>
|
/gcbrun |
| make test TEST_ARGS="-m timestamp_authority -rs" | tee output | ||
| ! grep -q "skipping test that requires a Timestamp Authority" output || (echo "ERROR: Found skip message" && exit 1) | ||
| env: | ||
| SIGSTORE_TIMESTAMP: "v1.2.3" |
There was a problem hiding this comment.
I don't love that we pull down a binary here, and hardcode the version. It'd be great if we could get this into Dependabot somehow.
(Not a blocker, flagging as a follow-up.)
| fulcio: FulcioClient, | ||
| rekor: RekorClient, | ||
| trusted_root: TrustedRoot, | ||
| tsa_clients: List[TimestampAuthorityClient] | None = None, |
There was a problem hiding this comment.
Flagging: it's not ideal that this parameter list continues to grow; I think we could probably slice it down substantially by passing the entire ClientTrustConfig and doing the instantiations internally.
That'd be good for a follow-on refactor PR here.
woodruffw
left a comment
There was a problem hiding this comment.
LGTM, nice work @DarkaMaul!
I left some non-blocking comments; the one about refactoring SigningContext's ctor in particular would be good for a follow-up PR.
|
This also needs a CHANGELOG entry, but I'm going to merge as-is and do a follow-up for that. |
|
/gcbrun |
Signed-off-by: William Woodruff <william@trailofbits.com>
Final bit of #1182
Summary
This PR introduces the possibility to create a bundle with a timestamp signed by a TimestampAuthority.
Release Note
Added
Timestamp AuthorityURL has been provided in the SigningConfig, the bundle are now automatically generated with a signed timestamp./cc @woodruffw @facutuesca