[ 
https://issues.apache.org/jira/browse/HADOOP-10177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870201#comment-13870201
 ] 

Owen O'Malley commented on HADOOP-10177:
----------------------------------------

Comments:
* Add tests.
* Please keep the text to 79 columns.
* allow Command.execute to throw Exception.
* Add a help command including the non-standard options like --provider.
* All of the commands should use the first non-transient provider unless there 
is only one provider. (typically because the user specified --provider)
* make all of the commands throw out of execute so that the cli tool exits with 
a non-zero exit code.
* the CreateCommand shouldn't create a Metadata directly, since that isn't 
public API. Maybe we should change createKey so that it doesn't create any key 
versions and then add a follow up call to rollNewVersion.

> Create CLI tools for managing keys via the KeyProvider API
> ----------------------------------------------------------
>
>                 Key: HADOOP-10177
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10177
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>            Reporter: Owen O'Malley
>            Assignee: Larry McCay
>         Attachments: 10177.patch
>
>
> The KeyProvider API provides access to keys, but we need CLI tools to provide 
> the ability to create and delete keys. I'd think it would look something like:
> {code}
> % hadoop key -create key1
> % hadoop key -roll key1
> % hadoop key -list key1
> % hadoop key -delete key1
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to