Skip to content

Select highest API version with multiple SigningConfig services #459

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
Apr 24, 2025

Conversation

haydentherapper
Copy link
Contributor

Right now, when selecting a service or set of services, the SigningConfig will select the first match given a validity period and API version. If the client supports two API versions concurrently (e.g. Rekor v1 and Rekor v2) and the distributed signing config has entries for multiple API versions (which it will for Rekor), then the client may select an older API version depending on the sorting of the services.

This change sorts the supported API versions to select the highest API version first.

Fixes #453

Summary

Release Note

Documentation

@haydentherapper haydentherapper requested a review from a team as a code owner April 18, 2025 00:29
@haydentherapper
Copy link
Contributor Author

FYI @jku

Right now, when selecting a service or set of services, the SigningConfig
will select the first match given a validity period and API version. If
the client supports two API versions concurrently (e.g. Rekor v1 and
Rekor v2) and the distributed signing config has entries for multiple API
versions (which it will for Rekor), then the client may select an older
API version depending on the sorting of the services.

This change sorts the supported API versions to select the highest API
version first.

Fixes sigstore#453

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 c830b3e into sigstore:main Apr 24, 2025
11 checks passed
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.

SigningConfig should select the highest API version when possible
3 participants