You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Abhay Kulkarni <ak...@hortonworks.com> on 2021/08/02 20:13:41 UTC
Review Request 73497: RANGER-3360: Best Practice: Use updated policy
object after pruning the policy object
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73497/
-----------------------------------------------------------
Review request for ranger, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, and Velmurugan Periasamy.
Bugs: RANGER-3360
https://issues.apache.org/jira/browse/RANGER-3360
Repository: ranger
Description
-------
Ensure that pruned policy (with the policy-items that have delegated-admin flag set to false removed from copy of the original policy) is used when building policy-engine for delegated-admin processing,
Diffs
-----
agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerAbstractPolicyEvaluator.java 5c6083e6b
agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java 831b6d4ad
Diff: https://reviews.apache.org/r/73497/diff/1/
Testing
-------
Passed all unit tests.
Thanks,
Abhay Kulkarni
Re: Review Request 73497: RANGER-3360: Best Practice: Use updated
policy object after pruning the policy object
Posted by Pradeep Agrawal <pr...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73497/#review223300
-----------------------------------------------------------
Ship it!
Ship It!
- Pradeep Agrawal
On Aug. 2, 2021, 8:13 p.m., Abhay Kulkarni wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73497/
> -----------------------------------------------------------
>
> (Updated Aug. 2, 2021, 8:13 p.m.)
>
>
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, and Velmurugan Periasamy.
>
>
> Bugs: RANGER-3360
> https://issues.apache.org/jira/browse/RANGER-3360
>
>
> Repository: ranger
>
>
> Description
> -------
>
> Ensure that pruned policy (with the policy-items that have delegated-admin flag set to false removed from copy of the original policy) is used when building policy-engine for delegated-admin processing,
>
>
> Diffs
> -----
>
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerAbstractPolicyEvaluator.java 5c6083e6b
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java 831b6d4ad
>
>
> Diff: https://reviews.apache.org/r/73497/diff/1/
>
>
> Testing
> -------
>
> Passed all unit tests.
>
>
> Thanks,
>
> Abhay Kulkarni
>
>
Re: Review Request 73497: RANGER-3360: Best Practice: Use updated
policy object after pruning the policy object
Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73497/#review223302
-----------------------------------------------------------
Ship it!
Ship It!
- Madhan Neethiraj
On Aug. 3, 2021, 4:28 p.m., Abhay Kulkarni wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73497/
> -----------------------------------------------------------
>
> (Updated Aug. 3, 2021, 4:28 p.m.)
>
>
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, and Velmurugan Periasamy.
>
>
> Bugs: RANGER-3360
> https://issues.apache.org/jira/browse/RANGER-3360
>
>
> Repository: ranger
>
>
> Description
> -------
>
> Ensure that pruned policy (with the policy-items that have delegated-admin flag set to false removed from copy of the original policy) is used when building policy-engine for delegated-admin processing,
>
>
> Diffs
> -----
>
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerAbstractPolicyEvaluator.java 5c6083e6b
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java 831b6d4ad
>
>
> Diff: https://reviews.apache.org/r/73497/diff/2/
>
>
> Testing
> -------
>
> Passed all unit tests.
>
>
> Thanks,
>
> Abhay Kulkarni
>
>
Re: Review Request 73497: RANGER-3360: Best Practice: Use updated
policy object after pruning the policy object
Posted by Abhay Kulkarni <ak...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73497/
-----------------------------------------------------------
(Updated Aug. 3, 2021, 4:28 p.m.)
Review request for ranger, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, and Velmurugan Periasamy.
Changes
-------
Addressed review comment
Bugs: RANGER-3360
https://issues.apache.org/jira/browse/RANGER-3360
Repository: ranger
Description
-------
Ensure that pruned policy (with the policy-items that have delegated-admin flag set to false removed from copy of the original policy) is used when building policy-engine for delegated-admin processing,
Diffs (updated)
-----
agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerAbstractPolicyEvaluator.java 5c6083e6b
agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java 831b6d4ad
Diff: https://reviews.apache.org/r/73497/diff/2/
Changes: https://reviews.apache.org/r/73497/diff/1-2/
Testing
-------
Passed all unit tests.
Thanks,
Abhay Kulkarni
Re: Review Request 73497: RANGER-3360: Best Practice: Use updated
policy object after pruning the policy object
Posted by Madhan Neethiraj <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73497/#review223301
-----------------------------------------------------------
agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java
Line 124 (original), 124 (patched)
<https://reviews.apache.org/r/73497/#comment312375>
A safe/easier fix will be to reassign 'policy':
policy = getPolicy(); // so that changes done in super.init() are used going forward
- Madhan Neethiraj
On Aug. 2, 2021, 8:13 p.m., Abhay Kulkarni wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73497/
> -----------------------------------------------------------
>
> (Updated Aug. 2, 2021, 8:13 p.m.)
>
>
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, and Velmurugan Periasamy.
>
>
> Bugs: RANGER-3360
> https://issues.apache.org/jira/browse/RANGER-3360
>
>
> Repository: ranger
>
>
> Description
> -------
>
> Ensure that pruned policy (with the policy-items that have delegated-admin flag set to false removed from copy of the original policy) is used when building policy-engine for delegated-admin processing,
>
>
> Diffs
> -----
>
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerAbstractPolicyEvaluator.java 5c6083e6b
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java 831b6d4ad
>
>
> Diff: https://reviews.apache.org/r/73497/diff/1/
>
>
> Testing
> -------
>
> Passed all unit tests.
>
>
> Thanks,
>
> Abhay Kulkarni
>
>
Re: Review Request 73497: RANGER-3360: Best Practice: Use updated
policy object after pruning the policy object
Posted by Velmurugan Periasamy <vp...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73497/#review223299
-----------------------------------------------------------
Ship it!
Ship It!
- Velmurugan Periasamy
On Aug. 2, 2021, 8:13 p.m., Abhay Kulkarni wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73497/
> -----------------------------------------------------------
>
> (Updated Aug. 2, 2021, 8:13 p.m.)
>
>
> Review request for ranger, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, and Velmurugan Periasamy.
>
>
> Bugs: RANGER-3360
> https://issues.apache.org/jira/browse/RANGER-3360
>
>
> Repository: ranger
>
>
> Description
> -------
>
> Ensure that pruned policy (with the policy-items that have delegated-admin flag set to false removed from copy of the original policy) is used when building policy-engine for delegated-admin processing,
>
>
> Diffs
> -----
>
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerAbstractPolicyEvaluator.java 5c6083e6b
> agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyEvaluator.java 831b6d4ad
>
>
> Diff: https://reviews.apache.org/r/73497/diff/1/
>
>
> Testing
> -------
>
> Passed all unit tests.
>
>
> Thanks,
>
> Abhay Kulkarni
>
>