π‘οΈ 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 Ρ.
Rationaleβ
Enabling
connection_throttlinghelps the PostgreSQL Database toSet the verbosity of logged messages. This in turn generates query and error logs with respect to concurrent connections that could lead to a successful 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 sub-optimal performance.Auditβ
From Azure Portalβ
- Login 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 below command returns a
valueofON:az postgres flexible-server parameter show --resource-group <resourceGroup> --server-name <serverName> --name connection_throttle.enable
... [see more](description.md)
Remediationβ
Remediationβ
From Azure Portalβ
- Login 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 below command to enable
connection_throttle.enable:az postgres flexible-server parameter set --resource-group <resourceGroup> --server-name <serverName> --name connection_throttle.enable --value onFrom PowerShellβ
Use the below command to update
connection_throttlingconfiguration:Update-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name connection_throttle.enable -Value on