mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-28 10:18:51 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user