Bug 28998: Add encryption_key to the config file
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 10 Sep 2021 15:16:37 +0000 (17:16 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 4 May 2022 15:18:31 +0000 (05:18 -1000)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
debian/templates/koha-conf-site.xml.in
etc/koha-conf.xml
t/Koha/Config.t
t/data/koha-conf.xml

index 20d2172..2e66535 100644 (file)
@@ -397,6 +397,9 @@ __END_SRU_PUBLICSERVER__
  <!-- This is the bcrypt settings used to generated anonymized content -->
  <bcrypt_settings>__BCRYPT_SETTINGS__</bcrypt_settings>
 
+ <!-- Encryption key for crypted password or sensitive data -->
+ <encryption_key>__ENCRYPTION_KEY__</encryption_key>
+
  <!-- flag for development purposes
       dev_install is used to adjust some paths specific to dev installations
       strict_sql_modes should not be used in a production environment
index 2c95e2c..6c2c1fe 100644 (file)
       server. e.g. Antarctica/South_Pole -->
  <timezone></timezone>
 
- <!-- This is the bcryt settings used to generated anonymized content -->
+ <!-- This is the bcrypt settings used to generated anonymized content -->
  <bcrypt_settings>__BCRYPT_SETTINGS__</bcrypt_settings>
 
+ <!-- Encryption key for crypted password or sensitive data -->
+ <encryption_key>__ENCRYPTION_KEY__</encryption_key>
+
  <!-- flag for development purposes
       dev_install is used to adjust some paths specific to dev installations
       strict_sql_modes should not be used in a production environment
index 60df194..dbee152 100755 (executable)
@@ -218,6 +218,7 @@ subtest 'read_from_file() tests' => sub {
             },
             'timezone' => '',
             'bcrypt_settings' => '__BCRYPT_SETTINGS__',
+            'encryption_key' => '__ENCRYPTION_KEY__',
             'dev_install' => '0',
             'strict_sql_modes' => '0',
             'plugin_repos' => '',
index ae5faf6..5a5d5c3 100644 (file)
       server. e.g. Antarctica/South_Pole -->
  <timezone></timezone>
 
- <!-- This is the bcryt settings used to generated anonymized content -->
+ <!-- This is the bcrypt settings used to generated anonymized content -->
  <bcrypt_settings>__BCRYPT_SETTINGS__</bcrypt_settings>
 
+ <!-- Encryption key for crypted password or sensitive data -->
+ <encryption_key>__ENCRYPTION_KEY__</encryption_key>
+
  <!-- flag for development purposes
       dev_install is used to adjust some paths specific to dev installations
       strict_sql_modes should not be used in a production environment