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

Clone Snapshots on Secure Cluster Should provide option to apply Retained User Permissions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • snapshots
    • None
    • Incompatible change, Reviewed
    • Hide
      While creating a snapshot, it will save permissions of the original table into .snapshotinfo file(Backward compatibility) , which is in the snapshot root directory. For clone_snapshot/restore_snapshot command, we provide an additional option( RESTORE_ACL) to decide whether we will grant permissons of the origin table to the newly created table.
      Show
      While creating a snapshot, it will save permissions of the original table into .snapshotinfo file(Backward compatibility) , which is in the snapshot root directory. For clone_snapshot/restore_snapshot command, we provide an additional option( RESTORE_ACL) to decide whether we will grant permissons of the origin table to the newly created table.

    Description

      Currently,

      sudo su - test_user
      create 't1', 'f1'
      sudo su - hbase
      snapshot 't1', 'snap_one'
      clone_snapshot 'snap_one', 't2'
      

      In this scenario the user - test_user would not have permissions for the clone table t2.
      We need to add improvement feature such that the permissions of the original table are recorded in snapshot metadata and an option is provided for applying them to the new table as part of the clone process.

      Attachments

        1. HBASE-11013.branch-1.1.v1.patch
          335 kB
          Zheng Hu
        2. HBASE-11013.branch-1.2.v1.patch
          337 kB
          Zheng Hu
        3. HBASE-11013.branch-1.3.v1.patch
          346 kB
          Zheng Hu
        4. HBASE-11013.branch-1.v1.patch
          352 kB
          Zheng Hu
        5. HBASE-11013.master.addendum.patch
          429 kB
          Zheng Hu
        6. HBASE-11013.v1.patch
          71 kB
          Zheng Hu
        7. HBASE-11013.v2.patch
          74 kB
          Zheng Hu
        8. HBASE-11013.v3.patch
          970 kB
          Zheng Hu
        9. HBASE-11013.v4.patch
          970 kB
          Zheng Hu
        10. HBASE-11013.v5.patch
          975 kB
          Zheng Hu

        Issue Links

          Activity

            People

              openinx Zheng Hu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: