Ensure Azure cache for Redis has public network access disabled

Error: Azure cache for Redis has public network access enabled

Bridgecrew Policy ID: BC_AZR_NETWORKING_23
Checkov Check ID: CKV_AZURE_89
Severity: LOW

Azure cache for Redis has public network access enabled

Description

By ensuring that your Azure cache for Redis is not public, you can help protect your data from unauthorized access or tampering. Public cache for Redis 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_redis_cache
  • Argument: public_network_access_enabled
resource "azurerm_redis_cache" "example" {
                      ...
+                     public_network_access_enabled  = false
                                            ...
                }
                    }