Skip to content

Azure Database for MariaDB not configured with private endpoint

Description

This policy checks whether Azure MariaDB database servers are configured with private endpoints. Private endpoint connections are essential for ensuring secure communication, establishing exclusive, private connectivity to Azure Database for MariaDB. Configuring a private endpoint ensures access only from recognized networks, preventing entry from potentially malicious or unknown IP addresses, including those within Azure. It is recommended to establish a private endpoint to enhance the security of communication for your Azure MariaDB database.

Code Example

go
resource "azurerm_mariadb_server" "example" {
  ...
}

resource "azurerm_private_endpoint" "example" {
  ...

  private_service_connection {
    ...
    private_connection_resource_id = azurerm_mariadb_server.pass.id
    ...
  }
}

Remediation

Terraform

  • Resource: azurerm_mariadb_server, azurerm_private_endpoint
  • Arguments: private_connection_resource_id

To fix this issue and establish secure communication with your network, configure your Azure MariaDB server with a private endpoint, by adding a private_connection_resource_id connection to the azurerm_mariadb_server service.

Rule Details

FieldValue
IDIAC-0800
SeverityMEDIUM
IaC TypeTerraform
FrameworksTerraform, TerraformPlan
Checkov IDCKV2_AZURE_43

References