Files
hermes-agent/plugins
Teknium 85af8f2102 fix(dashboard-auth): a refused JWKS fetch is not repeated on every request
PyJWKClient caches only a successful key fetch. While a firewall refused
the Portal's /.well-known/jwks.json (403, x-vercel-mitigated: deny), every
bearer request on the gateway (iOS app, Webapp, live voice) and the
dashboard fetched it again: one refused lookup per request, which keeps
such a block in place.

make_jwks_client (used by the nous and self-hosted providers) now returns
a PyJWKClient whose fetch_data, after a failed fetch, answers the same
PyJWKClientConnectionError from memory for JWKS_FAILURE_BACKOFF_SECONDS
(30 s) instead of hitting the network. The result is unchanged
(ProviderError -> 503, never a forced logout); the first request after the
window fetches again, so sign-in recovers on its own.

Part of #160843.
2026-12-01 13:24:34 -08:00
..