Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3753

Hive masking policies don't recognize {OWNER} user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.3.0
    • plugins
    • None

    Description

      Hive masking policies don't recognize {OWNER} user. Consider the following masking policy:

      resource: database=db1, table=tbl1, column=col1
      policyItem-1: user={OWNER}, accessType=select, maskType=MASK_NONE
      policyItem-2: group=public, accessType=select, maskType=MASK_NULL

       

      Expected result:

      When column db1.tbl1.col1 is accessed by the owner of table, the column value should be returned to the user without applying any masking. For all other users, NULL value should be returned.

      Observed result:

      Value returned for all users is NULL, even for the owner of the table.

      Attachments

        1. RANGER-3753.patch
          6 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: