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

   ## What changes were proposed in this pull request?
   
       When header-based authentication is enabled, auto-provisioned external
       users were assigned the roles from the current request's trusted-proxy
       token. Creating a service with default policies that reference
       not-yet-existing users therefore granted those users the creating
       user's roles (e.g. ROLE_SYS_ADMIN).
   
       getHeaderAuthRoles() now takes the username being provisioned and only
       returns header roles when it matches the authenticated principal.
       Other users fall back to ROLE_USER and are created without the
       elevated system session.
   
   ## How was this patch tested?
   
   Pending in docker.
   


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