From 473c1ae0a79ab85a14b419ebfe3c5edb6e2f2598 Mon Sep 17 00:00:00 2001 From: Tim Erickson Date: Mon, 9 Dec 2024 18:06:50 -0600 Subject: [PATCH 1/3] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dbebc24..3a9a1df 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,9 @@ when editing, making it even more important that this provider not be used in a production environment. * **File:** Stores the key in a file, which can be anywhere in the file system, as long as it's readable by the user that runs the web server. -Storing the key in a file outside of the web root is generally more -secure than storing it in the database. +You will be required to manually create this file with the key and place +it on your server. Storing the key in a file outside of the web root is +generally more secure than storing it in the database. Both the Configuration and File provider plugins support storing the key with Base64 encoding. From 96a0414c0ceb675d7e76adbee8598cdfedad6323 Mon Sep 17 00:00:00 2001 From: Tim Erickson Date: Mon, 9 Dec 2024 18:14:50 -0600 Subject: [PATCH 2/3] Update file.inc --- plugins/key_provider/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/key_provider/file.inc b/plugins/key_provider/file.inc index 7cf3485..134605c 100644 --- a/plugins/key_provider/file.inc +++ b/plugins/key_provider/file.inc @@ -45,7 +45,7 @@ function key_provider_file_build_configuration_form($form, &$form_state) { $form['file_location'] = array( '#type' => 'textfield', '#title' => t('File location'), - '#description' => t('The location of the file in which the key will be stored. The path may be absolute (e.g., %abs), relative to the Backdrop directory (e.g., %rel), or defined using a stream wrapper (e.g., %str).', + '#description' => t('The location of the file in which the key will be stored. The path may be absolute (e.g., %abs), relative to the Backdrop directory (e.g., %rel), or defined using a stream wrapper (e.g., %str). You will need to manually create this file and include the key in it.', array( '%abs' => '/etc/keys/foobar.key', '%rel' => '../keys/foobar.key', From 587782c13edb14a7c045d4e453341a9bd714e619 Mon Sep 17 00:00:00 2001 From: Tim Erickson Date: Mon, 9 Dec 2024 18:20:56 -0600 Subject: [PATCH 3/3] Update file.inc --- plugins/key_provider/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/key_provider/file.inc b/plugins/key_provider/file.inc index 134605c..6688760 100644 --- a/plugins/key_provider/file.inc +++ b/plugins/key_provider/file.inc @@ -45,7 +45,7 @@ function key_provider_file_build_configuration_form($form, &$form_state) { $form['file_location'] = array( '#type' => 'textfield', '#title' => t('File location'), - '#description' => t('The location of the file in which the key will be stored. The path may be absolute (e.g., %abs), relative to the Backdrop directory (e.g., %rel), or defined using a stream wrapper (e.g., %str). You will need to manually create this file and include the key in it.', + '#description' => t('The location of the file in which the key will be stored. The path may be absolute (e.g., %abs), relative to the Backdrop directory (e.g., %rel), or defined using a stream wrapper (e.g., %str). You will need to manually place this file on your server with the key in it.', array( '%abs' => '/etc/keys/foobar.key', '%rel' => '../keys/foobar.key',