-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: sandbox tls #4608
fix: sandbox tls #4608
Conversation
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
Codecov Report
@@ Coverage Diff @@
## master #4608 +/- ##
==========================================
- Coverage 87.72% 87.70% -0.03%
==========================================
Files 117 117
Lines 8484 8485 +1
==========================================
- Hits 7443 7442 -1
- Misses 1041 1043 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
available_services = GrpcConnectionPool.get_available_services(self.address) | ||
async def _init_stubs(self): | ||
available_services = await GrpcConnectionPool.get_available_services( | ||
self.channel |
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.
this is the important change as we use the existing self.channel
and not create a new one from address
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 can understand the important change and the test passed. So looks good to me.
But others can have a precise review since I'm not a Python expert.
Fix gRPC reflection using TLS
Description
gRPC reflection is not respecting the TLS setttings. This makes all encrypted gRPC connections fail. This happens e.g. for sandbox.
This PR changes the logic so that we just reuse the existing channel for the reflection. This way I don't have to worry about the settings