Skip to content

Commit

Permalink
feat: add origin protection key enforcement for envoy in `lds.supabas…
Browse files Browse the repository at this point in the history
…e.yaml`
  • Loading branch information
hf committed Nov 20, 2024
1 parent 2d9d454 commit b13dd06
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ansible/files/envoy_config/lds.supabase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,27 @@ resources:
name: ':path'
string_match:
contains: apikey=supabase_admin_key
origin_protection_key_missing:
permissions:
- any: true
principals:
- not_id:
or_ids:
ids:
- header:
name: sb-opk
present_match: true
origin_protection_key_not_valid:
permissions:
- any: true
principals:
- not_id:
or_ids:
ids:
- header:
name: sb-opk
string_match:
exact: supabase_origin_protection_key
- name: envoy.filters.http.lua
typed_config:
'@type': >-
Expand Down

0 comments on commit b13dd06

Please sign in to comment.