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

user with "CREATE" permission can grant, but not revoke permissions on created table

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.1, 2.1.5
    • 2.1.6
    • security
    • None
    • Reviewed

    Description

      A user that only has global or namespace "CREATE" permission can grant permissions to another user on its created table, but cannot revoke them.

      This bug exists on branch-2.1, from 2.1.1 

      2.0, 2.1.0, master, and branch-2.2 are not effected.

      The bug can be triggered via hbase shell:

      #Start hbase shell as superuse 
      #export HADOOP_USER_NAME=hbase 
      hbase shell
      grant 'regularUser1', 'C'
      exit
      #Run hbase shell as regularUser1
      #grant, then revoke 'RX' permission to regularUser2
      #export HADOOP_USER_NAME=regularUser1
      hbase shell
      create 'nunuke','nunuke'
      grant 'regularUser2', 'RX', 'nunuke'
      #This will fail on 2.1.1+
      revoke 'regularUser2', 'nunuke'
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stoty Istvan Toth Assign to me
            stoty Istvan Toth
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment