Skip to content
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

Better key rotation support #91

Closed
skjolber opened this issue Feb 13, 2025 · 0 comments
Closed

Better key rotation support #91

skjolber opened this issue Feb 13, 2025 · 0 comments

Comments

@skjolber
Copy link
Contributor

Add some form of reactive support which track whether downstream services accept the cached JWT token.

When a downstream service does not accept the token (i.e. HTTP 401 or equivalent):

  • determine whether the current token was the rejected token
    • yes: force refresh token
    • no: force refresh throttled

Add some basic retry wrappers for instant refresh of tokens + optional service unavailable on 401. Setting negative health will not work well, rather have to return 503 to individual requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant