Skip to content

Commit f86097c

Browse files
Do not apply the regular WAF rules for /jupyter links
1 parent f8548c8 commit f86097c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

obp_private_alb_config/private-alb-waf.tf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,36 @@ resource "aws_wafv2_web_acl" "basic_protection" {
6565
}
6666
}
6767

68+
rule {
69+
name = "obi-allow-all-jupyterhub"
70+
priority = 6
71+
72+
action {
73+
allow {}
74+
}
75+
76+
statement {
77+
byte_match_statement {
78+
field_to_match {
79+
uri_path {}
80+
}
81+
positional_constraint = "STARTS_WITH"
82+
search_string = "/jupyterhub"
83+
text_transformation {
84+
priority = 0
85+
type = "NONE"
86+
}
87+
}
88+
}
89+
90+
visibility_config {
91+
cloudwatch_metrics_enabled = false
92+
metric_name = "obi_allow-jupyterhub-traffic"
93+
sampled_requests_enabled = false
94+
}
95+
}
96+
97+
6898
rule {
6999
name = "aws-common-ruleset"
70100
priority = 10

0 commit comments

Comments
 (0)