Skip to content
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

sigstore: v3 bundles #901

Merged
merged 7 commits into from
Feb 15, 2024
Merged

sigstore: v3 bundles #901

merged 7 commits into from
Feb 15, 2024

Conversation

woodruffw
Copy link
Member

@woodruffw woodruffw commented Feb 12, 2024

Bumps sigstore-protobuf-specs, giving us access to the latest Bundle version.

Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw added the component:api Public APIs label Feb 12, 2024
@woodruffw woodruffw self-assigned this Feb 12, 2024
Signed-off-by: William Woodruff <william@trailofbits.com>
Not added until 3.11; use (str, Enum) instead.

Signed-off-by: William Woodruff <william@trailofbits.com>
`in` doesn't work on inner enum types until 3.12.

Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw
Copy link
Member Author

I think this is good to go. It adds support for verifying v3 bundles, but still emits v2 ones.

In terms of switching signing to v3: I think the 3.x release series would be reasonable.

sigstore/verify/models.py Outdated Show resolved Hide resolved
Signed-off-by: William Woodruff <william@trailofbits.com>
jku
jku previously approved these changes Feb 15, 2024
Copy link
Member

@jku jku left a comment

Choose a reason for hiding this comment

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

Seems quite reasonable as is. Some comments :

  • tests would be nice but I can see how they become more viable once the signing works too
  • KnownBundleType is a bit of a mouthful: it could probably be just BundleType

@woodruffw
Copy link
Member Author

  • KnownBundleType is a bit of a mouthful: it could probably be just BundleType

Yeah, I like that 🙂 -- I'll make a quick change (and also update the CHANGELOG).

Signed-off-by: William Woodruff <william@trailofbits.com>
Signed-off-by: William Woodruff <william@trailofbits.com>
@woodruffw woodruffw merged commit 8d222ed into main Feb 15, 2024
25 checks passed
@woodruffw woodruffw deleted the ww/bump-protobuf-specs branch February 15, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:api Public APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants