From 60c00fe055793d2a11b60785626eac7b8e852cc5 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Thu, 19 Dec 2024 00:16:28 +0000 Subject: [PATCH] feat(terraform): allow public access to /metadata endpoint --- terraform/front_door.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terraform/front_door.tf b/terraform/front_door.tf index f3cdc1b2..9742a310 100644 --- a/terraform/front_door.tf +++ b/terraform/front_door.tf @@ -83,7 +83,11 @@ resource "azurerm_cdn_frontdoor_firewall_policy" "main" { match_condition { match_variable = "RequestUri" operator = "BeginsWith" - match_values = ["https://${azurerm_cdn_frontdoor_endpoint.main.host_name}:443/healthcheck", "https://${azurerm_cdn_frontdoor_endpoint.main.host_name}:443/static/"] + match_values = [ + "https://${azurerm_cdn_frontdoor_endpoint.main.host_name}:443/healthcheck", + "https://${azurerm_cdn_frontdoor_endpoint.main.host_name}:443/metadata", + "https://${azurerm_cdn_frontdoor_endpoint.main.host_name}:443/static/" + ] } }