From 9892eac7891d9d41abdf92a3b89151900cb1ece7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Marten?= Date: Fri, 10 Jan 2020 12:38:37 +0100 Subject: [PATCH] Adjust API secret to be a configurable and required variable --- roles/matrix-bridge-appservice-webhooks/defaults/main.yml | 3 ++- .../tasks/validate_config.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/matrix-bridge-appservice-webhooks/defaults/main.yml b/roles/matrix-bridge-appservice-webhooks/defaults/main.yml index e88fabb8..0515638b 100644 --- a/roles/matrix-bridge-appservice-webhooks/defaults/main.yml +++ b/roles/matrix-bridge-appservice-webhooks/defaults/main.yml @@ -44,6 +44,7 @@ matrix_appservice_webhooks_systemd_wanted_services_list: [] matrix_appservice_webhooks_appservice_token: '' matrix_appservice_webhooks_homeserver_token: '' matrix_appservice_webhooks_id_token: '' +matrix_appservice_webhooks_api_secret: '' matrix_appservice_webhooks_configuration_yaml: | @@ -69,7 +70,7 @@ matrix_appservice_webhooks_configuration_yaml: | # Provisioning API options provisioning: # Your secret for the API. Required for all provisioning API requests. - secret: 'warummussesdennsolangsein' + secret: '{{ matrix_appservice_webhooks_api_secret }}' # Configuration related to the web portion of the bridge. Handles the inbound webhooks web: diff --git a/roles/matrix-bridge-appservice-webhooks/tasks/validate_config.yml b/roles/matrix-bridge-appservice-webhooks/tasks/validate_config.yml index 43b3ae01..b92a0eb9 100644 --- a/roles/matrix-bridge-appservice-webhooks/tasks/validate_config.yml +++ b/roles/matrix-bridge-appservice-webhooks/tasks/validate_config.yml @@ -9,3 +9,4 @@ - "matrix_appservice_webhooks_appservice_token" - "matrix_appservice_webhooks_homeserver_token" - "matrix_appservice_webhooks_id_token" + - "matrix_appservice_webhooks_api_secret"