vyommani opened a new pull request, #1149:
URL: https://github.com/apache/ranger/pull/1149

   ## What changes were proposed in this pull request?
   
   Hardens authorization handling in RoleREST for role read and role 
grant/revoke operations:
   
   getRole(id) and getUserRoles(user) now verify the caller is authorized to 
view the requested role/user's role membership, instead of returning it 
unconditionally.
   grantRole/revokeRole now always resolve the caller's group membership 
server-side; group membership supplied in the request is no longer trusted for 
authorization decisions, except when the caller has already been independently 
verified as a Ranger admin/service admin/service user acting on behalf of 
another user.
   grantRole/revokeRole now also block sessions with the read-only Auditor role 
from performing role mutations, consistent with existing behavior in 
ServiceREST.
   
   
   ## How was this patch tested?
   Added/updated unit tests in TestRoleREST covering authorized and 
unauthorized access for getRole, getUserRoles, grantRole, and revokeRole, 
including group-membership-based authorization and the Auditor-block behavior. 
Verified manually against a running instance.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to