ranger-dev mailing list archives

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

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

(Updated July 14, 2021, 4:14 p.m.)


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


Changes
-------

addressed review comments


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 (updated)
-----

  agents-common/src/main/java/org/apache/ranger/authorization/utils/JsonUtils.java ee4cef6d6

  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/2/

Changes: https://reviews.apache.org/r/73444/diff/1-2/


Testing
-------

- added unit tests


Thanks,

Madhan Neethiraj


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