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

Access Audits - Resource policy version used for mask policy leading to Error page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Ranger
    • None

    Description

      Create a ranger hive policy for user u1 to access table t1.
      Create table t1 and add data
      Edit the policy to have multiple versions. Polocy version is now 'y'
      Create a ranger hive masking policy for one of the columns of t1.
      Edit the policy to have multiple versions. Policy version is less than 'y'
      example, if resource policy version is 5, have masking policy version as 4.
      Try insert command on t1. It fails now as there is a masking policy.
      Inspect access audits on ranger admin UI. Click on policyid for the denied audit for insert

      CURRENT BEHAVIOUR:
      Access audits show version of resource policy for mask policy id, so querying for policy details leads to data not found error page

      Policy cache json file on plugin side has the right version, x_policy table has the right entries for corresponding masking policy

      Attachments

        1. 0001-RANGER-4690.patch
          2 kB
          Sanket Shelar

        Issue Links

          Activity

            People

              sanketshelar Sanket Shelar
              suja suja s
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: