Skip to content

Commit 467cdde

Browse files
committed
add default-allow rule
1 parent 87cb853 commit 467cdde

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

infra/gcp/terraform/modules/oci-proxy/cloud-armor.tf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,20 @@ resource "google_compute_security_policy" "cloud-armor" {
7373
}
7474
}
7575
}
76+
77+
# you must have a default rule with max int32 priority
78+
# (IE applied last after every other rule)
79+
# this just allows traffic not caught by any other rule
80+
rule {
81+
action = "allow"
82+
priority = "2147483647"
83+
match {
84+
versioned_expr = "SRC_IPS_V1"
85+
config {
86+
src_ip_ranges = ["*"]
87+
}
88+
}
89+
description = "default rule"
90+
}
7691
}
7792

0 commit comments

Comments
 (0)