From 02b829852ce4eb9945d611c92e266813560fe6c2 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sun, 11 May 2025 20:24:35 -0600 Subject: chore: tidy up envoy path matchers --- envoy.yml | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/envoy.yml b/envoy.yml index da0e46a..148e895 100644 --- a/envoy.yml +++ b/envoy.yml @@ -97,26 +97,8 @@ static_resources: forward_bearer_token: true pass_through_matcher: - name: ":path" - string_match: - prefix: "/.well-known/" # temporary - - name: ":path" - string_match: - prefix: "/oauth/" # temporary - - name: ":path" - string_match: - suffix: ".html" - - name: ":path" - string_match: - suffix: ".ico" - - name: ":path" - string_match: - suffix: ".png" - - name: ":path" - string_match: - suffix: ".css" - - name: ":path" - string_match: - suffix: ".js" + safe_regex_match: + regex: .*\\.(css|js|png|html|ico)$ - name: ":path" string_match: exact: "/health" @@ -129,12 +111,6 @@ static_resources: - name: ":path" string_match: exact: "/dashboard/nav" - - name: ":path" - string_match: - prefix: "/session/" # temporary - - name: ":path" - string_match: - prefix: "/dashboard" # temporary redirect_path_matcher: path: exact: /callback @@ -175,17 +151,6 @@ static_resources: - name: local domains: ["*"] routes: - - match: - prefix: "/.well-known/" # temporary - route: - cluster: oidc - timeout: 5s - auto_host_rewrite: true - - match: - prefix: "/oauth/" # temporary - route: - cluster: oidc - timeout: 5s - match: prefix: "/" route: -- cgit v1.2.3