Description
Azure PostgreSQL can temporarily block new connections from an IP address after repeated invalid-password attempts.
Potential impact
A client retrying with a stale password can also interrupt legitimate clients that share its IP address.
Remediation
On a supported Flexible Server, set connection_throttle.enable to on. Restrict network access, monitor failed sign-ins and fix stale credentials. Verify legitimate users can connect. Use connection pooling and capacity limits to manage normal concurrency.
Examples
The first excerpt uses connection_throttling on retired Single Server. The second targets an existing Flexible Server and requires azure.azcollection 3.18.0 or later.
Before
yaml
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: connection_throttling
value: "off"
After
yaml
- name: PostgreSQL 설정 변경
azure.azcollection.azure_rm_postgresqlflexibleconfiguration:
resource_group: myResourceGroup
server_name: myServer
name: connection_throttle.enable
value: "on"