Skip to content
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

gcp-sql-database-require-ssl requires setting removed require_ssl property #3505

Open
1 of 3 tasks
KamilaBorowska opened this issue Oct 30, 2024 · 0 comments
Open
1 of 3 tasks
Labels
bug Something isn't working

Comments

@KamilaBorowska
Copy link

Describe the bug
The terraform.gcp.security.gcp-sql-database-require-ssl.gcp-sql-database-require-ssl requires setting require_ssl. The problem with that is Google Terraform Provider 6.0 removed this flag: https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/version_6_upgrade#settingsip_configurationrequire_ssl-is-now-removed-in-601

To Reproduce

resource "google_sql_database_instance" "main" {
  name      = "some-example-name"
  database_version  = "POSTGRES_15"
  region      = "europe-west3"
  settings {
    tier = "db-f1-micro"
    ip_configuration {
      ssl_mode = "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"
    }
  }
}

Expected behavior
Semgrep should allow setting ssl_mode to TRUSTED_CLIENT_CERTIFICATE_REQUIRED.

Priority
How important is this to you?

  • P0: blocking me from making progress
  • P1: this will block me in the near future
  • P2: annoying but not blocking me

Additional Context
Add any other context about the problem here.

@KamilaBorowska KamilaBorowska added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant