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

Ranger policy should support variables like $user

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.7.0, 0.6.3
    • Component/s: None
    • Labels:
      None

      Description

      It would be good to support variables in resources and users.

      E.g.

      HDFS Resource = /home/$user
      or
      Table Resource = ${user}_*

      Users allowed = $user

      Where $user will be expanded to the current user.

      I think, resource substitution will be easy. For permission, we can use key word like we use for all users group="public". We can use key word like "USER" or something like that.

        Attachments

        1. RANGER-698.1.patch
          1 kB
          Madhan Neethiraj

          Activity

            People

            • Assignee:
              abhayk Abhay Kulkarni
              Reporter:
              bosco Don Bosco Durai
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: