smengcl opened a new pull request, #10687:
URL: https://github.com/apache/ozone/pull/10687

   Generated-by: Claude Code (Opus 4.8)
   
   ## What changes were proposed in this pull request?
   
   `HddsServerUtil#getValidInetsForCurrentHost()` excluded IPv4 
wildcard/loopback
   (`0.0.0.0`, `127.0.0.1`) from certificate SANs via a fixed string set, but 
missed
   the IPv6 equivalents (`::`, `::1`), which then leaked into SANs.
   
   Replaced the string match with the semantic `isAnyLocalAddress()` /
   `isLoopbackAddress()` predicates (covering both families) in a new testable 
helper
   `isValidInetForCsr(InetAddress)`; removed the unused `INVALID_IPS` set.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9894
   
   ## How was this patch tested?
   
   - Added unit tests coverage in TestHddsServerUtils


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