Skip to content

feat: update envoy lds config with auth jwks, oidc URLs, strip sb-opk header [15.6] #1296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion ansible/files/envoy_config/lds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,13 @@ resources:
type.googleapis.com/envoy.extensions.filters.http.rbac.v3.RBACPerRoute
- match:
safe_regex:
google_re2:
max_program_size: 150
regex: >-
/auth/v1/(verify|callback|authorize|sso/saml/(acs|metadata|slo))
/auth/v1/(verify|callback|authorize|sso/saml/(acs|metadata|slo)|\.well-known/(openid-configuration|jwks\.json))
request_headers_to_remove:
- apikey
- sb-opk
route:
cluster: gotrue
regex_rewrite:
Expand All @@ -269,6 +274,9 @@ resources:
typed_per_filter_config: *ref_0
- match:
prefix: /auth/v1/
request_headers_to_remove:
- apikey
- sb-opk
route:
cluster: gotrue
prefix_rewrite: /
Expand All @@ -280,6 +288,7 @@ resources:
present_match: true
request_headers_to_remove:
- apikey
- sb-opk
route:
cluster: postgrest
prefix_rewrite: /
Expand All @@ -293,6 +302,7 @@ resources:
prefix: /rest/v1/
request_headers_to_remove:
- apikey
- sb-opk
route:
cluster: postgrest
prefix_rewrite: /
Expand All @@ -309,6 +319,7 @@ resources:
present_match: true
request_headers_to_remove:
- apikey
- sb-opk
route:
cluster: postgrest_admin
prefix_rewrite: /
Expand All @@ -321,6 +332,7 @@ resources:
prefix: /rest-admin/v1/
request_headers_to_remove:
- apikey
- sb-opk
route:
cluster: postgrest_admin
prefix_rewrite: /
Expand All @@ -330,18 +342,25 @@ resources:
header:
key: Content-Profile
value: graphql_public
request_headers_to_remove:
- apikey
- sb-opk
route:
cluster: postgrest
prefix_rewrite: /rpc/graphql
timeout: 125s
- match:
prefix: /admin/v1/
request_headers_to_remove:
- sb-opk
route:
cluster: admin_api
prefix_rewrite: /
timeout: 600s
- match:
prefix: /customer/v1/privileged/
request_headers_to_remove:
- sb-opk
route:
cluster: admin_api
prefix_rewrite: /privileged/
Expand All @@ -365,6 +384,8 @@ resources:
treat_missing_header_as_empty: true
- match:
prefix: /metrics/aggregated
request_headers_to_remove:
- sb-opk
route:
cluster: admin_api
prefix_rewrite: /supabase-internal/metrics
Expand Down
2 changes: 1 addition & 1 deletion common-nix.vars.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
postgres-version = "15.6.1.137"
postgres-version = "15.6.1.138"
Loading