Skip to content

Commit

Permalink
chore!: remove Katsu auth exceptions
Browse files Browse the repository at this point in the history
no longer needed with authorized Katsu
  • Loading branch information
davidlougheed committed Dec 20, 2024
1 parent 4ef73ac commit 11113f3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/proxy_auth_v2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ if (req_method == "GET" or req_method == "OPTIONS") and (
uri == "/service-info" or -- any service-info endpoint; rewritten from original /api/.../service-info
uri == "/workflows" or -- any workflow-providing endpoint; rewritten from original /api/.../workflows
uri:sub(1, 11) == "/workflows/" or -- "
req_uri_no_qp:sub(1, 26) == "/api/metadata/api/projects" or
req_uri_no_qp:sub(1, 26) == "/api/metadata/api/datasets" or
req_uri_no_qp == "/api/metadata/api/public" or
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_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/" 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
Expand Down

0 comments on commit 11113f3

Please sign in to comment.