Skip to content

Commit

Permalink
Merge pull request #1243 from DFE-Digital/2131-rsm-migrate-domains-to…
Browse files Browse the repository at this point in the history
…-s189-ip-restriction

Allowing IP restriction for RSM apps as part of RSM migration activity
  • Loading branch information
shaheislamdfe authored Nov 25, 2024
2 parents d45bb3d + 45879cd commit 7cf4dc6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
2 changes: 2 additions & 0 deletions terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 2 additions & 22 deletions terraform/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,28 +137,8 @@ resource "azurerm_linux_web_app" "rsm-app" {
minimum_tls_version = "1.2"
health_check_path = "/health"

ip_restriction_default_action = "Deny"
scm_ip_restriction_default_action = "Deny"

dynamic "ip_restriction" {
for_each = var.domain != null ? [1] : []

content {
name = "FrontDoor"
action = "Allow"
priority = 1
headers = [{
x_azure_fdid = try([local.infrastructure_secrets.FRONTDOOR_ID], [])
x_fd_health_probe = []
x_forwarded_for = []
x_forwarded_host = []
}]
service_tag = "AzureFrontDoor.Backend"
ip_address = null
virtual_network_subnet_id = null

}
}
ip_restriction_default_action = "Allow"
scm_ip_restriction_default_action = "Allow"
}

app_settings = local.rsm_env_vars
Expand Down
Submodule domains added at eae51c
1 change: 1 addition & 0 deletions terraform/domains/infrastructure/vendor/modules/domains
Submodule domains added at 26f3b7

0 comments on commit 7cf4dc6

Please sign in to comment.