Skip to content

feat(misconf): read version of azurerm_postgresql_flexible_server - #11781

Open
bryanwahyu wants to merge 1 commit into
aquasecurity:mainfrom
bryanwahyu:fix/azu-0021-postgres-version
Open

bryanwahyu wants to merge 1 commit into
aquasecurity:mainfrom
bryanwahyu:fix/azu-0021-postgres-version

Conversation

@bryanwahyu

@bryanwahyu bryanwahyu commented Nov 28, 2026 •

Copy link
Copy Markdown

Description

Adds Version to PostgreSQLServer and reads it from version of azurerm_postgresql_flexible_server. AZU-0021 can then skip flexible servers on PostgreSQL 18 and later, which do not have connection_throttle.enable.

When version is not set, the value is empty and AZU-0021 works as before.

This PR covers the Terraform side only. The ARM side depends on #11717, which adds the ARM flexible server adapter, so it can follow once that lands.

The check change is in aquasecurity/trivy-checks (linked below). It reads the field with object.get, so it does not need this PR to be released first.

Before / After

Built from this branch, with the check from the trivy-checks PR loaded as a custom check next to the embedded one:

fixture  embedded AZU-0021  changed AZU-0021
pg17     FAIL               FAIL
pg18     FAIL               PASS
unset    FAIL               FAIL

Related issues

Related PRs

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

AZU-0021 needs the server version to skip PostgreSQL 18 and later,
which no longer have the connection_throttle.enable parameter.
@CLAassistant

CLAassistant commented Nov 28, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants