From e0f1e9b91f25e1632180d4049f57b5d8d429ca01 Mon Sep 17 00:00:00 2001 From: Marcus Robinson Date: Wed, 19 Feb 2025 10:34:20 +0000 Subject: [PATCH] Fix firewall rules creation on upgrade for Guacamole (#4343) --- CHANGELOG.md | 1 + .../workspace_services/guacamole/porter.yaml | 2 +- .../guacamole/template_schema.json | 35 +++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c596b48c02..382f63e341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ BUG FIXES: * Fix upgrade when porter install has failed ([#4338](https://github.com/microsoft/AzureTRE/pull/4338)) * Certs shared service: Secret nexus-ssl-password is currently in a deleted but recoverable state ([#4294](https://github.com/microsoft/AzureTRE/issues/4294)]) * Fix Cosmos DB local debugging configuration ([#4340](https://github.com/microsoft/AzureTRE/pull/4340)) +* Add firewall rules to upgrade steps for Guacamole service ([#4343](https://github.com/microsoft/AzureTRE/pull/4343)) COMPONENTS: diff --git a/templates/workspace_services/guacamole/porter.yaml b/templates/workspace_services/guacamole/porter.yaml index c1d16965d1..28002c90d4 100644 --- a/templates/workspace_services/guacamole/porter.yaml +++ b/templates/workspace_services/guacamole/porter.yaml @@ -1,7 +1,7 @@ --- schemaVersion: 1.0.0 name: tre-service-guacamole -version: 0.12.8 +version: 0.12.9 description: "An Azure TRE service for Guacamole" dockerfile: Dockerfile.tmpl registry: azuretre diff --git a/templates/workspace_services/guacamole/template_schema.json b/templates/workspace_services/guacamole/template_schema.json index fa644e5c2c..c3e1069637 100644 --- a/templates/workspace_services/guacamole/template_schema.json +++ b/templates/workspace_services/guacamole/template_schema.json @@ -153,6 +153,41 @@ } } ] + }, + { + "stepId": "260421b3-7308-491f-b531-e007cdc0ff47", + "stepTitle": "Add network firewall rules for guacamole", + "resourceTemplateName": "tre-shared-service-firewall", + "resourceType": "shared-service", + "resourceAction": "upgrade", + "properties": [ + { + "name": "network_rule_collections", + "type": "array", + "arraySubstitutionAction": "replace", + "arrayMatchField": "name", + "value": { + "name": "nrc_svc_{{ resource.id }}_guacamole", + "action": "Allow", + "rules": [ + { + "name": "AzureAD", + "description": "AAD access for authNZ", + "source_addresses": "{{ resource.properties.web_apps_addresses }}", + "destination_addresses": [ + "AzureActiveDirectory" + ], + "destination_ports": [ + "*" + ], + "protocols": [ + "TCP" + ] + } + ] + } + } + ] } ], "uninstall": [