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

[main] Add NSG to allow HTTPS inbounds #57

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions modules/azurerm/AKS-Firewall/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ resource "azurerm_network_security_rule" "network_security_rule_apgw_allow_https
network_security_group_name = azurerm_network_security_group.aks_node_pool_subnet_nsg.name
}

resource "azurerm_network_security_rule" "network_security_rule_mtls_apgw_allow_https_inbound" {
count = var.nsg_rule_apgw_inbound_allow_enabled ? 1 : 0
name = "AllowAPGWHTTPS9443"
priority = 2060
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_address_prefix = var.application_gateway_subnet_address_prefix
source_port_range = "*"
destination_port_range = "9443"
destination_address_prefix = "*"
resource_group_name = var.resource_group_name
network_security_group_name = azurerm_network_security_group.aks_node_pool_subnet_nsg.name
}

resource "azurerm_network_security_rule" "network_security_rule_allow_lb_inbound" {
name = "AllowAzureLB"
priority = 3000
Expand Down
16 changes: 8 additions & 8 deletions modules/azurerm/VMSS-Extension/vmss_extension.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

# Generic Extension Installation
resource "azurerm_virtual_machine_scale_set_extension" "vmss_extension" {
name = var.vmss_extension_peering_name
virtual_machine_scale_set_id = var.linux_vmss_id
publisher = var.vmss_extension_publisher
type = var.vmss_extension_type
type_handler_version = var.vmss_extension_type_handler_version
auto_upgrade_minor_version = var.vmss_extension_auto_upgrade_minor_version
settings = var.vmss_extension_settings
protected_settings = var.vmss_extension_protected_settings
name = var.vmss_extension_peering_name
virtual_machine_scale_set_id = var.linux_vmss_id
publisher = var.vmss_extension_publisher
type = var.vmss_extension_type
type_handler_version = var.vmss_extension_type_handler_version
auto_upgrade_minor_version = var.vmss_extension_auto_upgrade_minor_version
settings = var.vmss_extension_settings
protected_settings = var.vmss_extension_protected_settings

timeouts {
create = var.vmss_extension_create_timeout
Expand Down
Loading