From aa4be3b33714ce4586b5110536f9bfc34a45cc40 Mon Sep 17 00:00:00 2001 From: cmendible <266546+cmendible@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:57:23 +0100 Subject: [PATCH] Changed API Management diagnostic configuration --- infra/modules/apim/main.tf | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/infra/modules/apim/main.tf b/infra/modules/apim/main.tf index 63d312f..ebadeb2 100644 --- a/infra/modules/apim/main.tf +++ b/infra/modules/apim/main.tf @@ -129,30 +129,34 @@ resource "azurerm_api_management_diagnostic" "diagnostics" { http_correlation_protocol = "W3C" frontend_request { - body_bytes = 8192 - headers_to_log = [ - "custom-headers" - ] + body_bytes = 8192 + headers_to_log = [] + data_masking { + query_params { + mode = "Hide" + value = "*" + } + } } frontend_response { - body_bytes = 8192 - headers_to_log = [ - "custom-headers" - ] + body_bytes = 8192 + headers_to_log = [] } backend_request { - body_bytes = 8192 - headers_to_log = [ - "custom-headers" - ] + body_bytes = 8192 + headers_to_log = [] + data_masking { + query_params { + mode = "Hide" + value = "*" + } + } } backend_response { - body_bytes = 8192 - headers_to_log = [ - "custom-headers" - ] + body_bytes = 8192 + headers_to_log = [] } }