client metadata is kept for 10 minutes (Clients), but a jwks_uri key set is fetched again on every PAR and token request. Every sign-in and refresh by a confidential client is an outbound fetch, and a slow or briefly unreachable key host fails sign-ins and refreshes. The reference provider caches it.
How to see it
Read against docs/fresh at 4636e6d, the code at: crates/group-host/src/oauth_clients.rs:329-335. Paths are under crates/group-host/src unless they say otherwise. Severity: low.
What you expected
Keep the fetched key set in the same cache as the metadata. On a kid miss, fetch it again once, so that keys can rotate.
Where
The host, as built from 4636e6d. Found while checking the docs against the code.
What happened
client metadata is kept for 10 minutes (
Clients), but ajwks_urikey set is fetched again on every PAR and token request. Every sign-in and refresh by a confidential client is an outbound fetch, and a slow or briefly unreachable key host fails sign-ins and refreshes. The reference provider caches it.How to see it
Read against
docs/freshat 4636e6d, the code at: crates/group-host/src/oauth_clients.rs:329-335. Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
Keep the fetched key set in the same cache as the metadata. On a
kidmiss, fetch it again once, so that keys can rotate.Where
The host, as built from 4636e6d. Found while checking the docs against the code.