He-Pin opened a new pull request, #707:
URL: https://github.com/apache/pekko-grpc/pull/707

   Motivation:
   Port the applicable behavior from akka/akka-grpc commit 
b0ff79ecc4382b25bad4e041df6cdbaa3b305343, which is now Apache licensed.
   
   The upstream change removes reflective mutation of Netty `JdkSslContext` 
internals when adapting a Java `SSLContext` for gRPC clients.
   
   Modification:
   - Replace the reflection-based `sslContext` field patching in 
`NettyClientUtils#createNettySslContext` with direct `JdkSslContext` 
construction.
   - Keep HTTP/2 ciphers and ALPN `h2` enabled for the current 
grpc-netty-shaded runtime, preserving TLS/HTTP2 negotiation behavior.
   
   Result:
   Java `SSLContext`-backed clients no longer rely on private Netty internals 
while continuing to negotiate HTTP/2 correctly.
   
   Validation:
   - `sbt --batch "runtime/scalafmtCheck" "runtime/testOnly 
org.apache.pekko.grpc.internal.NettyClientUtilsSpec" 
"plugin-tester-scala/testOnly example.myapp.helloworld.MtlsIntegrationSpec"`
   - Combined local final check also passed: `sbt --batch scalafmtCheckAll test`
   
   References:
   - Upstream commit: 
https://github.com/akka/akka-grpc/commit/b0ff79ecc4382b25bad4e041df6cdbaa3b305343
   - Upstream PR: https://github.com/akka/akka-grpc/pull/1649
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to