chore(portal): Do not allow signing up from legally-restricted jurisdictions (#7088)

Related to #6807

---------

Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
This commit is contained in:
Andrew Dryga
2024-11-06 16:40:20 -06:00
committed by GitHub
parent 7bd3d30878
commit 0a79cd5045

View File

@@ -65,6 +65,19 @@ resource "google_compute_security_policy" "default" {
}
}
rule {
description = "block sanctioned countries"
action = "deny(451)"
priority = "101"
match {
expr {
expression = "request.path.matches(\"/sign_up\") && origin.region_code in ('RU', 'BY', 'KP', 'IR', 'SY', 'CU', 'VE', 'XC', 'XD')"
}
}
}
rule {
description = "log all requests that match preconfigured sqli-v33-stable OWASP rule"
preview = true