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(common.http): Keep timeout after creating oauth client #15900

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

lestrozi
Copy link
Contributor

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

  • No AI generated code was used in this PR

Related issues

resolves #15899

@telegraf-tiger
Copy link
Contributor

Thanks so much for the pull request!
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla

@lestrozi
Copy link
Contributor Author

!signed-cla

@telegraf-tiger
Copy link
Contributor

@DStrand1 DStrand1 changed the title fix(httpconfig) keep timeout after creating oauth client fix(common.http): Keep timeout after creating oauth client Sep 17, 2024
@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Sep 17, 2024
Copy link
Member

@DStrand1 DStrand1 left a 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!

@DStrand1 DStrand1 added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Sep 17, 2024
Copy link
Member

@srebhan srebhan left a 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...

@srebhan srebhan merged commit d77cf92 into influxdata:master Sep 19, 2024
29 checks passed
@github-actions github-actions bot added this to the v1.32.1 milestone Sep 19, 2024
srebhan pushed a commit that referenced this pull request Oct 7, 2024
asaharn pushed a commit to asaharn/telegraf that referenced this pull request Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP client loses Timeout when using oauth
3 participants