ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-6679) Add Cluster Privilege Resource
Date Wed, 30 Jul 2014 16:26:39 GMT
Tom Beerbower created AMBARI-6679:
-------------------------------------

             Summary: Add Cluster Privilege Resource
                 Key: AMBARI-6679
                 URL: https://issues.apache.org/jira/browse/AMBARI-6679
             Project: Ambari
          Issue Type: Task
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower
             Fix For: 1.7.0


Add a cluster privilege resource provider so that privileges may be assigned to cluster instances.
 See BUG-18967 for view instance privileges.
TODO :
#  Add resource_id column to clusters
#  Add resource entity relationship to ClusterEntity
#  Insert associated resource row in DB  when cluster is created.
#  Update existing cluster rows in DB with associated resource relationship.
#  Add cluster privilege service for API framework.
#  Add cluster privilege resource provider.
#  Adjust unit tests.

API:

To grant privileges to access the cluster we can create a privilege sub-resource for the cluster
instance.  The following API will grant CLUSTER.READ permission to the user 'bob' for the
cluster instance 'c1'.

{code}

    POST http://<server>/api/v1/clusters/c1
   
    [
      {
        "PrivilegeInfo" : {
          "permission_name" : "CLUSTER.READ",
          "principal_name" : "bob",
          "principal_type" : "USER"
        }
      }
    ]
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message