apache / apache/accumulo-uno

Update encryption plugin

Open
#285 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
40
Forks
40
PR merge metrics
No merged PRs in 30d

Description

With the changes in https://github.com/apache/accumulo/pull/2197 the encryption plugin (`plugins/accumulo-encryption.sh`) will need to be updated. The script will need to generate the new properties with something like:

CS=$(jar -tvf "$ACCUMULO_HOME"/lib/accumulo-core-2.*.jar | grep -o 'org.apache.accumulo.core.*AESCryptoService' | tr / . | tail -1)

CSF=$(jar -tvf "$ACCUMULO_HOME"/lib/accumulo-core-2.*.jar | grep -o 'org.apache.accumulo.core.*PerTableCryptoServiceFactory' | tr / . | tail -1)
echo "instance.crypto.opts.factory=$CSF" >> "$accumulo_conf"
echo "general.custom.crypto.recovery.service=$CS" >> "$accumulo_conf"
echo "general.custom.crypto.wal.service=$CS" >> "$accumulo_conf"
echo "general.custom.crypto.key.uri=file://$encrypt_key" >> "$accumulo_conf"
echo "table.crypto.opts.service=$CS" >> "$accumulo_conf"
echo "table.crypto.opts.key.uri=file://$encrypt_key" >> "$accumulo_conf"
echo "general.custom.crypto.enabled=true" >> "$accumulo_conf"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.