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

feat: support multiple jwt public keys #5090

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

zacharyhamm
Copy link
Contributor

Support two JWT keys. One used for signing (the primary private key), and an extra one for verification, so that we can rotate keys without downtime, and then remove the "secondary" if desired. It also now possible to specify the key algorithm. ES256 and RS256 are supported but RS256 will be removed.

Adds a new crate, si-jwt-public-key (since this logic needs to be shared between sdf and the module-index).

@zacharyhamm zacharyhamm force-pushed the zack/support-multiple-signing-keys branch 4 times, most recently from 4f768d6 to c57385f Compare December 9, 2024 20:14
sprutton1
sprutton1 previously approved these changes Dec 9, 2024
stack72
stack72 previously approved these changes Dec 10, 2024
@zacharyhamm zacharyhamm added this pull request to the merge queue Dec 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 10, 2024
Support two JWT keys. One used for signing (the primary private key),
and an extra one for verification, so that we can rotate keys without
downtime, and then remove the "secondary" if desired. It also now
possible to specify the key algorithm. ES256 and RS256 are supported but
RS256 will be removed.

Adds a new crate, `si-jwt-public-key` (since this logic needs to be
shared between sdf and the module-index).
@zacharyhamm zacharyhamm added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 3dd4384 Dec 10, 2024
8 checks passed
@zacharyhamm zacharyhamm deleted the zack/support-multiple-signing-keys branch December 10, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants