feat: Add SigningConfig support and V2 bundle fixes #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds support for Sigstore's SigningConfig format and fixes V2 bundle compatibility with cosign.
Changes
SigningConfig Support
SigningConfigtype to parsesigning_config.v0.2.jsonfrom TUFSigningConfig::production()andSigningConfig::staging()for embedded configsSigningConfig::from_tuf()andSigningConfig::from_tuf_staging()for TUF-fetched configsSigningContextviaSigningContext::with_config()TUF Offline Mode
TufConfigthat:V2 Bundle Fixes
integratedTimeserialization for V2 bundles - now correctly omitted instead of being set to"0"integratedTimecosign verify-blob --use-signed-timestampsRekor V2 Improvements
https://log2025-alpha2.rekor.sigstage.dev)Files Changed
sigstore-trust-root/src/signing_config.rssigstore-trust-root/src/tuf.rssigstore-trust-root/repository/*.jsonsigstore-bundle/src/builder.rssigstore-sign/src/sign.rssigstore-sign/examples/sign_blob.rssigstore-rekor/src/entry.rsTesting
Notes
--use-signed-timestampsflag because V2 bundles use RFC3161 timestamps instead ofintegratedTime