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

Visibility Labels: support visibility labels for user groups.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 0.98.9, 0.99.2
    • 1.0.0, 0.98.10, 1.1.0
    • security
    • None
    • Reviewed
    • Hide
      VisibilityClient API and shell commands can be used to grant and clear visibility authorizations of a group.
      e.g.
      set_auths '@group1', ['SECRET','PRIVATE']
      get_auths '@group1'
      clear_auths '@group1', ['SECRET','PRIVATE']

      When checking visibility authorizations of a user, the server will include the visibility authorizations of the groups of which the user is a member, together with the user's own.

      On the other hand, get_auths 'user1' will only get user1's own visibility authorizations.
      clear_auths 'user1' will only clear user1's own visibility authorizations.
      The visibility authorizations of a group can be changed by invoking the API or command on the '@group1' itself.

      Note:

      The following two methods have been deprecated in VisibilityLabelService from 0.98.10 and will be removed in 2.0+ releases.
      getAuths(byte[], boolean)
      havingSystemAuth(byte[])

      Use the following methods instead:
      getUserAuths(byte[], boolean)
      getGroupAuths(String[], boolean)
      havingSystemAuth(User)
      Show
      VisibilityClient API and shell commands can be used to grant and clear visibility authorizations of a group. e.g. set_auths '@group1', ['SECRET','PRIVATE'] get_auths '@group1' clear_auths '@group1', ['SECRET','PRIVATE'] When checking visibility authorizations of a user, the server will include the visibility authorizations of the groups of which the user is a member, together with the user's own. On the other hand, get_auths 'user1' will only get user1's own visibility authorizations. clear_auths 'user1' will only clear user1's own visibility authorizations. The visibility authorizations of a group can be changed by invoking the API or command on the '@group1' itself. Note: The following two methods have been deprecated in VisibilityLabelService from 0.98.10 and will be removed in 2.0+ releases. getAuths(byte[], boolean) havingSystemAuth(byte[]) Use the following methods instead: getUserAuths(byte[], boolean) getGroupAuths(String[], boolean) havingSystemAuth(User)

    Description

      The thinking is that we should support visibility labels to be associated with user groups.
      We will then be able grant visibility labels to a group in addition to individual users, which provides convenience and usability.
      We will use '@group' to denote a group name, as similarly done in AcccessController.
      For example,

      set_auths '@group1', ['SECRET','PRIVATE']
      
      get_auth '@group1'
      

      A user belonging to 'group1' will have all the visibility labels granted to 'group1'

      We'll also support super user groups as specified in hbase-site.xml.

      The code update will mainly be on the server side VisibilityLabelService implementation.

      Attachments

        1. hbase-12745_branch-1-addendum2.patch
          3 kB
          Anoop Sam John
        2. hbase-12745_branch-1-addendum.patch
          5 kB
          Enis Soztutar
        3. HBASE-12745-v7-0.98-with-update.patch
          53 kB
          Jerry He
        4. HBASE-12745-v7-0.98.patch
          52 kB
          Jerry He
        5. HBASE-12745-v7-branch1.patch
          50 kB
          Jerry He
        6. HBASE-12745-master-v7.patch
          50 kB
          Jerry He
        7. HBASE-12745-master-v6.patch
          51 kB
          Jerry He
        8. HBASE-12745-master-v5.patch
          50 kB
          Jerry He
        9. HBASE-12745-master-v4.patch
          50 kB
          Jerry He
        10. HBASE-12745-master-v3.patch
          51 kB
          Jerry He
        11. HBASE-12745-master-v2.patch
          51 kB
          Jerry He
        12. HBASE-12745-master-v1.patch
          37 kB
          Jerry He

        Activity

          People

            jinghe Jerry He
            jinghe Jerry He
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: