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

Fix warning for CLI verification of legacy bundles #1198

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

facutuesca
Copy link
Collaborator

This PR fixes a check in the CLI command sigstore verify where we should have printed a warning while verifying a legacy bundle (*.sigstore) if no bare materials (*.crt and *.sig) are provided.

The warning was never printed, due to an error in the check that made it always return False.

This PR also adds a regression test for the bug fixed in #1192, checking that the CLI correctly verifies a legacy bundle and that it logs the expected warning.

This closes #1194.

cc @woodruffw

woodruffw
woodruffw previously approved these changes Oct 28, 2024
Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

Nice work @facutuesca! Mind adding a CHANGELOG entry, since this fixes my broken fix?

@facutuesca
Copy link
Collaborator Author

Nice work @facutuesca! Mind adding a CHANGELOG entry, since this fixes my broken fix?

Done!

@facutuesca facutuesca requested a review from woodruffw October 28, 2024 19:51
@woodruffw
Copy link
Member

/gcbrun

@woodruffw woodruffw merged commit f05612e into sigstore:main Oct 28, 2024
23 checks passed
@woodruffw woodruffw deleted the fix-warning-legacy branch October 28, 2024 19:53
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.

Post-mortem for regression in 3.5.0
2 participants