Skip to content

Commit

Permalink
Block TRE access to Terraform/Hashicorp domains (#2590)
Browse files Browse the repository at this point in the history
* firewall blocks terraform

* update min fw version

* update changelog
  • Loading branch information
tamirkamara authored Sep 13, 2022
1 parent ed68d49 commit e6b62f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

**BREAKING CHANGES & MIGRATIONS**:

*
* Firewall now blocks terraform/hasicorp domains ([#2590](https://github.com/microsoft/AzureTRE/pull/2590)). **Migration** is manual - update the templateVersion of `tre-shared-service-firewall` resource in Cosmos to `0.5.0`. Check the PR for more details.

FEATURES:

Expand Down
2 changes: 1 addition & 1 deletion templates/shared_services/firewall/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: tre-shared-service-firewall
version: 0.4.3
version: 0.5.0
description: "An Azure TRE Firewall shared service"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down
20 changes: 0 additions & 20 deletions templates/shared_services/firewall/terraform/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,26 +156,6 @@ resource "azurerm_firewall_application_rule_collection" "resource_processor_subn
source_addresses = data.azurerm_subnet.resource_processor.address_prefixes
}

# TODO: remove this rule when all bundles have mirrored their plugins
# https://github.com/microsoft/AzureTRE/issues/2445
rule {
name = "terraform-sources"
protocol {
port = "443"
type = "Https"
}
protocol {
port = "80"
type = "Http"
}

target_fqdns = [
"registry.terraform.io",
"releases.hashicorp.com",
]
source_addresses = data.azurerm_subnet.resource_processor.address_prefixes
}

depends_on = [
azurerm_firewall_application_rule_collection.shared_subnet
]
Expand Down

0 comments on commit e6b62f4

Please sign in to comment.