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

Add authorizations to permissions so that the definition of a permission (or role) is explicit

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Add authorizations to permissions so that the definition of a permission (or role) is explicit.

      A new table needs to be created to store the authorizations:

      TABLE roleauthorization (
        authorization_id VARCHAR(100) NOT NULL,
        authorization_name VARCHAR(255) NOT NULL,
        resource_type_id INTEGER NOT NULL,
        PRIMARY KEY(authorization_id)
      )
      

      A new table needs to be added to map authorizations to permissions

      TABLE permission_roleauthorization (
        permission_id BIGINT NOT NULL,
        authorization_id VARCHAR(100) NOT NULL,
        PRIMARY KEY(permission_id, authorization_id)
      );
      

      A new Entity needs to be created to hold the authorization record data (org.apache.ambari.server.orm.entities.AuthorizationEntity).

      The existing PermissionEntity org.apache.ambari.server.orm.entities.PermissionEntity needs to be updated to include AuthorizationEntities.

      Attachments

        1. AMBARI-13865_trunk_01.patch
          249 kB
          Robert Levas
        2. AMBARI-13865_trunk_02.patch
          252 kB
          Robert Levas
        3. AMBARI-13865_trunk_03.patch
          252 kB
          Robert Levas

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: