Skip to content

Conversation

@jbrule
Copy link
Contributor

@jbrule jbrule commented Dec 16, 2025

CKV_GCP_6 - Added special handling for MSSQL SERVER database type that does not support TRUSTED_CLIENT_CERTIFICATE_REQUIRED

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

*The ssl_mode setting TRUSTED_CLIENT_CERTIFICATE_REQUIRED cannot be used when database_version is SQLSERVER (Microsoft SQL Server). See Google's documentation *

New/Edited policies (Delete if not relevant)

  • CKV_GCP_6

Description

*The ssl_mode setting TRUSTED_CLIENT_CERTIFICATE_REQUIRED cannot be used when database_version is SQLSERVER (Microsoft SQL Server). See Google's documentation *

Fix

This allows the following only when database_version is Microsoft SQLSERVER type.

...
  database_version="SQLSERVER_*"
  ip_configuration {
    ssl_mode = "ENCRYPTED_ONLY"
  }
...

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation -> Update bc-gcp-general-1.adoc hlxsites/prisma-cloud-docs#1305
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes

…t does not support TRUSTED_CLIENT_CERTIFICATE_REQUIRED
@jbrule jbrule deployed to scan-security December 16, 2025 23:26 — with GitHub Actions Active
jbrule added a commit to jbrule/prisma-cloud-docs that referenced this pull request Dec 18, 2025
Updating policy documentation to align with proposed policy change -> bridgecrewio/checkov#7405
@bo156
Copy link
Contributor

bo156 commented Dec 25, 2025

Thanks for the contribution @jbrule !
Can you please fix the failing tests so we can merge this?

@jbrule
Copy link
Contributor Author

jbrule commented Dec 25, 2025

Thanks for the contribution @jbrule ! Can you please fix the failing tests so we can merge this?

Done. Fixed lint findings 2af3acf

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.

3 participants