On Jul 23, 2014, at 4:03 PM, Billie Rinaldi <[email protected]> wrote:

> Accumulo requires a couple of sensitive pieces of information to be
> provided when it is starting up (including the Accumulo root user's
> password).  Those are currently provided in the appConfig.json file.
> Hadoop common is adding a CredentialProvider (HADOOP-10607) that allows you
> to enter passwords into a Java KeyStore (the storage mechanism is
> pluggable) and to retrieve them.  This is in branch-2 and trunk, though I'm
> not sure which branch-2 release it will make it into.  I'd like to add a
> capability into Slider to prompt the user for needed passwords and store
> them using CredentialProvider so they can be retrieved by an app later.
> 
> We could add a new "credentials" section to the appConfig.json, with
> entries that map CredentialProvider URLs to a list of credentials to store
> in that CP.
> +  "credentials": {
> +    "jceks://hdfs/slider/accumulo.jceks": ["root", "instance.secret"]
> +  },

In that instance you once again have the credential/password or secret in the 
clear or available in an app resource (I suppose you could encrypt it).  Does 
the CredentialProvider have a capability to return credentials based on a key?  
It would seem that in that instance the expectation would be that the 
credential store would be pre-configured as an administrative pre-deployment 
step, allowing for the retrieval of the credential during app start up (e.g.  
based on service selection Ambari prompts use with config panel for credential 
store creation or for the URI of an existing store)?  I imagine in that 
instance the configuration would look like (assuming the need for multiple 
credentials):

+  "credentials": {
+    "jceks://hdfs/slider/accumulo.jceks": ["root", "key-to-credential"]
+  },


> 
> One thing I'm not sure about is where to do the CredentialProvider
> creation.  The best place I have thought of so far is in
> SliderClient.actionCreate, between building and starting a cluster.


-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to