Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-16247

Authorizations given to role-based principals must be dereferenced upon user login

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server

    Description

      Authorizations given to role-based principals must be dereferenced upon user login. These authorizations are dynamically determined based on the user's set of roles.

      In org.apache.ambari.server.security.authorization.AmbariLocalUserDetailsService#loadUserByUsername, the set of GrantedAuthorities the authenticated user is calculated. During this process, using the set of cluster-level roles a user is granted, any permissions given to matching role-based principals should be given to the user.

      This essentially work like giving privileges to a group of users calculated at runtime.

      A use-case to support the need for this is to assign access to a view to all users with some specific role. Currently we can assign access to a view to a specific user or group by assigning that user or group the VIEW.USER role applied to the specific view. To assign access a view to users who have a specific role, a role will need to behave like a principal.

      Attachments

        1. AMBARI-16247_branch-2.4_01.patch
          12 kB
          Robert Levas
        2. AMBARI-16247_trunk_01.patch
          12 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: