Skip to content

Commit c19d86c

Browse files
committed
feat: add origin protection key enforcement for envoy in lds.supabase.yaml
1 parent de74b15 commit c19d86c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ansible/files/envoy_config/lds.supabase.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,27 @@ resources:
8282
name: ':path'
8383
string_match:
8484
contains: apikey=supabase_admin_key
85+
origin_protection_key_missing:
86+
permissions:
87+
- any: true
88+
principals:
89+
- not_id:
90+
or_ids:
91+
ids:
92+
- header:
93+
name: sb-opk
94+
present_match: true
95+
origin_protection_key_not_valid:
96+
permissions:
97+
- any: true
98+
principals:
99+
- not_id:
100+
or_ids:
101+
ids:
102+
- header:
103+
name: sb-opk
104+
string_match:
105+
exact: supabase_origin_protection_key
85106
- name: envoy.filters.http.lua
86107
typed_config:
87108
'@type': >-

0 commit comments

Comments
 (0)