GITHUB_ACTIONS_JWKS_MIN_REFRESH#

gafaelfawr.constants.GITHUB_ACTIONS_JWKS_MIN_REFRESH = datetime.timedelta(seconds=60)#

Minimum interval between key refreshes prompted by unknown key IDs.

A GitHub Actions ID token naming a key ID that is not in the cached key set prompts a refresh of the keys, since GitHub rotates its signing keys. Without a limit, anyone could force a request to GitHub for each token they send to the token exchange. Within this interval after a refresh, tokens naming unknown key IDs are rejected without refreshing the keys again. Expiry of the cached keys after the configured cache lifetime always forces a refresh.