From 7f0035a0c76255a67313a38788b11794e41a6d27 Mon Sep 17 00:00:00 2001 From: Michal Pipal Date: Thu, 16 Jan 2025 12:16:16 +0100 Subject: [PATCH 1/2] Upgraded default TLS on SB (since older are going to be deprecated) --- modules/azure/service_bus_public/main.tf | 1 + modules/azure/service_bus_public/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/modules/azure/service_bus_public/main.tf b/modules/azure/service_bus_public/main.tf index 38f674b2..fd77acd7 100644 --- a/modules/azure/service_bus_public/main.tf +++ b/modules/azure/service_bus_public/main.tf @@ -20,6 +20,7 @@ resource "azurerm_servicebus_namespace" "service_bus" { location = var.location resource_group_name = var.resource_group_name sku = var.sku + minimum_tls_version = var.minimum_tls_version } resource "azurerm_servicebus_namespace_authorization_rule" "authorization_rule" { diff --git a/modules/azure/service_bus_public/variables.tf b/modules/azure/service_bus_public/variables.tf index 8b022c10..1799b15b 100644 --- a/modules/azure/service_bus_public/variables.tf +++ b/modules/azure/service_bus_public/variables.tf @@ -34,3 +34,9 @@ variable "log_analytics_workspace_id" { description = "Specifies the ID of a Log Analytics Workspace where diagnostics data should be sent." default = null } + +variable "minimum_tls_version" { + type = string + description = "Specifies the minimum version of TLS to use (1.0 and 1.2 are deprecated from Feb 2025)" + default = "1.2" +} From 4d48c4361102fbc8f6e3d9d8884a5472a14cf7e9 Mon Sep 17 00:00:00 2001 From: Michal Pipal <73311540+pipalmic@users.noreply.github.com> Date: Thu, 16 Jan 2025 14:56:10 +0100 Subject: [PATCH 2/2] Update modules/azure/service_bus_public/variables.tf Co-authored-by: tom-reinders --- modules/azure/service_bus_public/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/azure/service_bus_public/variables.tf b/modules/azure/service_bus_public/variables.tf index 1799b15b..70067fb7 100644 --- a/modules/azure/service_bus_public/variables.tf +++ b/modules/azure/service_bus_public/variables.tf @@ -37,6 +37,6 @@ variable "log_analytics_workspace_id" { variable "minimum_tls_version" { type = string - description = "Specifies the minimum version of TLS to use (1.0 and 1.2 are deprecated from Feb 2025)" + description = "Specifies the minimum version of TLS to use (1.0 and 1.1 are deprecated from Feb 2025)" default = "1.2" }