Skip to content

Commit 884e1c4

Browse files
committed
fix: correct reference to Envoy Lua filters
Not sure why the tests at https://github.com/supabase/postgres/blob/ab7f879ba4bfacb4d0568c42f6d14c11826c8a03/testinfra/test_ami_nix.py#L343 didn't catch this, but can investigate that seperately.
1 parent ab7f879 commit 884e1c4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

ansible/files/envoy_config/lds.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ resources:
9393
local path = request_handle:headers():get(":path")
9494
request_handle
9595
:headers()
96-
:replace(":path", path:gsub("&=[^&]*", ""):gsub("?=[^&]*$", ""):gsub("?=[^&]*&", "?"))
97-
:replace(":path", path:gsub("&apikey=[^&]*", ""):gsub("?apikey=[^&]*$", ""):gsub("?apikey=[^&]*&", "?"))
96+
:replace(":path", path:gsub("&=[^&]*", ""):gsub("?=[^&]*$", ""):gsub("?=[^&]*&", "?"):gsub("&apikey=[^&]*", ""):gsub("?apikey=[^&]*$", ""):gsub("?apikey=[^&]*&", "?"))
9897
end
9998
remove_empty_key_query_parameters:
10099
inline_string: |-
@@ -103,7 +102,6 @@ resources:
103102
request_handle
104103
:headers()
105104
:replace(":path", path:gsub("&=[^&]*", ""):gsub("?=[^&]*$", ""):gsub("?=[^&]*&", "?"))
106-
107105
end
108106
- name: envoy.filters.http.compressor.brotli
109107
typed_config:
@@ -290,7 +288,7 @@ resources:
290288
envoy.filters.http.lua:
291289
'@type': >-
292290
type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute
293-
name: remove_apikey_and_empty_key_query_parameter
291+
name: remove_apikey_and_empty_key_query_parameters
294292
- match:
295293
prefix: /rest/v1/
296294
request_headers_to_remove:
@@ -303,7 +301,7 @@ resources:
303301
envoy.filters.http.lua:
304302
'@type': >-
305303
type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute
306-
name: remove_empty_key_query_parameter
304+
name: remove_empty_key_query_parameters
307305
- match:
308306
prefix: /rest-admin/v1/
309307
query_parameters:
@@ -414,3 +412,4 @@ resources:
414412
filename: /etc/envoy/fullChain.pem
415413
private_key:
416414
filename: /etc/envoy/privKey.pem
415+

common-nix.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.6.1.120"
1+
postgres-version = "15.6.1.121"

0 commit comments

Comments
 (0)