CosmosDB account IP range filter not set
Ce produit n'est pas pris en charge par le
site Datadog que vous avez sélectionné. (
).
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter.
Id: c2a3efb6-8a58-481c-82f2-bfddf34bb4b7
Cloud Provider: Azure
Platform: Terraform
Severity: Critical
Category: Networking and Firewall
Learn More
Description
Azure CosmosDB Account IP range filter provides network-level access control for your database by restricting connections to specified IP addresses or ranges. When this filter is not configured, the database is potentially accessible from any IP address, exposing sensitive data to unauthorized access. Setting the ip_range_filter attribute (for example, ‘ip_range_filter = “104.42.195.92”’) limits access to only approved network locations, significantly enhancing your database security posture.
Compliant Code Examples
resource "azurerm_cosmosdb_account" "negative1" {
name = "example"
ip_range_filter = "104.42.195.92"
is_virtual_network_filter_enabled = true
}
Non-Compliant Code Examples
resource "azurerm_cosmosdb_account" "positive1" {
name = "example"
is_virtual_network_filter_enabled = true
}