~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A confidential client's `jwks_uri` is fetched again on every request

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

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.