Page MenuHomePhabricator

D11193.id37731.diff
No OneTemporary

D11193.id37731.diff

diff --git a/services/terraform/remote/service_identity.tf b/services/terraform/remote/service_identity.tf
--- a/services/terraform/remote/service_identity.tf
+++ b/services/terraform/remote/service_identity.tf
@@ -21,6 +21,19 @@
identity_service_domain_name = "identity.${local.root_domain}"
opaque_server_setup_secret_name = "identity/ServerSetup"
+ staging_allow_origin_list = <<EOT
+ http://localhost:3000,
+ http://localhost:3001,
+ http://localhost:3002,
+ http://localhost:3003,
+ http://localhost:3004,
+ http://localhost:3005,
+ http://localhost:3006,
+ http://localhost:3007,
+ http://localhost:3008,
+ http://localhost:3009,
+ EOT
+ production_allow_origin_list = "https://web.comm.app"
}
data "aws_secretsmanager_secret" "identity_server_setup" {
@@ -63,7 +76,11 @@
},
{
name = "OPENSEARCH_ENDPOINT"
- value = "${module.shared.opensearch_domain_identity.endpoint}"
+ value = module.shared.opensearch_domain_identity.endpoint
+ },
+ {
+ name = "ALLOW_ORIGIN_LIST"
+ value = local.is_staging ? local.staging_allow_origin_list : local.production_allow_origin_list
}
]
secrets = [

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 2:35 PM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2579734
Default Alt Text
D11193.id37731.diff (1 KB)

Event Timeline