From 75902b0dba94fc97692dcdfdaf9082e1505d1b52 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Wed, 7 Aug 2024 17:05:29 -0400 Subject: [PATCH] chore: add more public URLs for Katsu --- src/proxy_auth_v2.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/proxy_auth_v2.lua b/src/proxy_auth_v2.lua index bc21384..30bb4a6 100644 --- a/src/proxy_auth_v2.lua +++ b/src/proxy_auth_v2.lua @@ -65,7 +65,9 @@ if req_method == "GET" and ( req_uri_no_qp == "/api/metadata/api/public_overview" or req_uri_no_qp == "/api/metadata/api/public_search_fields" or req_uri_no_qp == "/api/metadata/api/public_dataset" or - req_uri_no_qp == "/api/metadata/api/public_rules" + req_uri_no_qp == "/api/metadata/api/public_rules" or + req_uri_no_qp == "/api/metadata/api/extra_properties_schema_types" or + req_uri_no_qp:sub(1, 26) == "/api/metadata/api/schemas/" ) then -- Clear possible Katsu authorization injections for old remote user middleware ngx.req.clear_header("X-User")