Skip to content

fix(query): updated "SQL DB Instance With SSL Disabled" Terraform query to handle 'require_ssl' field deprecation #8029

Open
cx-andre-pereira wants to merge 7 commits intoCheckmarx:masterfrom
cx-andre-pereira:AST-144037_Fix_SQL_DB_Instance_With_SSL_Disabled--Terraform
Open

fix(query): updated "SQL DB Instance With SSL Disabled" Terraform query to handle 'require_ssl' field deprecation #8029
cx-andre-pereira wants to merge 7 commits intoCheckmarx:masterfrom
cx-andre-pereira:AST-144037_Fix_SQL_DB_Instance_With_SSL_Disabled--Terraform

Conversation

@cx-andre-pereira
Copy link
Copy Markdown
Contributor

@cx-andre-pereira cx-andre-pereira commented Apr 7, 2026

Closes #7263

Reason for Proposed Changes

  • As stated in the attached issue, currently, the "SQL DB Instance With SSL Disabled" query will flag valid negative samples since it has not been updated to check for the ssl_mode, and instead checks for the deprecated require_ssl field. (deprecation notice)

Proposed Changes

I submit this contribution under the Apache-2.0 license.

…eld, support for all 'ssl_mode' field values, new tests and metadata Url updated
@cx-andre-pereira cx-andre-pereira marked this pull request as ready for review April 7, 2026 15:58
@cx-andre-pereira cx-andre-pereira requested a review from a team as a code owner April 7, 2026 15:58
Copy link
Copy Markdown
Contributor

@cx-artur-ribeiro cx-artur-ribeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good job André.

…bases (do not support 'TRUSTED_CLIENT_CERTIFICATE_REQUIRED' value
Copy link
Copy Markdown
Contributor

@cx-artur-ribeiro cx-artur-ribeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

bug(terraform): false positive for SQLDatabaseSSLDisabled in google terraform provider >=6.0.1

2 participants