Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update encryption plugin #285

Open
milleruntime opened this issue Sep 16, 2022 · 0 comments
Open

Update encryption plugin #285

milleruntime opened this issue Sep 16, 2022 · 0 comments

Comments

@milleruntime
Copy link
Contributor

With the changes in apache/accumulo#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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant