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

Add defensive bearer token rotation for java client #5539

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

devinrsmith
Copy link
Member

This solves a theoretical flashing issue that could arise during token rotation where, depending on the order of responses from the server, a bearer token could be rotated to the new value and then "rotated" back to the old token value. While this situation does not cause an issue with our current server implementation (which is rather lenient and keeps around multiple previous bearer tokens), we should still prefer to be defensive on the java client side and use the newest value.

This solves a theoretical flashing issue that could arise during token rotation where, depending on the order of responses from the server, a bearer token could be rotated to the new value and then "rotated" back to the old token value. While this situation does not cause an issue with our current server implementation (which is rather lenient and keeps around multiple previous bearer tokens), we should still prefer to be defensive on the java client side and use the newest value.
@devinrsmith devinrsmith merged commit 0091f0c into deephaven:main Jun 18, 2024
21 checks passed
@devinrsmith devinrsmith deleted the java-client-flashing-token branch June 18, 2024 15:28
@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants