Skip to content

Commit cd20ea9

Browse files
modular-magicianc2thorn
authored andcommitted
Remove require_ssl (#11549) (#8043)
[upstream:dd672815b06fa81f2baca8345570a6319e41393f] Signed-off-by: Modular Magician <[email protected]>
1 parent 61bf4c3 commit cd20ea9

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

.changelog/11549.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:breaking-change
2+
sql: removed `settings.ip_configuration.require_ssl` from `google_sql_database_instance` in favor of `settings.ip_configuration.ssl_mode`. This field was intended to be removed in 6.0.0.
3+
```

google-beta/services/sql/resource_sql_database_instance.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,6 @@ is set to true. Defaults to ZONAL.`,
443443
AtLeastOneOf: ipConfigurationKeys,
444444
Description: `Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.`,
445445
},
446-
"require_ssl": {
447-
Type: schema.TypeBool,
448-
Optional: true,
449-
AtLeastOneOf: ipConfigurationKeys,
450-
Description: `Whether SSL connections over IP are enforced or not. To change this field, also set the corresponding value in ssl_mode if it has been set too.`,
451-
Deprecated: "`require_ssl` will be fully deprecated in a future major release. For now, please use `ssl_mode` with a compatible `require_ssl` value instead.",
452-
},
453446
"private_network": {
454447
Type: schema.TypeString,
455448
Optional: true,
@@ -498,7 +491,7 @@ is set to true. Defaults to ZONAL.`,
498491
Optional: true,
499492
Computed: true,
500493
ValidateFunc: validation.StringInSlice([]string{"ALLOW_UNENCRYPTED_AND_ENCRYPTED", "ENCRYPTED_ONLY", "TRUSTED_CLIENT_CERTIFICATE_REQUIRED"}, false),
501-
Description: `Specify how SSL connection should be enforced in DB connections. This field provides more SSL enforcement options compared to require_ssl. To change this field, also set the correspoding value in require_ssl until next major release.`,
494+
Description: `Specify how SSL connection should be enforced in DB connections.`,
502495
AtLeastOneOf: ipConfigurationKeys,
503496
},
504497
"server_ca_mode": {
@@ -2271,11 +2264,6 @@ func flattenIpConfiguration(ipConfiguration *sqladmin.IpConfiguration, d *schema
22712264
data["psc_config"] = flattenPscConfigs(ipConfiguration.PscConfig)
22722265
}
22732266

2274-
// We store the ssl_mode value only if the customer already uses `ssl_mode`.
2275-
if _, ok := d.GetOk("settings.0.ip_configuration.0.ssl_mode"); ok {
2276-
data["ssl_mode"] = ipConfiguration.SslMode
2277-
}
2278-
22792267
return []map[string]interface{}{data}
22802268
}
22812269

website/docs/guides/version_6_upgrade.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@ Support for the deletionProtectionEnabled field has been added. Redis clusters w
369369

370370
## Resource: `google_sql_database_instance`
371371

372-
### `settings.ip_configuration.require_ssl` is now removed
372+
### `settings.ip_configuration.require_ssl` is now removed (in 6.0.1)
373373

374-
Removed in favor of field `settings.ip_configuration.ssl_mode`.
374+
Removed in favor of field `settings.ip_configuration.ssl_mode`. `settings.ip_configuration.require_ssl` was intended to be removed in 6.0.0, but is removed in 6.0.1 instead.
375375

376376
## Resource: `google_storage_bucket`
377377

0 commit comments

Comments
 (0)