You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(misconf): skip AZU-0021 for PostgreSQL flexible servers 18 and later #11733
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.scan/misconfigurationIssues relating to misconfiguration scanning
Azure Database for PostgreSQL flexible servers have the connection_throttle.enable parameter only in PostgreSQL 11 to 17. Version 18 does not have it, and Azure deprecated its built-in policy for this parameter. AZU-0021 does not know the server version, so it fails for every flexible server on version 18 or later, and no configuration can fix it.
FAIL: AZU-0021 (MEDIUM): Database server is not configured to throttle connections.
Trivy should read the server version and skip AZU-0021 for version 18 and later.
The Terraform adapter reads version of azurerm_postgresql_flexible_server.
The ARM adapter reads properties.version of Microsoft.DBforPostgreSQL/flexibleServers.
AZU-0021 skips servers with version 18 or later. When the version is not set, the check works as now, because the version then comes from the source server or the existing server in Azure.
Taking this. I'll update the Terraform and ARM adapters to expose the PostgreSQL flexible-server version and make AZU-0021 skip version 18 and later, with regression coverage for both source types.
Before coding, I found #11717 open, adding ARM support for PostgreSQL/MySQL flexible servers. The ARM part of this issue depends on that adapter work. I'll hold this until #11717 lands rather than duplicating it; the Terraform side can follow once the adapter shape is settled.
good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.scan/misconfigurationIssues relating to misconfiguration scanning
Activity
socrabs151 commentedon Nov 24, 2026
Taking this. I'll update the Terraform and ARM adapters to expose the PostgreSQL flexible-server version and make AZU-0021 skip version 18 and later, with regression coverage for both source types.
socrabs151 commentedon Nov 24, 2026
Before coding, I found #11717 open, adding ARM support for PostgreSQL/MySQL flexible servers. The ARM part of this issue depends on that adapter work. I'll hold this until #11717 lands rather than duplicating it; the Terraform side can follow once the adapter shape is settled.