mikewalch commented on a change in pull request #201: Added option to enable 
encryption
URL: https://github.com/apache/fluo-uno/pull/201#discussion_r222436449
 
 

 ##########
 File path: bin/impl/setup-accumulo.sh
 ##########
 @@ -58,6 +58,12 @@ else
   $SED 
"s#instance[.]zookeepers=localhost:2181#instance.zookeepers=$UNO_HOST:2181#" 
"$conf"/accumulo-client.properties
   $SED "s#auth[.]principal=#auth.principal=$ACCUMULO_USER#" 
"$conf"/accumulo-client.properties
   $SED "s#auth[.]token=#auth.token=$ACCUMULO_PASSWORD#" 
"$conf"/accumulo-client.properties
+  if [[ "$ACCUMULO_CRYPTO" == "true" ]]; then
+    openssl rand -out $ACCUMULO_HOME/testkeyfile.key 32
+    echo "instance.crypto.opts.key.provider=uri" >> "$accumulo_conf"
+    echo 
"instance.crypto.opts.key.location=file://$ACCUMULO_HOME/testkeyfile.key" >> 
"$accumulo_conf"
 
 Review comment:
   Can this file be put in `conf/` and given a better name?  Something like 
`file://$ACCUMULO_HOME/conf/data-encryption.key`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to