dineshkumar-yadav opened a new pull request, #689:
URL: https://github.com/apache/ranger/pull/689

   …can query those admin/keyadmin users.
   
   ## What changes were proposed in this pull request?
   This change will prevent users with the USER role from fetching details of 
roles other than USER.
   
   
   ## How was this patch tested?
   -- build with mvn clean install 
   -- tested below REST API working as expected
   
   1. curl --insecure -k -v -u 'user:pass' -H 'Accept: application/json, 
text/plain, */*' 
'{hostname}:{port}/service/xusers/users?pageSize=10000&userRole=ROLE_SYS_ADMIN'
   2. curl --insecure -k -u 'user:pass' -H 'Accept: application/json, 
text/plain, */*' 
'{hostname}:{port}/service/xusers/users?pageSize=10000&userRole=ROLE_KEY_ADMIN' 
   3. curl --insecure -k -v -u 'user:pass' -H 'Accept: application/json, 
text/plain, */*' 
'{hostname}:{port}/service/xusers/users?pageSize=10000&userRoleList=ROLE_KEY_ADMIN&userRoleList=ROLE_SYS_ADMIN'
   
   
   


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