Skip to content

feat: add support for server_ca_mode and custom SANs (#714) #736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hostekevin
Copy link

Add support for configuring server_ca_mode and server_ca_pool in the PostgreSQL module's IP configuration. This enables custom certificate authority management for CloudSQL instances.

Also add support for custom Subject Alternative Names (SANs) to allow custom DNS names to be included in the server certificate.

This fixes an issue with cloud-sql-proxy version after 2.15.2 that fails to verify certificates when using custom domain names, as described in: GoogleCloudPlatform/cloud-sql-proxy#2425

Increase minimum Google provider version to 6.31.0, as the custom_subject_alternative_names field was introduced in this version: https://github.com/hashicorp/terraform-provider-google/releases/tag/v6.31.0

@hostekevin hostekevin requested review from ayushmjain, imrannayer, q2w and a team as code owners June 10, 2025 07:59
Copy link

google-cla bot commented Jun 10, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

…e-modules#714)

Add support for configuring server_ca_mode and server_ca_pool in the
PostgreSQL module's IP configuration. This enables custom certificate
authority management for CloudSQL instances.

Also add support for custom Subject Alternative Names (SANs) to allow
custom DNS names to be included in the server certificate.

This fixes an issue with cloud-sql-proxy version after 2.15.2 that fails
to verify certificates when using custom domain names, as described in:
GoogleCloudPlatform/cloud-sql-proxy#2425

Increase minimum Google provider version to 6.31.0, as the
custom_subject_alternative_names field was introduced in this version:
https://github.com/hashicorp/terraform-provider-google/releases/tag/v6.31.0
@imrannayer
Copy link
Collaborator

/gcbrun

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