Ensure Azure IoT Hub disables public network access

Error: Azure IoT Hub enables public network access

Bridgecrew Policy ID: BC_AZR_NETWORKING_32
Checkov Check ID: CKV_AZURE_108
Severity: MEDIUM

Azure IoT Hub enables public network access

Description

TBA

Fix - Buildtime

Terraform

  • Resource: azurerm_iothub
  • Argument: public_network_access_enabled
resource "azurerm_iothub" "example" {
                ...
+             public_network_access_enabled = false
              route {
                name           = "export"
                source         = "DeviceMessages"
                condition      = "true"
                endpoint_names = ["export"]
                enabled        = true
              }
                        ...
            }

Did this page help you?