Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4240

IPV6 support in ZooKeeper ACL

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.6.2
    • Fix Version/s: None
    • Component/s: server
    • Labels:

      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.

      // 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;
      }

       

      Is there any other workaround to work with ZooKeeper ACL's IP scheme with IPV6 address?

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              KARTHIK.P KARTHIK

              Dates

              • Created:
                Updated:

                Issue deployment