ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (Jira)" <j...@apache.org>
Subject [jira] [Created] (RANGER-3332) Script evaluator to support JSON style access to context details
Date Thu, 08 Jul 2021 15:50:00 GMT
Madhan Neethiraj created RANGER-3332:
----------------------------------------

             Summary: Script evaluator to support JSON style access to context details
                 Key: RANGER-3332
                 URL: https://issues.apache.org/jira/browse/RANGER-3332
             Project: Ranger
          Issue Type: Improvement
          Components: plugins
            Reporter: Madhan Neethiraj
            Assignee: Madhan Neethiraj


Script evaluator currently require use of methods to access context details, like:
 * ctx.getUser()
 * ctx.getUserGroups()
 * tag.getType()
 * tag.getAttributes().get("emailAddress")

 

This makes the script in conditions cumbersome to write and read. It will be simpler to be
able to access context details with Json style syntax, like:
 * ctx.user
 * ctx.userGroups
 * ctx.tag.type
 * ctx.tag.attributes.emailAddress



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message