From 6bdf7a9dcb73385313a1f34d52e27ad0cf95fb3e Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 16 Dec 2023 09:12:41 +0200 Subject: [PATCH] Add Hookshot validation task to ensure queue settings are set when encryption is enabled --- .../custom/matrix-bridge-hookshot/tasks/validate_config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/custom/matrix-bridge-hookshot/tasks/validate_config.yml b/roles/custom/matrix-bridge-hookshot/tasks/validate_config.yml index 91d29eceb..f02fb1a0e 100644 --- a/roles/custom/matrix-bridge-hookshot/tasks/validate_config.yml +++ b/roles/custom/matrix-bridge-hookshot/tasks/validate_config.yml @@ -87,6 +87,12 @@ with_items: - "matrix_hookshot_provisioning_secret" +- name: Fail if no Redis queue enabled when Hookshot encryption is enabled + ansible.builtin.fail: + msg: >- + You need to define a required configuration setting (`{{ item }}`) to enable Hookshot encryption. + when: "matrix_hookshot_experimental_encryption_enabled and matrix_hookshot_queue_host == ''" + - name: (Deprecation) Catch and report old metrics usage ansible.builtin.fail: msg: >-