Skip to content

Select highest API version for SigningConfig services always #499

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
Jul 11, 2025

Conversation

haydentherapper
Copy link
Contributor

Found a bug in the selection logic for SigningConfig services where a lower version service would be selected if it were newer than another service with a higher API version. Fix this issue looping through sorted versions and services until a set of services are found. Also added a test case to catch this.

Summary

Release Note

Documentation

@haydentherapper haydentherapper requested a review from a team as a code owner July 10, 2025 06:00
Found a bug in the selection logic for SigningConfig services where a
lower version service would be selected if it were newer than another
service with a higher API version. Fix this issue looping through
sorted versions and services until a set of services are found. Also
added a test case to catch this.

Signed-off-by: Hayden B <[email protected]>
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.

lgtm!

@codysoyland codysoyland merged commit e2d7d21 into sigstore:main Jul 11, 2025
12 checks passed
@haydentherapper haydentherapper deleted the fix-sc-select-bug branch July 11, 2025 20:34
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