Key vault does not allow firewall rules settings misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AZURE_109
Category - Subcategory
Public Exposure - Encryption And Protocols
Provider
AZURE
Severity
MEDIUM
Framework
ARM, Bicep, Terraform, Terraform Plan
Impact
Key vault's firewall prevents unauthorized traffic from reaching your key vault and provides an additional layer of protection for your secrets. Enable the firewall to make sure that only traffic from allowed networks can access your key vault. By defining "bypass=AzureServices" and "default_action= "deny" - only matched ip_rules and/or virtual_network_subnet_ids will be passed
How to Fix
Resource: azurerm_key_vault
Arguments: network_acls.default_action [source,go]
resource "azurerm_key_vault" "example" { ...
network_acls {
default_action = "Deny"
bypass = "AzureServices" } }
Last updated
Was this helpful?
