Skip to content

Commit

Permalink
Fix public exposure in Guacamole service (#4236)
Browse files Browse the repository at this point in the history
* Update Guacamole service exposure settings and change the service plan configuration to the data
* update the changelog.md
  • Loading branch information
ShakutaiGit authored Jan 2, 2025
1 parent a555afc commit c79d9e1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ BUG FIXES:
* Bump terraform version in windows VM template ([#4212](https://github.com/microsoft/AzureTRE/issues/4212))
* Upgrade azurerm terraform provider from v3.112.0 to v3.117.0 to mitiagte storage account deployment issue ([#4004](https://github.com/microsoft/AzureTRE/issues/4004))
* Fix VM actions where Workspace shared storage doesn't allow shared key access ([#4222](https://github.com/microsoft/AzureTRE/issues/4222))

* Fix public exposure in Guacamole service ([[#4199](https://github.com/microsoft/AzureTRE/issues/4199)])
COMPONENTS:

## 0.19.1
Expand Down
2 changes: 1 addition & 1 deletion templates/workspace_services/guacamole/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ GUAC_DRIVE_NAME="transfer"
GUAC_DRIVE_PATH="/guac-transfer"
GUAC_DISABLE_DOWNLOAD=true
GUAC_DISABLE_UPLOAD=true
IS_EXPOSED_EXTERNALLY=false
IS_EXPOSED_EXTERNALLY=true
image_name="guac-server"
image_tag=""
2 changes: 1 addition & 1 deletion templates/workspace_services/guacamole/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-service-guacamole
version: 0.12.5
version: 0.12.6
description: "An Azure TRE service for Guacamole"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down
5 changes: 5 additions & 0 deletions templates/workspace_services/guacamole/terraform/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ data "azurerm_monitor_diagnostic_categories" "guacamole" {
azurerm_linux_web_app.guacamole,
]
}

data "azurerm_service_plan" "workspace" {
name = "plan-${var.workspace_id}"
resource_group_name = data.azurerm_resource_group.ws.name
}
6 changes: 1 addition & 5 deletions templates/workspace_services/guacamole/terraform/web_app.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
data "azurerm_service_plan" "workspace" {
name = "plan-${var.workspace_id}"
resource_group_name = data.azurerm_resource_group.ws.name
}

# we have to use user-assigned to break a cycle in the dependencies: app identity, kv-policy, secrets in app settings
resource "azurerm_user_assigned_identity" "guacamole_id" {
resource_group_name = data.azurerm_resource_group.ws.name
Expand All @@ -24,6 +19,7 @@ resource "azurerm_linux_web_app" "guacamole" {
ftp_publish_basic_authentication_enabled = false
webdeploy_publish_basic_authentication_enabled = false
tags = local.workspace_service_tags
public_network_access_enabled = var.is_exposed_externally

site_config {
http2_enabled = true
Expand Down

0 comments on commit c79d9e1

Please sign in to comment.