From 9445e42dee770571f47464a0100bb4645499a069 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Mon, 19 Aug 2024 15:28:25 -0400 Subject: [PATCH] chore: allow metadata/gohan data types requests through --- 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 1f6e964..e26b4ba 100644 --- a/src/proxy_auth_v2.lua +++ b/src/proxy_auth_v2.lua @@ -67,7 +67,9 @@ if (req_method == "GET" or req_method == "OPTIONS") and ( req_uri_no_qp == "/api/metadata/api/public_dataset" or 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/" + req_uri_no_qp:sub(1, 26) == "/api/metadata/api/schemas/" or + req_uri_no_qp:sub(1, 24) == "/api/metadata/data-types" or + req_uri_no_qp:sub(1, 24) == "/api/gohan/data-types" ) then -- Clear possible Katsu authorization injections for old remote user middleware ngx.req.clear_header("X-User")