DFE-Digital / terraform-azurerm-front-door-app-gateway-waf

Deploy a WAF Policy against Azure Front Door or Application Gateway
MIT License
1 stars 3 forks source link

feat: Add url path redirect rules #99

Closed katie-gardner closed 2 weeks ago

katie-gardner commented 4 weeks ago

Overview

The current redirect rules are only for host redirects, and don't support rerouting based on specific url path. To avoid an impact on any existing usage of the rule set, this adds another rule set for url redirection with all possible parameters added as configurable options.

Other finding

This also fixes a small bug with the cdn frontdoor route: with redirects specified the tf failed to apply with an error in the rule set ids The 'true' value is string, but the 'false' value is tuple. The redirect id just needed to be in a list.