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

Ranger Row Level Filter (See only data corresponding to user logged in without the need to create multiple user entries in policy)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • None
    • Ranger
    • None

    Description

      We are using Apache Ranger as our Security pipeline. We found out that Ranger has a Row Level Filter option where we can limit the data visible to particular users. The issue we are facing is that, let's say there are some 100 or 1000 of users which we need to restrict to see only their own data in a particular hive table, we need to create 100 or 1000 entries in Ranger Row Level Policy, for ex: for each user A, we need to create a separate filter in policy saying user_name = "A". This sometimes hit the DB limit for a policy meta and we need to bifurcate the policy into 2-3 or many parts. Is there a way making use of {USER} and user_name = {USER}, we can restrict each user to see only its own data?

       

       

      Also, in Row Level Filter currently we allow only Select, I would like to check if we are looking forward for more such filter specific operations such as Insert or Alter

      Attachments

        Activity

          People

            Unassigned Unassigned
            mudit-97 Mudit Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m