Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix public exposure in Guacamole service #4236

Merged
merged 8 commits into from
Jan 2, 2025
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
ShakutaiGit marked this conversation as resolved.
Show resolved Hide resolved
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
Loading