You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "KARTHIK (Jira)" <ji...@apache.org> on 2021/03/10 09:07:00 UTC
[jira] [Updated] (ZOOKEEPER-4240) IPV6 support in ZooKeeper ACL
[ https://issues.apache.org/jira/browse/ZOOKEEPER-4240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
KARTHIK updated ZOOKEEPER-4240:
-------------------------------
Description:
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?
> IPV6 support in ZooKeeper ACL
> -----------------------------
>
> Key: ZOOKEEPER-4240
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4240
> Project: ZooKeeper
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.6.2
> Reporter: KARTHIK
> Priority: Major
> Labels: ACL, ipv6
>
> 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.3.4#803005)