From 79b0b10cd286bf9331bbbf6db3dab60351b7eff4 Mon Sep 17 00:00:00 2001 From: Jan Kolena Date: Mon, 15 Mar 2021 19:41:08 +0100 Subject: [PATCH] TF: set explicitly rate limiting for Verification Server (both DEV and PROD) --- terraform/dev/verification-server/terraform.tfvars | 2 ++ terraform/prod/verification-server/terraform.tfvars | 3 +++ 2 files changed, 5 insertions(+) diff --git a/terraform/dev/verification-server/terraform.tfvars b/terraform/dev/verification-server/terraform.tfvars index b073dbf3..96d33ec0 100644 --- a/terraform/dev/verification-server/terraform.tfvars +++ b/terraform/dev/verification-server/terraform.tfvars @@ -13,10 +13,12 @@ service_environment = { CERTIFICATE_AUDIENCE = "covid19cz" OBSERVABILITY_EXPORTER = "NOOP" RATE_LIMIT_TOKENS = "150" + RATE_LIMIT_INTERVAL = "1m" } adminapi = { OBSERVABILITY_EXPORTER = "NOOP" RATE_LIMIT_TOKENS = "150" + RATE_LIMIT_INTERVAL = "1m" } server = { FIREBASE_PRIVACY_POLICY_URL = "TODO" diff --git a/terraform/prod/verification-server/terraform.tfvars b/terraform/prod/verification-server/terraform.tfvars index 20bfd083..42a27c6b 100644 --- a/terraform/prod/verification-server/terraform.tfvars +++ b/terraform/prod/verification-server/terraform.tfvars @@ -14,6 +14,7 @@ service_environment = { CERTIFICATE_AUDIENCE = "covid19cz" OBSERVABILITY_EXPORTER = "NOOP" RATE_LIMIT_TOKENS = "150" + RATE_LIMIT_INTERVAL = "1m" } server = { FIREBASE_PRIVACY_POLICY_URL = "TODO" @@ -34,6 +35,8 @@ service_environment = { } adminapi = { OBSERVABILITY_EXPORTER = "NOOP" + RATE_LIMIT_TOKENS = "150" + RATE_LIMIT_INTERVAL = "1m" } } notification-email = "marek.bartik@pipetail.io"