[4.0] azurerm_application_gateway - upgrade API version to 2023-11-01#26776
[4.0] azurerm_application_gateway - upgrade API version to 2023-11-01#26776stephybun merged 5 commits intohashicorp:mainfrom
azurerm_application_gateway - upgrade API version to 2023-11-01#26776Conversation
…m into app_gateway_2023-11-01
stephybun
left a comment
There was a problem hiding this comment.
Thanks for sorting out this upgrade for 4.0 @teowa. Could you take a look at the comments I left in-line regarding the tests? I can see that you've updated the configs to ensure the tests pass, but I think with security defaults changing in this SDK upgrade the test cases should be updated to validate current security standards.
| ssl_policy { | ||
| policy_type = "Predefined" | ||
| policy_name = "AppGwSslPolicy20150501" | ||
| } |
There was a problem hiding this comment.
Can we update the check for this test instead to ensure the API is returning the documented default value AppGwSslPolicy20220101 is being returned
| ssl_policy { | |
| policy_type = "Predefined" | |
| policy_name = "AppGwSslPolicy20150501" | |
| } |
| ssl_policy { | ||
| policy_type = "Predefined" | ||
| policy_name = "AppGwSslPolicy20150501" | ||
| } |
|
|
||
| ssl_policy { | ||
| policy_type = "Custom" | ||
| min_protocol_version = "TLSv1_1" |
There was a problem hiding this comment.
The minimum protocol version default will now be TLSv1_2 so can we update the checks in the test instead of the config. It's a better practice for the tests to verify that current security standards/defaults are working in the API than to ensure outdated security defaults and practices still work.
…m into app_gateway_2023-11-01
|
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
context: #25844
https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-ssl-policy-overview#default-tls-policy
upgrade API version to
2023-11-01, there is breaking change on default SSL policy, so must be done in 4.0PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_application_gateway- upgrade API version to2023-11-01This is a (please select all that apply):
Related Issue(s)
Fixes #0000
Note
If this PR changes meaningfully during the course of review please update the title and description as required.