Skip to content

add key rotation to jwks endpoint - #288

Open
lecafard wants to merge 1 commit into
masterfrom
feature/jwks-key-rotation
Open

lecafard wants to merge 1 commit into
masterfrom
feature/jwks-key-rotation

Conversation

@lecafard

Copy link
Copy Markdown
Contributor

Add key rotation to the JWKS endpoint using a deterministic half-epoch sliding window. With the epoch set to 1 week (7 days), the rotation follows this timeline:

  • Day 0 to 3.5: Keys for Epoch 0 and 1 are published. We sign using Epoch 0.
  • Day 3.5 to 7: Keys for Epoch 0 and 1 are published. We sign using Epoch 1.
  • Day 7 to 10.5: Cache rotates. Keys for Epoch 1 and 2 are exposed. We sign using Epoch 1.
  • Day 10.5 to 14: Keys for Epoch 1 and 2 are exposed. We sign using Epoch 2.
  • Day 14...: Cache rotates. Keys for Epoch 2 and 3 are exposed. We sign using Epoch 2.

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants