CalvinKirs commented on PR #71290:
URL: https://github.com/apache/doris/pull/71290#issuecomment-7372691069

   The local metrics use case makes sense. The stock Spring Boot/Jetty 
connector already enables the HTTP Host check against the server certificate. 
This PR explicitly sets the value after the TLS provider customizes the 
factory, so the default could override a custom provider's existing policy. 
Could an unset option inherit the connector's setting and only apply an 
override when explicitly configured? Disabling the check applies to every HTTPS 
route, including requests that send SNI. [Jetty 
default](https://github.com/jetty/jetty.project/blob/jetty-12.1.14/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/SecureRequestCustomizer.java#L58-L65)
 ยท [Doris 
customizer](https://github.com/apache/doris/blob/b326d96298a971450d692bc3754cdfea61af6cb6/fe/fe-core/src/main/java/org/apache/doris/httpv2/config/WebServerFactoryCustomizerConfig.java#L43-L61)
   
   - Please clarify the certificate requirement for IP-based clients. Even with 
the server-side check disabled, a client performing endpoint verification needs 
a matching IP SAN for an IP URL. A local scraper can also use the certificate's 
DNS name and resolve it to the local address. [Config 
description](https://github.com/apache/doris/blob/b326d96298a971450d692bc3754cdfea61af6cb6/fe/fe-common/src/main/java/org/apache/doris/common/Config.java#L415-L420)
   - The test reads `keytool` output to EOF before `waitFor(60, ...)`, so a 
stuck process can block the test before the timeout starts. Could the test 
redirect output to a temporary file, wait with the timeout, and terminate and 
reap the child if the timeout expires? [Test 
helper](https://github.com/apache/doris/blob/b326d96298a971450d692bc3754cdfea61af6cb6/fe/fe-core/src/test/java/org/apache/doris/http/HttpsSniHostCheckTest.java#L78-L88)
   


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