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

   ### Motivation
   
   Classic remoting TLS handshake failures were silently swallowed: the 
`NettySSLSupport` handshake listener closed the channel without logging the 
failure reason or peer address. Additionally, `SSLContext` was lazily 
initialized, meaning keystore/truststore errors were only discovered on the 
first connection attempt rather than at startup.
   
   ### Modification
   
   - `NettySSLSupport`: add `MarkerLoggingAdapter` parameter, log TLS handshake 
failures with peer address and cause
   - `NettyTransport`: pass log to `NettySSLSupport`
   - `ConfigSSLEngineProvider`: change `sslContext` from `lazy val` to `val` 
for eager initialization (fail-fast at provider construction time)
   
   ### Result
   
   TLS handshake failures now produce actionable warning logs with peer address 
and error cause. Keystore/truststore configuration errors are detected at 
startup rather than on first connection.
   
   ### Tests
   
   - `sbt "remote / Test / testOnly 
org.apache.pekko.remote.ConfigSSLEngineProviderSpec"` — verified fail-fast on 
bad keystore
   - `sbt "remote / Test / testOnly 
org.apache.pekko.remote.Ticket1978ConfigSpec"` — verified no regression
   
   ### References
   
   Fixes #3162


-- 
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