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

fix: refresh credentials for valid oauth2 token on each refresh #894

Closed
wants to merge 3 commits into from

Conversation

jackwotherspoon
Copy link
Collaborator

Previously, the credentials object which is used for auto IAM authentication was only refreshed when it became invalid (expired). This is buggy as the credentials expiration is sometimes used to calculate when to schedule the next refresh (when credentials expiration is sooner than cert expiration). If we do not refresh the credentials object as part of the refresh operation than we get constant refreshes scheduled in the final few minutes before the credentials' OAuth2 token expires.

Fixes #892

@jackwotherspoon jackwotherspoon requested a review from a team as a code owner November 10, 2023 17:02
@jackwotherspoon jackwotherspoon self-assigned this Nov 10, 2023
Copy link
Member

@enocom enocom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@jackwotherspoon
Copy link
Collaborator Author

Closing as #898 is a better fix

@jackwotherspoon jackwotherspoon deleted the creds-refresh branch March 4, 2024 12:47
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

Successfully merging this pull request may close these issues.

Redundant instance refreshes (with IAM auth)
2 participants