Re: Review Request 71370: RANGER-2552: Fixed code to update the user role/permissions properly when group memberships are updated

2019-08-27 Thread Madhan Neethiraj

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


Ship it!




Ship It!

- Madhan Neethiraj


On Aug. 27, 2019, 5:34 p.m., Sailaja Polavarapu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/71370/
> ---
> 
> (Updated Aug. 27, 2019, 5:34 p.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-2552
> https://issues.apache.org/jira/browse/RANGER-2552
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> Modified code to re-evaluate user's role/permissions based on the existing 
> groups as well as the modified groups.
> 
> 
> Diffs
> -
> 
>   
> ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
>  e5fc68ba8 
> 
> 
> Diff: https://reviews.apache.org/r/71370/diff/2/
> 
> 
> Testing
> ---
> 
> 1. Verified all the existing unit tests ran successfully.
> 2. Patched a cluster and verified the user's role/permissions are properly 
> evaluated for every add/update/delete of group memberships
> 3. Also verfied during startup the user permissions are stayed intact as well 
> as during periodic sync with not updates to the user.
> 
> 
> Thanks,
> 
> Sailaja Polavarapu
> 
>



Re: Review Request 71370: RANGER-2552: Fixed code to update the user role/permissions properly when group memberships are updated

2019-08-27 Thread Sailaja Polavarapu


> On Aug. 27, 2019, 12:40 a.m., Madhan Neethiraj wrote:
> > ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
> > Lines 465 (patched)
> > 
> >
> > Should delGroups be removed from cumulativeGroups?

This is taken care in line 455.


> On Aug. 27, 2019, 12:40 a.m., Madhan Neethiraj wrote:
> > ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
> > Lines 485 (patched)
> > 
> >
> > Please review if the following case is handled: when the user was 
> > removed from a group, the user should be removed from corresponding role as 
> > well

Verified this case.


- Sailaja


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


On Aug. 27, 2019, 5:34 p.m., Sailaja Polavarapu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/71370/
> ---
> 
> (Updated Aug. 27, 2019, 5:34 p.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-2552
> https://issues.apache.org/jira/browse/RANGER-2552
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> Modified code to re-evaluate user's role/permissions based on the existing 
> groups as well as the modified groups.
> 
> 
> Diffs
> -
> 
>   
> ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
>  e5fc68ba8 
> 
> 
> Diff: https://reviews.apache.org/r/71370/diff/2/
> 
> 
> Testing
> ---
> 
> 1. Verified all the existing unit tests ran successfully.
> 2. Patched a cluster and verified the user's role/permissions are properly 
> evaluated for every add/update/delete of group memberships
> 3. Also verfied during startup the user permissions are stayed intact as well 
> as during periodic sync with not updates to the user.
> 
> 
> Thanks,
> 
> Sailaja Polavarapu
> 
>



Re: Review Request 71370: RANGER-2552: Fixed code to update the user role/permissions properly when group memberships are updated

2019-08-27 Thread Sailaja Polavarapu

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

(Updated Aug. 27, 2019, 5:34 p.m.)


Review request for ranger.


Changes
---

Minor cleanup for deleting groups from userinfo object


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


Repository: ranger


Description
---

Modified code to re-evaluate user's role/permissions based on the existing 
groups as well as the modified groups.


Diffs (updated)
-

  
ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
 e5fc68ba8 


Diff: https://reviews.apache.org/r/71370/diff/2/

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


Testing
---

1. Verified all the existing unit tests ran successfully.
2. Patched a cluster and verified the user's role/permissions are properly 
evaluated for every add/update/delete of group memberships
3. Also verfied during startup the user permissions are stayed intact as well 
as during periodic sync with not updates to the user.


Thanks,

Sailaja Polavarapu



Re: Review Request 71370: RANGER-2552: Fixed code to update the user role/permissions properly when group memberships are updated

2019-08-26 Thread Madhan Neethiraj

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




ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
Lines 465 (patched)


Should delGroups be removed from cumulativeGroups?



ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
Lines 485 (patched)


Please review if the following case is handled: when the user was removed 
from a group, the user should be removed from corresponding role as well


- Madhan Neethiraj


On Aug. 27, 2019, 12:22 a.m., Sailaja Polavarapu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/71370/
> ---
> 
> (Updated Aug. 27, 2019, 12:22 a.m.)
> 
> 
> Review request for ranger.
> 
> 
> Bugs: RANGER-2552
> https://issues.apache.org/jira/browse/RANGER-2552
> 
> 
> Repository: ranger
> 
> 
> Description
> ---
> 
> Modified code to re-evaluate user's role/permissions based on the existing 
> groups as well as the modified groups.
> 
> 
> Diffs
> -
> 
>   
> ugsync/src/main/java/org/apache/ranger/unixusersync/process/PolicyMgrUserGroupBuilder.java
>  e5fc68ba8 
> 
> 
> Diff: https://reviews.apache.org/r/71370/diff/1/
> 
> 
> Testing
> ---
> 
> 1. Verified all the existing unit tests ran successfully.
> 2. Patched a cluster and verified the user's role/permissions are properly 
> evaluated for every add/update/delete of group memberships
> 3. Also verfied during startup the user permissions are stayed intact as well 
> as during periodic sync with not updates to the user.
> 
> 
> Thanks,
> 
> Sailaja Polavarapu
> 
>