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

service-def option to include expression condition implictly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.4.0
    • Ranger
    • None

    Description

      Ranger policies support condition expressions that enable users to setup access-control/masking/row-filter based on various criteria including user/group/tag attributes. To use such expressions in policies, service-defs need to be updated to add following condition-def:

      "conditions: [
        {
          "name":        "expression",
          "evaluator":   "org.apache.ranger.plugin.conditionevaluator.RangerScriptConditionEvaluator",
          "label":       "Enter boolean expression",
          "description": "Boolean expression"
        }
      ] 

       

      Instead of requiring updates to every service-def, it will help to implicitly include above in all service-def. However, it should be possible for a service-def to opt out of this, via service-def option.

       

      Implementation notes:

      1. while loading service-defs from the database, Ranger admin adds a condition named _expression of type RangerScriptConditionEvaluator
      2. above implicit addition of condition can be disabled by adding following configuration in Ranger admin: ranger.servicedef.enableImplicitConditionExpression=false
      3.  specific service-defs can be excluded from above implicit addition of condition by adding following option in service-def: enableImplicitConditionExpression=false

      Attachments

        1. RANGER-4117.patch
          11 kB
          Madhan Neethiraj

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: