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

Use acl cache for doing access control checks in prepare and clean phases of Bulkloading.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0, 0.98.10
    • None
    • None

    Description

      Currently, prepareBulkLoad and cleanupBulkLoad are using "hasSomeAccess", which performs scan on ACL table, instead of using TableAuthManager. Also, the method "hasSomeAccess" has a logical error, as it doesn't filter the acl scan results by the current active user. More specifically

      for (UserPermission userPerm: perms) {
              for (Action userAction: userPerm.getActions()) {
                if (userAction.equals(action)) {
                  return AuthResult.allow(method, "Access allowed", requestUser,
                    action, tableName, null, null);
                }
              }
            }
      

      The if clause ideally should be having something like userPerm.getUser.equals(requestUser). This issue will help us in getting rid of this problematic implementation.

      Attachments

        1. HBASE-12925.patch
          6 kB
          Srikanth Srungarapu
        2. HBASE-12925_v2.patch
          6 kB
          Srikanth Srungarapu

        Activity

          People

            srikanth235 Srikanth Srungarapu
            srikanth235 Srikanth Srungarapu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: