-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_postgresql_server
- deprecate ssl_enforcement_enabled
and ssl_minimal_tls_version_enforced
no longer accpets TLSEnforcementDisabled
, TLS1_0
or TLS1_1
as a value in 5.0
#28247
base: main
Are you sure you want to change the base?
Conversation
… `ssl_minimal_tls_version_enforced` no longer accpets `TLSEnforcementDisabled`, `TLS1_0` or `TLS1_1` as a value
ValidateFunc: validation.StringInSlice(servers.PossibleValuesForMinimalTlsVersionEnum(), false), | ||
} | ||
resource.Schema["ssl_enforcement_enabled"] = &pluginsdk.Schema{ | ||
Deprecated: "The `ssl_enforcement_enabled` is deprecated as Azure services will require TLS1.2+ to connect.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecated: "The `ssl_enforcement_enabled` is deprecated as Azure services will require TLS1.2+ to connect.", | |
Deprecated: "The `ssl_enforcement_enabled` property is deprecated as Azure services will require TLS1.2+ to connect.", |
resource.Schema["ssl_enforcement_enabled"] = &pluginsdk.Schema{ | ||
Deprecated: "The `ssl_enforcement_enabled` is deprecated as Azure services will require TLS1.2+ to connect.", | ||
Type: pluginsdk.TypeBool, | ||
Required: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably wants to become Optional
so users can begin removing it from their configs
Required: true, | |
Optional: true, |
sslEnabledBlock := `` | ||
if !features.FivePointOhBeta() { | ||
sslEnabledBlock = `ssl_enforcement_enabled = true` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this property is deprecated, I think it's acceptable to have one test or template that still includes it (to check that it still works) but to remove it from all other test configurations.
Since we have it in the template I'd suggest removing it from this and all other test configurations below
sslEnabledBlock := `` | |
if !features.FivePointOhBeta() { | |
sslEnabledBlock = `ssl_enforcement_enabled = true` | |
} |
039e17d
to
1d7a869
Compare
Community Note
Description
As the announcement, update the documents and deprecate tls 1.0 and tls 1.1 in v5.0
Also, deprecate
ssl_enforcement_enabled
in 5.0 since it will always betrue
whenssl_minimal_tls_version_enforced
is set to1.2
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
4.0
5.0
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_postgresql_server
- deprecatessl_enforcement_enabled
andssl_minimal_tls_version_enforced
no longer accpetsTLSEnforcementDisabled
,TLS1_0
orTLS1_1
as a value in 5.0 [azurerm_postgresql_server
- deprecatessl_enforcement_enabled
andssl_minimal_tls_version_enforced
no longer accpetsTLSEnforcementDisabled
,TLS1_0
orTLS1_1
as a value in 5.0 #28247]This is a (please select all that apply):
Related Issue(s)
Note
If this PR changes meaningfully during the course of review please update the title and description as required.