-
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
[Dependencies:] azurerm_cdn_frontdoor_rule
, azurerm_cdn_frontdoor_ruleset
and cdn_frontdoor_rule_actions
- upgrade resources to 2024-02-01
API to enable support for the JS Challenge field
#28308
base: main
Are you sure you want to change the base?
Conversation
azurerm_cdn_frontdoor_rule
, azurerm_cdn_frontdoor_ruleset
and cdn_frontdoor_rule_actions
- upgrade to resources to 2024-02-01
API to enable support for the JS Challenge fieldazurerm_cdn_frontdoor_rule
, azurerm_cdn_frontdoor_ruleset
and cdn_frontdoor_rule_actions
- upgrade resources to 2024-02-01
API to enable support for the JS Challenge field
…r-azurerm into deps/e_frontdoor_rules
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.
Thanks @WodansSon - Handful of fairly minor stuff to check if you could. Also, I can see you rant the CI tests, and it looks like there are some failures introduced if you can check those over?
Thanks!
internal/services/cdn/cdn_frontdoor_firewall_policy_resource.go
Outdated
Show resolved
Hide resolved
internal/services/cdn/cdn_frontdoor_firewall_policy_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/cdn/cdn_frontdoor_firewall_policy_resource_test.go
Outdated
Show resolved
Hide resolved
@@ -231,55 +232,56 @@ func validateCdnFrontDoorExpandConditionOperatorValues(operator string, matchVal | |||
return fmt.Errorf("%q is invalid: no 'operator' value has been set, got %q", m.ConfigName, operator) | |||
} | |||
|
|||
if operator == string(cdn.OperatorAny) && len(*matchValues) > 0 { | |||
// NOTE: There are now 14 different "Any" operators in the new API, however they are all the same so I am just hardcoding this here now... |
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.
Can you open an issue detailing this so it's tracked somewhere along with what we're planning to change it to if this is just for now?
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.
I don't believe an issue is required here, these fields were added due to the swagger issue opened by HashiCorp to allow the Pandora SDK to build the API correctly. Every condition
now has it's own Any
field (e.g., ClientPortOperatorAny
, CookiesOperatorAny
, HostNameOperatorAny
, etc.) So I believe hardcoding this value is acceptable here as this function is a general function that will be called by all conditions
. That said I added more context in the code comment to give historical reasons why the decision was made to hardcode this value.
internal/services/cdn/frontdoorruleactions/cdn_frontdoor_rule_actions.go
Outdated
Show resolved
Hide resolved
Co-authored-by: jackofallops <[email protected]>
…est.go Co-authored-by: jackofallops <[email protected]>
Community Note
Description
cdn_frontdoor_rule_actions
- upgrade resource to2024-09-01/rules
and2024-02-01/origins
API'sazurerm_cdn_frontdoor_rule
- upgrade resource to2024-09-01/rules
and2024-02-01/rulesets
API'sazurerm_cdn_frontdoor_ruleset
- upgrade resource to2024-02-01/rulesets
APIfront_door_validation_helpers
- update dependencies to use2024-09-01/rules
APIfront_door_route_https_redirect
- update dependencies to use2024-02-01/endpoints
APIazurerm_cdn_frontdoor_firewall_policy
- update dependencies to use2024-02-01/webapplicationfirewallpolicies
APIazurerm_cdn_frontdoor_firewall_policy
- exposeJSChallenge
as anaction
type for themanaged_rule.override.rule
blockPR 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.
ENHANCEMENTS:
cdn_frontdoor_rule_actions
- upgrade resource to2024-09-01/rules
and2024-02-01/origins
API'sfront_door_validation_helpers
update to use2024-09-01/rules
APIfront_door_route_https_redirect
update to use2024-02-01/endpoints
APIazurerm_cdn_frontdoor_rule
update to use2024-09-01/rules
and2024-02-01/rulesets
API'sazurerm_cdn_frontdoor_ruleset
update to use2024-02-01/rulesets
APIazurerm_cdn_frontdoor_firewall_policy
update to use2024-02-01/webapplicationfirewallpolicies
APIazurerm_cdn_frontdoor_firewall_policy
- exposeJSChallenge
as anaction
type for themanaged_rule.override.rule
blockThis is a (please select all that apply):
Related Issue(s)
Related PRs
Note
If this PR changes meaningfully during the course of review please update the title and description as required.