GeezerVison is showing github.com — fix(auth): avoid creating mTLS SSL context for custom async transports by attharva-24 · Pull Request #17825 · googleapis/google-cloud-python
Conversation
attharva-24
commented
Jul 22, 2026
•
edited by macastelaz
Loading
Uh oh!
There was an error while loading. Please reload this page.
If a custom async transport is used (rather than the default AiohttpRequest), the library warns that it cannot configure mTLS. In this case, we should also skip creating the client cert SSL context, preventing unexpected errors or warnings during SSL context generation when a custom transport is in use.
Fixes: b/530712364
Fixes #17622
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
gemini-code-assist[bot] reacted with eyes emoji
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.
Code Review
This pull request defers the creation of the SSL context during mTLS configuration until after verifying that the request handler is an instance of AiohttpRequest. This prevents unnecessary SSL context creation when a custom transport is used. Additionally, a new test case has been added to verify behavior with custom transports and invalid certificates, and existing tests have been updated to reflect that the SSL context creation helper is no longer called in these scenarios. There are no review comments, so no further feedback is provided.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
I believe there is a small formatting change needed here to "fix" the failing lint CI.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
attharva-24 reacted with thumbs up emoji
attharva-24 reacted with eyes emoji
All reactions
-
👍
1 reaction
-
👀
1 reaction
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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 - small nit on workflow - in the future try to avoid force pushing, especially after reviews have started, as it can makes following the changes a bit more challenging (though in this case, no harm was really done given the scope of the PR).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
If a custom async transport is used (rather than the default AiohttpRequest),
the library warns that it cannot configure mTLS. In this case, we should
also skip creating the client cert SSL context, preventing unexpected errors
or warnings during SSL context generation when a custom transport is in use.
Fixes: b/530712364
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|