ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Kulkarni <akulka...@hortonworks.com>
Subject Review Request 73032: RANGER-3082: User with delegated-admin is unable to create policy
Date Sat, 21 Nov 2020 03:36:17 GMT

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

Review request for ranger and Madhan Neethiraj.


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


Repository: ranger


Description
-------

When macros like {USER} are used in resource names, users with delegated-admin are unable
to set up policies.


Diffs
-----

  agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
f3e0dab2f 
  agents-common/src/main/java/org/apache/ranger/plugin/policyresourcematcher/RangerDefaultPolicyResourceMatcher.java
979488181 
  agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerAbstractResourceMatcher.java
8f6facda5 
  agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerResourceMatcher.java
0cb3e0fed 
  agents-common/src/main/java/org/apache/ranger/plugin/util/RangerAccessRequestUtil.java a22027a46



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


Testing
-------

Passed all unit tests. Tested by creating delegated-admin policies with {USER} embedded in
resource name and ensured the designated user can set up policy with macro in the resource
name expanded with designated user's name.


Thanks,

Abhay Kulkarni


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