Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-28038

Add TLS settings to ZooKeeper client

    XMLWordPrintableJSON

Details

    Description

      ZooKeeper supports TLS connection from its clients. Currently the only way to set up HBase for this is to add the following Java properties to the HBase process:

              -Dzookeeper.clientCnxnSocket=org.apache.zookeeper.ClientCnxnSocketNetty 
              -Dzookeeper.client.secure=true 
              -Dzookeeper.ssl.keyStore.location=/path/to/keystore.jks 
              -Dzookeeper.ssl.keyStore.password=password 
              -Dzookeeper.ssl.trustStore.location=/path/to/truststore.jks 
              -Dzookeeper.ssl.trustStore.password=password
      

      KeyStore is only needed if ZooKeeper server wants client certificate to be provided.

      I'd like to add these options to hbase-site.xml in the following way:

      hbase.zookeeper.property.clientCnxnSocket
      hbase.zookeeper.property.client.secure
      hbase.zookeeper.property.ssl.keyStore.location
      hbase.zookeeper.property.ssl.keyStore.password or hbase.zookeeper.property.ssl.keyStore.passwordPath
      ...

      It will follow the way that we already do for ZooKeeper clientPort and quorum settings. ("hbase.zookeeper.property.clientPort", "hbase.zookeeper.quorum")

      Attachments

        Issue Links

          Activity

            People

              andor Andor Molnar
              andor Andor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: