You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2026/10/14 21:07:00 UTC

[jira] [Updated] (HDDS-16970) Certificates do not include IPv6 addresses in subject alternative names

     [ https://issues.apache.org/jira/browse/HDDS-16970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siyao Meng updated HDDS-16970:
------------------------------
    Status: Patch Available  (was: Open)

> Certificates do not include IPv6 addresses in subject alternative names
> -----------------------------------------------------------------------
>
>                 Key: HDDS-16970
>                 URL: https://issues.apache.org/jira/browse/HDDS-16970
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Certificates
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>              Labels: pull-request-available
>
> {{HddsServerUtil.getValidInetsForCurrentHost}} skips every IPv6 address of the host. {{NetworkInterface.getInetAddresses()}} returns IPv6 addresses with the interface as scope, also for global and unique local addresses (for example {{fd00:172:25:0:0:0:0:102%eth0}}), and {{isScopedOrMaskingIPv6Address}} rejects any address whose text contains a percent sign.
> {noformat}
> INFO utils.HddsServerUtil: ip:fd00:172:25:0:0:0:0:102%eth0 not returned.
> {noformat}
> On an IPv6-only host the certificate has DNS names only. Connections that verify the peer by IP address fail:
> {noformat}
> CertificateException: No subject alternative names matching IP address fd00:172:25:0:0:0:0:104 found for SNIHostName=null and peerHost=[fd00:172:25:0:0:0:0:104] in the chain of 3 certificate(s): 1. subjectAlternativeNames=[DNS:b945fe54756e], CN=dn@b945fe54756e. 2. subjectAlternativeNames=[DNS:scm1.org], CN=scm-sub@scm1.org. 3. subjectAlternativeNames=[DNS:scm1.org], CN=scm@scm1.org.
> {noformat}
> * Datanode Ratis: no pipeline gets a leader and SCM stays in safe mode.
> * SCM follower checkpoint download from the leader ({{SCMSnapshotProvider}} connects to the leader by IP address).
> Found with the {{ozonesecure-ha}} compose cluster on an IPv6-only network. Workaround for datanodes: {{hdds.datanode.use.datanode.hostname=true}}.
> Proposed fix: drop the scope of IPv6 addresses that are not link local before the check. {{TestHddsServerUtils}} only covers addresses from {{InetAddress.getByName}}, which have no scope.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org