Skip to content

Commit

Permalink
chore: don't check auth for workflow-providing endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Apr 23, 2024
1 parent b77bd9a commit f3c5009
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proxy_auth_v2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ local uri = ngx.var.uri -- post-rewrite URI

if req_method == "GET" 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 == "/api/metadata/api/projects" or
req_uri_no_qp == "/api/metadata/api/public" or
req_uri_no_qp == "/api/metadata/api/public_overview" or
Expand Down

0 comments on commit f3c5009

Please sign in to comment.