Repository navigation
Conversation
|
/gemini review |
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces support for retrieving and verifying the negotiated TLS key exchange group in gRPC across C++, Python, and core components, along with corresponding tests. The review feedback highlights several improvement opportunities: zero-initializing the grpc_tls_custom_verification_check_request struct in C++ tests to prevent undefined behavior, refactoring Python tests to avoid fragile hardcoded key exchange groups that depend on the underlying SSL library, and extracting redundant calls to negotiated_key_exchange_group() into a local variable to improve readability.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
matthewstevenson88
left a comment
There was a problem hiding this comment.
Thanks for the PR! Generally looks good, one test comment.
Also sanity checks are failing. :)
|
Yeah I made a change that must've made a line too long, and the easiest way to get the autoformatting is just to wait for the sanity auto-fix PR |
Automated fix for refs/heads/key_exchange_group_plumbing
markdroth
left a comment
There was a problem hiding this comment.
Looks good!
I know that we talked about whether or not we need a gRFC for this, and I said it would be okay to skip it, since it's such a small change. However, since we're publishing gRFC A120 (grpc/proposal#553) anyway, it would probably make sense to include these changes there. (I'll add a comment there as well.)
|
Good point about the gRFC - added |
* upstream/master: [PSM Interop] : add cleanup for the orphaned resources left for SPIFFE cluster. (grpc#43038) [PH2][Trivial] Build (grpc#43069) [PH2][Bug][Client] Bug fix [Security] Plumb SSL key exchange group to auth context. (grpc#42917) [CI] Update debian-based docker images to use cmake 3.25. (grpc#42795) [xDS e2e tests] clean up API for verifying server status notification changes (grpc#43052) Clamp PosixEndpointImpl adaptive read target to max read chunk size (grpc#42234) [tls] Move to grpc_core::PemKeyCertPair and grpc_core::KeyCertPairsOrSelector (grpc#42992) [build] Add grpc-proto submodule (grpc#43035) fix detecting the number of online CPU (grpc#41585) [core][promise-based-filter] Fix for metadata nullptr crash on repoll (grpc#43037) skip tls1.3 and <1.1.1 in telemetry test (grpc#43042)
Plumb the negotiated key exchange group all the way to the custom verification check. This allows users to check the negotiated key exchange group to ensure, for example, they are using post-quantum crypto. Closes grpc#42917 COPYBARA_INTEGRATE_REVIEW=grpc#42917 from gtcooke94:key_exchange_group_plumbing d8c14b6 PiperOrigin-RevId: 953465031
…thon_apic_clients * upstream/master: [PSM Interop] : add cleanup for the orphaned resources left for SPIFFE cluster. (grpc#43038) [PH2][Trivial] Build (grpc#43069) [PH2][Bug][Client] Bug fix [Security] Plumb SSL key exchange group to auth context. (grpc#42917) [CI] Update debian-based docker images to use cmake 3.25. (grpc#42795) [xDS e2e tests] clean up API for verifying server status notification changes (grpc#43052) Clamp PosixEndpointImpl adaptive read target to max read chunk size (grpc#42234) [tls] Move to grpc_core::PemKeyCertPair and grpc_core::KeyCertPairsOrSelector (grpc#42992)
Plumb the negotiated key exchange group all the way to the custom verification check. This allows users to check the negotiated key exchange group to ensure, for example, they are using post-quantum crypto. Closes grpc#42917 COPYBARA_INTEGRATE_REVIEW=grpc#42917 from gtcooke94:key_exchange_group_plumbing d8c14b6 PiperOrigin-RevId: 953465031
Plumb the negotiated key exchange group all the way to the custom verification check.
This allows users to check the negotiated key exchange group to ensure, for example, they are using post-quantum crypto.