JWKS cache never expires — key rotation requires restart #58

Open
opened 2026-03-30 13:28:52 +00:00 by sharang · 0 comments
Owner

fetch_or_get_jwks caches JWKS forever. When Keycloak rotates signing keys, all new tokens are rejected until the process restarts. Fix: Add TTL (5 min) and force-refresh fallback when kid is not found.

fetch_or_get_jwks caches JWKS forever. When Keycloak rotates signing keys, all new tokens are rejected until the process restarts. Fix: Add TTL (5 min) and force-refresh fallback when kid is not found.
sharang added the bugsecurityv0.3.0critical labels 2026-03-30 13:28:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sharang/compliance-scanner-agent#58