Ayush0612005 commented on PR #31221:
URL: https://github.com/apache/camel/pull/31221#issuecomment-7344119033

   Thanks @davsclaus, all five in 5439dc3 (rebased on main), and thanks @oscerd 
for the review. This also covers the two points from the bot review.
   
   1. **Component docs**: the "Verifying the host name of the server" sections 
of `netty-component.adoc` and `netty-http-component.adoc` now say that the 
`endpointIdentificationAlgorithm` of the client parameters of 
`sslContextParameters` turns the check on as well, including the global 
configuration used with `useGlobalSslContextParameters=true`, and that 
`hostnameVerification=true` takes precedence with `HTTPS`. The catalog copies 
are updated.
   2. **`hostnameVerification` description**: now "To enable hostname 
verification on the client SSLEngine. It is also enabled by the 
endpointIdentificationAlgorithm of the client parameters of the 
sslContextParameters.", in `NettyConfiguration` and in the generated component 
JSON, catalog and component/endpoint DSL.
   3. **Failure tests**: they now require an `SSLHandshakeException` in the 
cause chain and a root cause with "No subject alternative names matching IP 
address 127.0.0.1", so a refused connection cannot pass them.
   4. **clientMode end to end**: new 
`NettySSLConsumerClientModeEndpointIdentificationTest`, next to 
`NettySSLConsumerClientModeHostnameVerificationTest`. A clientMode consumer 
with client parameters set to `HTTPS` routes the greeting of a server whose 
certificate lists only `localhost`, and the one connecting to `127.0.0.1` 
rejects the certificate, which the test server sees as a failed handshake (it 
waits on a latch, no sleep). With the clientMode wiring in 
`DefaultServerInitializerFactory` disabled, the second test fails.
   5. **Package cycle**: 
`SSLEngineFactory.getClientEndpointIdentificationAlgorithm` now takes 
`(CamelContext, boolean hostnameVerification, SSLContextParameters)`, so the 
`ssl` package no longer imports `NettyConfiguration`.
   
   The SSL tests of camel-netty (22) and camel-netty-http (10) pass.
   
   _Claude Code on behalf of Ayush0612005_
   


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

Reply via email to