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

SecurityBulkLoadEndPoint set 777 permission on input data files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.9, 0.99.2
    • None
    • None
    • Reviewed

    Description

      We have code in SecureBulkLoadEndpoint#secureBulkLoadHFiles

                    LOG.trace("Setting permission for: " + p);
                    fs.setPermission(p, PERM_ALL_ACCESS);
      

      This is against the point we use staging folder for secure bulk load. Currently we create a hidden staging folder which has ALL_ACCESS permission and we use "doAs" to move input files into staging folder. Therefore, we should not set 777 permission on the original input data files but files in staging folder after move.

      This may comprise security setting especially when there is an error & we move the file with 777 permission back.

      Attachments

        1. HBASE-12053.patch
          3 kB
          Jeffrey Zhong

        Activity

          People

            jeffreyz Jeffrey Zhong
            jeffreyz Jeffrey Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: