-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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(common.http): Keep timeout after creating oauth client #15900
fix(common.http): Keep timeout after creating oauth client #15900
Conversation
Thanks so much for the pull request! |
!signed-cla |
83775d6
to
77345d8
Compare
77345d8
to
d6430fd
Compare
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lestrozi thanks a lot for the fix! You might also want to look into the oauth2 secret-store as this provides a more general solution...
(cherry picked from commit d77cf92)
Summary
The HTTP client created by httpconfig loses Timeout configuration when oauth is enabled. More information on issue #15899
This is the fix with the least moving parts I could come up with.
For the future it's probably advisable to have oauth config return a properly wrapped client instead of a new client; or having a mechanism to keep the configuration of the original client.
Checklist
Related issues
resolves #15899