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.
Fixed on main. Key rotation needs no restart: when a token's kid is not in the cached JWKS, or its signature fails, the middleware refreshes the JWKS once and validates again (compliance-core/src/auth.rs, "JWKS appears stale — forcing refresh and retrying"; #84). A fixed TTL is not needed on top of that.
Fixed on main. Key rotation needs no restart: when a token's `kid` is not in the cached JWKS, or its signature fails, the middleware refreshes the JWKS once and validates again (`compliance-core/src/auth.rs`, "JWKS appears stale — forcing refresh and retrying"; #84). A fixed TTL is not needed on top of that.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.
Fixed on main. Key rotation needs no restart: when a token's
kidis not in the cached JWKS, or its signature fails, the middleware refreshes the JWKS once and validates again (compliance-core/src/auth.rs, "JWKS appears stale — forcing refresh and retrying"; #84). A fixed TTL is not needed on top of that.