You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2015/09/30 03:48:04 UTC
[jira] [Commented] (AMBARI-13214) Create a credentials resource
used to securely set, update, and remove credentials used by Ambari
[ https://issues.apache.org/jira/browse/AMBARI-13214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14936237#comment-14936237 ]
Hadoop QA commented on AMBARI-13214:
------------------------------------
{color:green}+1 overall{color}. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12764333/AMBARI-13214_trunk_01.patch
against trunk revision .
{color:green}+1 @author{color}. The patch does not contain any @author tags.
{color:green}+1 tests included{color}. The patch appears to include 10 new or modified test files.
{color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings.
{color:green}+1 core tests{color}. The patch passed unit tests in ambari-server.
Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/3877//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3877//console
This message is automatically generated.
> Create a credentials resource used to securely set, update, and remove credentials used by Ambari
> -------------------------------------------------------------------------------------------------
>
> Key: AMBARI-13214
> URL: https://issues.apache.org/jira/browse/AMBARI-13214
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.3
> Reporter: Robert Levas
> Assignee: Robert Levas
> Priority: Critical
> Labels: security
> Fix For: 2.1.3
>
> Attachments: AMBARI-13214_branch-2.1_01.patch, AMBARI-13214_trunk_01.patch
>
>
> Storage of the credentials is to be done using the existing _secure_ credentials provider API which already exits within Ambari. See {{org.apache.ambari.server.security.encryption.CredentialStoreService}} and {{org.apache.ambari.server.security.encryption.CredentialStoreServiceImpl}}.
> Credential may be stored in either Ambari's persistent or temporary secure storage facilities.
> *Test capabilities*
> * Request
> {noformat}GET api/v1/clusters/{CLUSTER_NAME}{noformat}
> * Responses
> {code:title=200 OK}
> {
> ...
> "credential_store_properties" : {
> "storage.persistent" : "true",
> "storage.temporary" : "true"
> },
> ...
> }
> {code}
> *Setting the credentials*
> * Request
> {noformat}POST /api/v1/clusters/{CLUSTER_NAME}/credentials/{ALIAS}{noformat}
> {code:title=payload}
> {
> "Credential" : {
> "principal" : "USERNAME",
> "key" : "SECRET",
> "persist" : true
> }
> }
> {code}
> Where:
> ** principal: the principal (or username) part of the credential to store
> ** key: the secret key part of the credential to store
> ** persist: a boolean value indicating whether to store this credential in a persisted (true) or temporary (false) secure credential store
> * Responses
> {code:title=200 OK}
> <empty>
> {code}
> {code:title=400 Bad Request}
> {
> "status": 400,
> "message": "Cannot persist credential in Ambari's secure credential store since secure storage has not yet be configured. Use ambari-server setup-security to enable this feature."
> }
> {code}
> {code:title=403 Forbidden}
> {
> "status": 403,
> "message": "You do not have permissions to access this resource."
> }
> {code}
> *Updating the credentials*
> * Request
> {noformat}PUT /api/v1/clusters/{CLUSTER_NAME}/credentials/{ALIAS}{noformat}
> {code:title=payload}
> {
> "Credential" : {
> "principal" : "USERNAME",
> "key" : "SECRET1",
> "persist" : true
> }
> }
> {code}
> Where:
> ** principal: the principal (or username) part of the credential to store
> ** key: the secret key part of the credential to store
> ** persist: a boolean value indicating whether to store this credential in a persisted (true) or temporary (false) secure credential store
> * Responses
> {code:title=200 OK}
> <empty>
> {code}
> {code:title=400 Bad Request}
> {
> "status": 400,
> "message": "Cannot persist credential in Ambari's secure credential store since secure storage has not yet be configured. Use ambari-server setup-security to enable this feature."
> }
> {code}
> {code:title=403 Forbidden}
> {
> "status": 403,
> "message": "You do not have permissions to access this resource."
> }
> {code}
> *Removing the credentials*
> * Request
> {noformat}DELETE /api/v1/clusters/{CLUSTER_NAME}/credentials/{ALIAS}{noformat}
> * Responses
> {code:title=200 OK}
> <empty>
> {code}
> {code:title=404 Not Found}
> {
> "status": 404,
> "message": "Not Found"
> }
> {code}
> {code:title=403 Forbidden}
> {
> "status": 403,
> "message": "You do not have permissions to access this resource."
> }
> {code}
> *Listing credentials*
> * Request
> {noformat}GET /api/v1/clusters/{CLUSTER_NAME}/credentials{noformat}
> * Responses
> {code:title=200 OK}
> {
> "href" : "http://host:8080/api/v1/clusters/c1/credentials",
> "items" : [
> {
> "href" : "http://host:8080/api/v1/clusters/c1/credentials/kdc.admin.credentials",
> "Credential" : {
> "alias" : "kdc.admin.credentials",
> "cluster_name" : "c1"
> }
> },
> {
> "href" : "http://host:8080/api/v1/clusters/c1/credentials/service.admin.credentials",
> "Credential" : {
> "alias" : "service.admin.credentials",
> "cluster_name" : "c1"
> }
> }
> ]
> }
> {code}
> {code:title=404 Not Found}
> {
> "status": 404,
> "message": "Not Found"
> }
> {code}
> {code:title=403 Forbidden}
> {
> "status": 403,
> "message": "You do not have permissions to access this resource."
> }
> {code}
> *Retrieving credentials*
> * Request
> {noformat}GET /api/v1/clusters/{CLUSTER_NAME}/credentials/{ALIAS}{noformat}
> * Responses
> {code:title=200 OK}
> {
> "href" : "http://host:8080/api/v1/clusters/c1/credentials/kdc.admin.credentials",
> "Credential" : {
> "alias" : "kdc.admin.credentials",
> "cluster_name" : "c1",
> "persist" : true
> }
> }
> {code}
> {code:title=404 Not Found}
> {
> "status": 404,
> "message": "Not Found"
> }
> {code}
> {code:title=403 Forbidden}
> {
> "status": 403,
> "message": "You do not have permissions to access this resource."
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)