Expand description
JWKS cache freshness and on-demand refresh decisions.
Structs§
- Jwks
Cache Facts - Values read around one key validation.
Enums§
- Jwks
Cache Decision - Whether a validator may use one observed JWKS cache generation.
- Jwks
OnDemand Decision - Whether an on-demand signal may start a fetch.
Functions§
- jwks_
cache_ admission - Admit only a stable, fully published cache generation that is not stale.
- jwks_
on_ demand_ refresh_ decision - Keep the limiter monotonic and fail closed across wall-clock rollback:
refresh exactly when
jwks_on_demand_refresh_allowedholds, stampingnow_msas the new last-refresh time. - jwks_
publication_ generations - Enter an odd write phase and commit the next even generation, or preserve the prior cache. Never wrap: an old reader generation cannot recur.