Skip to content

Prepare release 1.3.0 #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Sep 11, 2020
Merged

Prepare release 1.3.0 #68

merged 18 commits into from
Sep 11, 2020

Conversation

jschlyter
Copy link
Collaborator

No description provided.

jschlyter and others added 17 commits September 3, 2020 09:08
Ignore KeyBundle errors for a specified duration

When fetching remote keys, KeyBundle will retry every time even if errors had recently occurred. This might not be desirable for many applications, as errors like this usually fix themselves within a short amount of time. Until then, additional requests would result in more load, latency, excess logging and key source spamming.

The PR adds an `ignore_errors_period` parameter to the KeyBundle object, that is used to specify the amount of time (in seconds) during which fetching is skipped. Default value is `0` (zero), effectively disabling this functionality and resulting in retries every time the bundle is accessed. For most applications, a hold down timer of 60 seconds or more is probably reasonable.
Fix that updated keys are marked as inactive if we get 304 from server.
Make sure we return inactive keys when calling get_jwt_verify_keys().
Signed-off-by: Ivan Kanakarakis <[email protected]>
Signed-off-by: Ivan Kanakarakis <[email protected]>
Signed-off-by: Ivan Kanakarakis <[email protected]>
Signed-off-by: Ivan Kanakarakis <[email protected]>
@jschlyter jschlyter requested a review from rohe September 11, 2020 15:20
@jschlyter jschlyter added the release Release PR label Sep 11, 2020
@jschlyter jschlyter merged commit 46df6c3 into master Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Release PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants