From 9fa03d964d28fad33aebf61036d2d7fb002c9fc9 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Thu, 21 Sep 2023 22:28:07 +0000 Subject: [PATCH] chore: move MST active flag to settings keep it consistent with other agencies --- benefits/core/migrations/0002_data.py | 2 +- terraform/app_service.tf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/benefits/core/migrations/0002_data.py b/benefits/core/migrations/0002_data.py index d94ee9f742..f22f1b8d0f 100644 --- a/benefits/core/migrations/0002_data.py +++ b/benefits/core/migrations/0002_data.py @@ -288,7 +288,7 @@ def load_data(app, *args, **kwargs): merchant_id=sample_agency["merchant_id"], info_url=sample_agency["info_url"], phone=sample_agency["phone"], - active=True, + active=os.environ.get("MST_AGENCY_ACTIVE", "False").lower() == "true", private_key=client_private_key, public_key=client_public_key, jws_signing_alg=os.environ.get("MST_AGENCY_JWS_SIGNING_ALG", "RS256"), diff --git a/terraform/app_service.tf b/terraform/app_service.tf index c1d7756401..58e7c0900b 100644 --- a/terraform/app_service.tf +++ b/terraform/app_service.tf @@ -151,6 +151,7 @@ resource "azurerm_linux_web_app" "main" { "SBMTD_PAYMENT_PROCESSOR_CARD_TOKENIZE_ENV" = "${local.secret_prefix}sbmtd-payment-processor-card-tokenize-env)" "MST_AGENCY_SHORT_NAME" = "${local.secret_prefix}mst-agency-short-name)" "MST_AGENCY_LONG_NAME" = "${local.secret_prefix}mst-agency-long-name)" + "MST_AGENCY_ACTIVE" = "${local.secret_prefix}mst-agency-active)" "MST_AGENCY_JWS_SIGNING_ALG" = "${local.secret_prefix}mst-agency-jws-signing-alg)" "SACRT_AGENCY_SHORT_NAME" = "${local.secret_prefix}sacrt-agency-short-name)" "SACRT_AGENCY_LONG_NAME" = "${local.secret_prefix}sacrt-agency-long-name)"