π‘οΈ Azure PostgreSQL Flexible Server connection_throttle.enable Parameter is not set to ONπ’
- Contextual name: π‘οΈ Flexible Server connection_throttle.enable Parameter is not set to ONπ’
- ID:
/ce/ca/azure/postgresql-database/flexible-server-connection-throttle-enable-parameter - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY,RELIABILITY,PERFORMANCE
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Enable 'CONNECTION_THROTTLING' Parameter for PostgreSQL Servers
- Internal:
dec-x-850beea8
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-850beea8 | 1 |
Descriptionβ
Descriptionβ
Enable connection throttling on
PostgreSQL flexible servers.Rationaleβ
Enabling
connection_throttlinghelps PostgreSQL limit concurrent connections that could lead to a Denial of Service (DoS) attack by exhausting connection resources. A system can also fail or be degraded by an overload of legitimate users. Query and error logs can be used to identify, troubleshoot, and repair configuration errors and suboptimal performance.Auditβ
From Azure Portalβ
- Log in to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for PostgreSQL flexible servers.- For each database, under Settings, click
Server parameters.- In the filter bar, type
connection_throttle.enable.- Ensure that
VALUEforconnection_throttle.enableis set toON.From Azure CLIβ
Ensure the following command returns a
valueofON:az postgres flexible-server parameter show \
--resource-group {{resource-group-name}} \
--server-name {{server-name}} \
--name connection_throttle.enable... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Log in to Azure Portal using https://portal.azure.com.
- Go to
Azure Database for PostgreSQL flexible servers.- For each database, under
Settings, clickServer parameters.- Search for
connection_throttle.enable.- Set
connection_throttle.enabletoON.- Click
Save.From Azure CLIβ
Use the following command to enable
connection_throttle.enable:az postgres flexible-server parameter set \
--resource-group {{resource-group-name}} \
--server-name {{server-name}} \
--name connection_throttle.enable \
--value onFrom PowerShellβ
Use the following command to update
connection_throttle.enable:Update-AzPostgreSqlFlexibleServerConfiguration `
-ResourceGroupName {{resource-group-name}} `
-ServerName {{server-name}} `
-Name connection_throttle.enable `
-Value on