diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-10-29 09:58:11 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-10-29 10:46:37 +0100 |
commit | 937aa7ad774e0d73a2e97d46bfdaba006ff7fe1d (patch) | |
tree | d8c71c0f024b8b57d646a122322a9becbb7c81e2 | |
parent | 239e0c571e4fa23ef67310029178269ad03912a5 (diff) | |
download | mariadb-git-937aa7ad774e0d73a2e97d46bfdaba006ff7fe1d.tar.gz |
MDEV-9010 Encryption preset file contains different configuration preset then documentation
* clarify the comment in the preset file
* make boolean --aria-encrypt-tables option to work without an argument
-rw-r--r-- | mysql-test/suite/encryption/t/innodb_encryption.opt | 8 | ||||
-rw-r--r-- | mysql-test/suite/sys_vars/r/sysvars_aria.result | 2 | ||||
-rw-r--r-- | storage/maria/ha_maria.cc | 2 | ||||
-rw-r--r-- | support-files/rpm/enable_encryption.preset | 8 |
4 files changed, 12 insertions, 8 deletions
diff --git a/mysql-test/suite/encryption/t/innodb_encryption.opt b/mysql-test/suite/encryption/t/innodb_encryption.opt index b2c709f04b2..0f3634acf1c 100644 --- a/mysql-test/suite/encryption/t/innodb_encryption.opt +++ b/mysql-test/suite/encryption/t/innodb_encryption.opt @@ -1,7 +1,7 @@ ---aria-encrypt-tables=ON ---encrypt-tmp-disk-tables=ON ---innodb-encrypt-tables=ON ---innodb-encrypt-log=ON +--aria-encrypt-tables +--encrypt-tmp-disk-tables +--innodb-encrypt-tables +--innodb-encrypt-log --innodb-encryption-rotate-key-age=15 --innodb-encryption-threads=4 --innodb-tablespaces-encryption diff --git a/mysql-test/suite/sys_vars/r/sysvars_aria.result b/mysql-test/suite/sys_vars/r/sysvars_aria.result index fdaa20f414c..2948b2ad3fc 100644 --- a/mysql-test/suite/sys_vars/r/sysvars_aria.result +++ b/mysql-test/suite/sys_vars/r/sysvars_aria.result @@ -56,7 +56,7 @@ NUMERIC_MAX_VALUE NULL NUMERIC_BLOCK_SIZE NULL ENUM_VALUE_LIST NULL READ_ONLY NO -COMMAND_LINE_ARGUMENT REQUIRED +COMMAND_LINE_ARGUMENT OPTIONAL VARIABLE_NAME ARIA_FORCE_START_AFTER_RECOVERY_FAILURES SESSION_VALUE NULL GLOBAL_VALUE 0 diff --git a/storage/maria/ha_maria.cc b/storage/maria/ha_maria.cc index 7043a2cb7ca..0a39c8ff69d 100644 --- a/storage/maria/ha_maria.cc +++ b/storage/maria/ha_maria.cc @@ -290,7 +290,7 @@ static MYSQL_SYSVAR_BOOL(used_for_temp_tables, "Whether temporary tables should be MyISAM or Aria", 0, 0, 1); -static MYSQL_SYSVAR_BOOL(encrypt_tables, maria_encrypt_tables, 0, +static MYSQL_SYSVAR_BOOL(encrypt_tables, maria_encrypt_tables, PLUGIN_VAR_OPCMDARG, "Encrypt tables (only for tables with ROW_FORMAT=PAGE (default) " "and not FIXED/DYNAMIC)", 0, 0, 0); diff --git a/support-files/rpm/enable_encryption.preset b/support-files/rpm/enable_encryption.preset index 103572be489..722db7e5fa1 100644 --- a/support-files/rpm/enable_encryption.preset +++ b/support-files/rpm/enable_encryption.preset @@ -4,8 +4,12 @@ # ensure that everything that can be encrypted will be and your # data will not leak unencrypted. # -# If in the future more encryption related options will be implemented, -# this file will enable them too. +# DO NOT EDIT THIS FILE! On MariaDB upgrades it might be replaced with a +# newer version and your edits will be lost. Instead, add your edits +# to the .cnf file after the !include directive. +# +# NOTE that you also need to install an encryption plugin for the encryption +# to work. See https://mariadb.com/kb/en/mariadb/data-at-rest-encryption/#encryption-key-management # [mariadb] aria-encrypt-tables |