-
Notifications
You must be signed in to change notification settings - Fork 49
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
Sign Bundle with a Timestamp Authority #1216
Sign Bundle with a Timestamp Authority #1216
Conversation
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Signed-off-by: Alexis <[email protected]>
Co-authored-by: Facundo Tuesca <[email protected]> Signed-off-by: dm <[email protected]>
Signed-off-by: Alexis <[email protected]>
# 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 <[email protected]>
Co-authored-by: William Woodruff <[email protected]> Signed-off-by: dm <[email protected]>
Co-authored-by: William Woodruff <[email protected]> Signed-off-by: dm <[email protected]>
Signed-off-by: Alexis <[email protected]>
/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 <[email protected]>
Signed-off-by: Alexis <[email protected]>
/gcbrun |
/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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]>
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 Authority
URL has been provided in the SigningConfig, the bundle are now automatically generated with a signed timestamp./cc @woodruffw @facutuesca