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

Request to get all policies for hive or hbase service-type does not include policies that apply to specific child resource(such as table in hive/column family in hbase)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • master
    • 1.0.0, master, 0.7.2
    • Ranger
    • None

    Description

      Scenario:
      Consider the following set of Ranger policies.

      policy_name                             Database       Table               Column
      policy_for_all_resource            *                       *                      *
      policy_for_testdb1                    testdb1            *                      *
      policy_for_testdb1-testtable1   testdb1            testtable1        *
      policy_for_testcol-testtable1    testdb1            testtable1        testcol
      

      The following REST API call to get all policies for database 'testdb1',
      http://<ranger-admin-ip>:6080/service/public/v2/api/policies/hive/for-resource?resource:database=testdb1
      ,is expected to return all above policies. However, 'policy_for_testdb1-testtable1' and 'policy_for_testcol-testtable1' are not returned.

      Attachments

        Activity

          People

            abhayk Abhay Kulkarni
            deepakhuawei Deepak Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: