Ensure Azure Event Grid domain public network access is disabled

Error: Azure Event Grid domain public network access is enabled

Bridgecrew Policy ID: BC_AZR_NETWORKING_30
Checkov Check ID: CKV_AZURE_106
Severity: MEDIUM

Azure Event Grid domain public network access is enabled

Description

By ensuring that your Azure Event Grid domain is not public, you can help protect your data from unauthorized access or tampering. Public Azure Event Grid domains are accessible over the internet, which can make them vulnerable to external threats such as hackers or malware. By making it private, you can help ensure that only authorized users can access the data.

Fix - Buildtime

Terraform

  • Resource: azurerm_eventgrid_domain
  • Argument: public_network_access_enabled
resource "azurerm_eventgrid_domain" "example" {
              ...
+             public_network_access_enabled = false
              }