Skip to content

Add key signing rotation; JWKS alg, RSA cert signing - #2651

Open
matoszz wants to merge 2 commits into
mainfrom
feat-jwks
Open

Add key signing rotation; JWKS alg, RSA cert signing#2651
matoszz wants to merge 2 commits into
mainfrom
feat-jwks

Conversation

@matoszz

@matoszz matoszz commented Jul 31, 2026

Copy link
Copy Markdown
Member
  • Token signing keys now rotate automatically off certificate lifetimes - the signer with the most remaining validity wins, new keys wait for JWKS propagation before signing, and no key signs tokens it can't outlive
  • Rotation happens live in the running server with no restart, no dropped sessions, and no stale JWKS (knocks on wood) - consumers holding the token manager see new keys immediately, and failed reloads retry with backoff
  • Public keys of retired signers are archived in redis and served for verification across all deployment replicas, so tokens signed before a rotation keep verifying until they naturally expire
  • Existing tokens and sessions survive the upgrade with zero config: keys named by the old ULID convention keep verifying under the kid embedded in outstanding tokens, in either deploy order between infra and core
  • Key identity now derives from the key material itself (RFC 7638 thumbprint) rather than filenames, so kids stay stable no matter how or where keys are mounted

@matoszz
matoszz requested a review from a team as a code owner July 31, 2026 18:46
@github-actions github-actions Bot added enhancement New feature or request httpserve labels Jul 31, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request httpserve

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant