From 9c570a5b0f9b5b34ccee99a06e2228a50f9d23d2 Mon Sep 17 00:00:00 2001 From: Sven Sauleau Date: Fri, 10 Feb 2023 10:27:43 +0000 Subject: [PATCH] remove ruleset ruleset are causing more issues than it's solving. Removing for now. --- backend/src/utils/parse.ts | 1 + tf/main.tf | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/backend/src/utils/parse.ts b/backend/src/utils/parse.ts index b5a99a0..34dfcd7 100644 --- a/backend/src/utils/parse.ts +++ b/backend/src/utils/parse.ts @@ -3,6 +3,7 @@ export type Handle = { domain: string | null } +// Parse a "handle" in the form: `[@] '@' ` export function parseHandle(query: string): Handle { // Remove the leading @, if there's one. if (query.startsWith('@')) { diff --git a/tf/main.tf b/tf/main.tf index a2a7dec..f5384da 100644 --- a/tf/main.tf +++ b/tf/main.tf @@ -170,21 +170,3 @@ resource "cloudflare_access_application" "wildebeest_access" { session_duration = "730h" auto_redirect_to_identity = false } - -resource "cloudflare_ruleset" "wildebeest_inbox" { - zone_id = trimspace(var.cloudflare_zone_id) - name = "Wildebeest" - description = "Ruleset for Wildebeest" - kind = "zone" - phase = "http_request_firewall_managed" - - rules { - action = "skip" - action_parameters { - phases = ["http_request_firewall_managed"] - } - expression = "(http.host eq \"${var.cloudflare_deploy_domain}\" and http.request.uri.path contains \"/ap/users/\" and http.request.uri.path contains \"inbox\")" - description = "Bypass firewall for Wildebeest Inbox" - enabled = true - } -}