Merged
Conversation
|
|
||
| ip_configuration { | ||
| require_ssl = true | ||
| require_ssl = false |
There was a problem hiding this comment.
Suggested change
| require_ssl = false | |
| require_ssl = true |
Ensure incoming connections to Cloud SQL database instances use SSL
Resource: google_sql_database_instance.main | ID: BC_GCP_GENERAL_5
Description
Cloud SQL is a fully managed relational database service for MySQL, PostgreSQL and SQL Server. It offers data encryption at rest and in transit, Private connectivity with VPC and user-controlled network access with firewall protection. Cloud SQL creates a server certificate automatically when a new instance is created.We recommend you enforce all connections to use SSL/TLS.
Benchmarks
- CIS GCP V1.1 6.4
likelymichael
approved these changes
Sep 1, 2022
Member
|
Looks like this is a part of the GCP CIS benchmark, so disabling this will show as non-compliant on that benchmark. How does the auth proxy work? Does it require special plugins to generate short lived credentials to the DB? How does a client application use this database if the auth proxy is enabled? How will it work for SaaS applications (like Retool) where we don't have access to the source code to change auth mechanisms? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I enabled this as part of Bridgecrew but it forces use to create and expose client certificates. We could add those to the artifact but since this is a private instance, we don't need that extra layer. Inside GCP the Cloud SQL Auth proxy is used to create and manage certs so the traffic is encrypted without us shipping certs. I tested this from Cloud Run and
truestill forces certs even though the auth proxy is in use.