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

Setting hbase.security.authorization to false does not disable authorization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.1, 1.1.0, 0.98.12, 2.0.0
    • security
    • None
    • Reviewed
    • Hide
      Prior to this change the configuration setting 'hbase.security.authorization' had no effect if security coprocessor were installed. The act of installing the security coprocessors was assumed to indicate active authorizaton was desired and required. Now it is possible to install the security coprocessors yet have them operate in a passive state with active authorization disabled by setting 'hbase.security.authorization' to false. This can be useful but is probably not what you want. For more information, consult the Security section of the HBase online manual.

      'hbase.security.authorization' defaults to true for backwards comptatible behavior.
      Show
      Prior to this change the configuration setting 'hbase.security.authorization' had no effect if security coprocessor were installed. The act of installing the security coprocessors was assumed to indicate active authorizaton was desired and required. Now it is possible to install the security coprocessors yet have them operate in a passive state with active authorization disabled by setting 'hbase.security.authorization' to false. This can be useful but is probably not what you want. For more information, consult the Security section of the HBase online manual. 'hbase.security.authorization' defaults to true for backwards comptatible behavior.

    Description

      According to the docs provided by Cloudera (we're not running Cloudera, BTW), this is the list of configs to enable authorization in HBase:

      <property>
           <name>hbase.security.authorization</name>
           <value>true</value>
      </property>
      <property>
           <name>hbase.coprocessor.master.classes</name>
           <value>org.apache.hadoop.hbase.security.access.AccessController</value>
      </property>
      <property>
           <name>hbase.coprocessor.region.classes</name>
           <value>org.apache.hadoop.hbase.security.token.TokenProvider,org.apache.hadoop.hbase.security.access.AccessController</value>
      </property>
      

      We wanted to then disable authorization but simply setting hbase.security.authorization to false did not disable the authorization

      Attachments

        1. HBASE-13275-branch-1.patch
          113 kB
          Andrew Kyle Purtell
        2. HBASE-13275-branch-1.patch
          113 kB
          Andrew Kyle Purtell
        3. HBASE-13275-0.98.patch
          113 kB
          Andrew Kyle Purtell
        4. HBASE-13275-0.98.patch
          113 kB
          Andrew Kyle Purtell
        5. HBASE-13275.patch
          57 kB
          Andrew Kyle Purtell
        6. HBASE-13275.patch
          46 kB
          Andrew Kyle Purtell
        7. HBASE-13275.patch
          115 kB
          Andrew Kyle Purtell
        8. HBASE-13275.patch
          115 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            wattsinabox William Watson
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: