π 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
- Located in: π Azure PostgreSQL Database
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
RELIABILITY
PERFORMANCE
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-850beea8
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-850beea8 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Enable connection throttling on Ρ.
Rationaleβ
Enabling
connection_throttling
helps 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
VALUE
forconnection_throttle.enable
is set toON
.From Azure CLIβ
Ensure the below command returns a
value
ofON
: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.enable
toON
.- 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 on
From PowerShellβ
Use the below command to update
connection_throttling
configuration:Update-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName <resourceGroup> -ServerName <serverName> -Name connection_throttle.enable -Value on