Skip to content

Add MarshalJSON to SigningConfig, fix marshaling bug #498

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

Merged
merged 2 commits into from
Jul 10, 2025

Conversation

haydentherapper
Copy link
Contributor

@haydentherapper haydentherapper commented Jul 9, 2025

This adds a MarshalJSON method to SigningConfig so that clients don't have to construct the proto structure themselves. This also fixes a bug in ToServiceProtobuf where we didn't handle the validity window where end was optional. Test cases have been updated as well to specify validity windows and operators, and I've verified that these tests fail without the bug fix.

Summary

Release Note

Documentation

@haydentherapper haydentherapper requested a review from a team as a code owner July 9, 2025 06:38
This adds a MarshalJSON method to SigningConfig so that clients don't
have to construct the proto structure themselves. This also fixes a bug
in ToServiceProtobuf where we didn't handle the validity window. Test
cases have been updated as well to specify validity windows and
operators, and I've verified that these tests fail without the bug fix.

I've also added a vscode settings file to incldue the e2e tag for Go
builds.

Signed-off-by: Hayden B <[email protected]>
Copy link
Member

@kommendorkapten kommendorkapten left a comment

Choose a reason for hiding this comment

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

Thanks!

@haydentherapper haydentherapper merged commit 2d48428 into sigstore:main Jul 10, 2025
12 checks passed
@haydentherapper haydentherapper deleted the fix-sc-bug branch July 10, 2025 07:12
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.

3 participants