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

perf(auth): avoid unnecessary token refresh on get_project() #653

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

TheKevJames
Copy link
Member

Summary

Perf optimization: for GCE_METADATA tokens, there's no hit the token refresh
endpoint when we're only looking to call get_project() and have the value set
locally.

@TheKevJames TheKevJames requested a review from a team as a code owner November 15, 2023 09:45
@TheKevJames TheKevJames requested review from cphoward, jonathan-johnston and shaundialpad and removed request for a team November 15, 2023 09:45
Copy link
Contributor

@shaundialpad shaundialpad left a comment

Choose a reason for hiding this comment

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

LGTM!

@TheKevJames TheKevJames merged commit 0ec0844 into master Nov 16, 2023
72 checks passed
@TheKevJames TheKevJames deleted the kjames/avoid-unnecessary-token-refresh branch November 16, 2023 12:27
jonathan-johnston added a commit that referenced this pull request Dec 7, 2023
* Pull in perf change to next auth release: #653
* Fix `ssl` flag for `gcloud-aio-auth`
* Fix flaky BQ integration tests with `backoff`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants