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

IPV6 support in ZooKeeper ACL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.2
    • None
    • server

    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

            Unassigned Unassigned
            KARTHIK.P KARTHIK
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: