Skip to content

fail SigstoreTimestampingAuthority) Verify with nil Root #490

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 1 commit into from
Jun 25, 2025

Conversation

dmitris
Copy link
Contributor

@dmitris dmitris commented Jun 25, 2025

Summary

add a check to SigstoreTimestampingAuthority) Verify and return an error if tsa.Root is present but nil to avoid passing it along in the tsaverification.VerifyOpts.

See issue sigstore/cosign#4261 and
a fix the "downstream" failure sigstore/timestamp-authority#1099.

Verification

  • cosign built with this change no longer panics
  • the unit test for the change in this PR when added to the main code causes a panic failure.

Release Note

  • Bug fixes and fixes of previous known issues
  • properly handled SigstoreTimestampingAuthority.Root being nil in SigstoreTimestampingAuthority.Verify

Documentation

N/A

add a check to SigstoreTimestampingAuthority) Verify and return
an error if tsa.Root is present but nil to avoid passing it
along in the tsaverification.VerifyOpts.

See issue sigstore/cosign#4261.

Signed-off-by: Dmitry Savintsev <[email protected]>
@dmitris dmitris requested a review from a team as a code owner June 25, 2025 11:23
@dmitris dmitris changed the title fail SigstoreTimestampingAuthority) Verifywith nil Root fail SigstoreTimestampingAuthority) Verify with nil Root Jun 25, 2025
Copy link
Member

@codysoyland codysoyland left a comment

Choose a reason for hiding this comment

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

Thanks!

@codysoyland codysoyland merged commit ac77dfc into sigstore:main Jun 25, 2025
12 checks passed
@dmitris dmitris deleted the fix-tsa-root-nil branch June 26, 2025 05:23
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.

2 participants