4.3.7 Ensure 'Allow access to Azure services' for PostgreSQL Database Server is disabled

Information

Disable access from Azure services to PostgreSQL Database Server.

Rationale:

If access from Azure services is enabled, the server's firewall will accept connections from all Azure resources, including resources not in your subscription. This is usually not a desired configuration. Instead, set up firewall rules to allow access from specific network ranges or VNET rules to allow access from specific virtual networks.

Solution

From Azure Portal

Login to Azure Portal using https://portal.azure.com.

Go to Azure Database for PostgreSQL servers.

For each database, click on Connection security.

Under Firewall rules, set Allow access to Azure services to No.

Click Save.

From Azure CLI
Use the below command to delete the AllowAllWindowsAzureIps rule for PostgreSQL Database.

az postgres server firewall-rule delete --name AllowAllWindowsAzureIps --resource-group <resourceGroupName> --server-name <serverName>

Default Value:

The Azure Postgres firewall is set to block all access by default.

See Also

https://workbench.cisecurity.org/benchmarks/12346

Item Details

Category: SECURITY ASSESSMENT AND AUTHORIZATION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CA-9, 800-53|SC-7, 800-53|SC-7(5), CSCv7|9.4

Plugin: microsoft_azure

Control ID: 41fa1a0f97b582b350e85245a3e7736cd72b72053ac5887bb89c081e871f3976