-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Background
EventGate currently loads the JWT public key set from the Login Service once at Lambda cold start and then keeps that set for the lifetime of the Lambda execution environment.
The Login Service rotates signing keys as follows:
- It generates a new public/private key pair.
- It adds the new public key to the exposed key set.
- For 30 minutes, it continues signing JWTs with the old key(s) only.
- After that grace period, it may start signing with the new key and eventually remove old keys.
Risks:
EventGate not yet having the new key if single Lambda instance exists for too long. Login Service does the rotation, attaches the new key to the key set, and then for 30min doesn't yet use it for signing JWTs.
Feature
Add a periodic, automatic refresh of the JWT public key set inside EventGate.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request