You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Andor Molnar (Jira)" <ji...@apache.org> on 2025/08/19 18:58:00 UTC
[jira] [Assigned] (ZOOKEEPER-4240) IPV6 support in ZooKeeper ACL
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andor Molnar reassigned ZOOKEEPER-4240:
---------------------------------------
Assignee: Abhishek Kothalikar
> IPV6 support in ZooKeeper ACL
> -----------------------------
>
> Key: ZOOKEEPER-4240
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4240
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.6.2
> Reporter: KARTHIK
> Assignee: Abhishek Kothalikar
> Priority: Major
> Labels: ACL, ipv6, pull-request-available
> Fix For: 3.10.0, 3.9.4
>
> Time Spent: 7.5h
> Remaining Estimate: 0h
>
> The IPAuthenticationProvider class doesn't handle the IPV6 addresses properly. Because of this, the authorization is failing when using the ACL with the IP scheme.
> *private byte[] addr2Bytes(String addr)* - validates only the IPV4 and not the IPV6 address. Below is the code snippet of this method.
> {code:java}
> // This is a bit weird but we need to return the address and the number of
> // bytes (to distinguish between IPv4 and IPv6
> private byte[] addr2Bytes(String addr) {
> byte[] b = v4addr2Bytes(addr);
> // TODO Write the v6addr2Bytes
> return b;
> }{code}
>
> Is there any other workaround to work with ZooKeeper ACL's IP scheme with IPV6 address?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)