@@ -9,14 +9,39 @@ module "frontdoor" {
99 Microsoft_BotManagerRuleSet = {
1010 type = " Microsoft_BotManagerRuleSet"
1111 version = " 1.0"
12- override = []
12+ }
13+ Microsoft_DefaultRuleSet = {
14+ type = " Microsoft_DefaultRuleSet"
15+ version = " 1.1"
16+ override = {
17+ XSS = {
18+ rule_group_name = " XSS"
19+ rule = {
20+ 941220 = {
21+ rule_id = " 941220"
22+ }
23+ 941221 = {
24+ action = " Log"
25+ enabled = true
26+ rule_id = " 941221"
27+ }
28+ }
29+ }
30+ SQLI = {
31+ rule_group_name = " SQLI"
32+ exclusion = {
33+ not_suspicious = {
34+ match_variable = " QueryStringArgNames"
35+ operator = " Equals"
36+ selector = " really_not_suspicious"
37+ }
38+ }
39+ }
40+ }
1341 }
1442 }
1543 custom_rule = {
16- ip_access = {
17- name = " iprestriction"
18- action = " Block"
19- enabled = true
44+ iprestriction = {
2045 priority = 0
2146 type = " MatchRule"
2247 match_conditions = {
@@ -84,6 +109,7 @@ module "frontdoor" {
84109 forwarding_configuration = {
85110 backend_pool_name = " kubernetes_cluster_controller"
86111 forwarding_protocol = " MatchRequest"
112+ cache_enabled = false
87113 }
88114 }
89115 kubernetes_cluster_controller = {
@@ -131,31 +157,32 @@ module "frontdoor" {
131157 }
132158 frontdoor_rules_engine = {
133159 derules = {
134- resource_group_name = " service-env-rg"
135160 frontdoor_name = module.frontdoor.frontdoor.env.name
161+ resource_group_name = " service-env-rg"
136162 routing_rule_name = " kubernetes_cluster_controller non-backend"
137- rules = {
138- entire = {
163+ rule = {
164+ redirectde = {
139165 priority = " 0"
140- match_processing_behavior = " Stop"
141166 action = {
142167 route_configuration_override = {
143168 custom_host = " domain-de"
144169 custom_path = " /"
145- redirect_protocol = " HttpsOnly"
146170 redirect_type = " PermanentRedirect"
147171 }
148172 }
149- match_conditions = [
150- {
151- match_value = [" domain-de domain-de/" ]
152- match_variable = " RequestUri"
153- operator = " Equal"
154- negate_condition = false
155- selector = " "
156- transforms = []
173+ match_condition = {
174+ header = {
175+ variable = " RequestHeader"
176+ selector = " accept-language"
177+ operator = " Contains"
178+ value = [" de" ]
157179 }
158- ]
180+ uri = {
181+ variable = " RequestUri"
182+ operator = " EndsWith"
183+ value = [" domain.com domain.com/" ]
184+ }
185+ }
159186 }
160187 }
161188 }
0 commit comments