From 60ec2afea9f0f2e06744a2fcb31b5858ff5fd7d6 Mon Sep 17 00:00:00 2001 From: Farid Rener Date: Wed, 6 Dec 2023 11:11:31 -0500 Subject: [PATCH 1/2] Add messaging POST requests to WAF for saving rich text emails --- src/commcare_cloud/commands/terraform/constants.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commcare_cloud/commands/terraform/constants.py b/src/commcare_cloud/commands/terraform/constants.py index 6b0bf7bb13..2f52a6b4d7 100644 --- a/src/commcare_cloud/commands/terraform/constants.py +++ b/src/commcare_cloud/commands/terraform/constants.py @@ -28,6 +28,9 @@ ^/a/([\w\.:-]+)/fixtures/fixapi/ ^/a/([\w\.:-]+)/importer/excel/bulk_upload_api/$ ^/a/([\w\.:-]+)/importer/excel/config/$ +^/a/([\w\.:-]+)/messaging/broadcasts/add/$ +^/a/([\w\.:-]+)/messaging/conditional/add/$ +^/a/([\w\.:-]+)/messaging/conditional/edit/([\w-]+)/$ ^/a/([\w\.:-]+)/receiver/$ ^/a/([\w\.:-]+)/receiver/([\w-]+)/$ ^/a/([\w\.:-]+)/receiver/api/$ From f0e44fc61984fce4beabcecc7b0f8fc4df442a9f Mon Sep 17 00:00:00 2001 From: Farid Rener Date: Wed, 6 Dec 2023 11:12:19 -0500 Subject: [PATCH 2/2] Add log_email_event patterns --- src/commcare_cloud/commands/terraform/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commcare_cloud/commands/terraform/constants.py b/src/commcare_cloud/commands/terraform/constants.py index 2f52a6b4d7..2810cec705 100644 --- a/src/commcare_cloud/commands/terraform/constants.py +++ b/src/commcare_cloud/commands/terraform/constants.py @@ -48,6 +48,7 @@ ^/formplayer/validate_form$ ^/gvi/api/sms/$ ^/jserror/$ +^/log_email_event/([\w]+)/([\w\.:-]+)/?$ ^/log_email_event/([\w]+)/?$ ^/telerivet/in/?$ ^/telerivet/status/([\w\-]+)/$