ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Madhan Neethiraj <mad...@apache.org>
Subject Review Request 73444: RANGER-3332: script evaluator updated to provide JavaScript style access to details of request/user/groups/tags
Date Thu, 08 Jul 2021 22:59:13 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73444/
-----------------------------------------------------------

Review request for ranger, Ankita Sinha, Don Bosco Durai, Abhay Kulkarni, Pradeep Agrawal,
Ramesh Mani, Selvamohan Neethiraj, Sailaja Polavarapu, and Velmurugan Periasamy.


Bugs: RANGER-3332
    https://issues.apache.org/jira/browse/RANGER-3332


Repository: ranger


Description
-------

Updated script condition evaluator to support JavaScript style access to request/user/groups/tags
detail. For example:
 - _ctx.request.clusterType == 'azure'
 - _ctx.tag.type == 'PII' && _ctx.userAttributes.dept == 'hr'
 - _ctx.tag.attributes.pii_type = 'email'


Diffs
-----

  agents-common/src/main/java/org/apache/ranger/plugin/conditionevaluator/RangerScriptConditionEvaluator.java
b306f5150 
  agents-common/src/main/java/org/apache/ranger/plugin/conditionevaluator/RangerScriptExecutionContext.java
c0a8f9f35 
  agents-common/src/main/java/org/apache/ranger/plugin/util/RangerCommonConstants.java ed2dffd91

  agents-common/src/test/java/org/apache/ranger/plugin/conditionevaluator/RangerCustomConditionMatcherTest.java
0a4dd4a02 


Diff: https://reviews.apache.org/r/73444/diff/1/


Testing
-------

- added unit tests


Thanks,

Madhan Neethiraj


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message