Skip to content

Commit

Permalink
Allow /v1/node to be routed by gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaho12 authored and mosabua committed Sep 6, 2023
1 parent d31bf70 commit f3ca83c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class QueryIdCachingProxyHandler extends ProxyHandler {
public static final String V1_STATEMENT_PATH = "/v1/statement";
public static final String V1_QUERY_PATH = "/v1/query";
public static final String V1_INFO_PATH = "/v1/info";
public static final String V1_NODE_PATH = "/v1/node";
public static final String UI_API_STATS_PATH = "/ui/api/stats";
public static final String UI_LOGIN_PATH = "/ui/login";
public static final String UI_API_QUEUED_LIST_PATH = "/ui/api/query?state=QUEUED";
Expand Down Expand Up @@ -215,6 +216,7 @@ private boolean isPathWhiteListed(String path) {
|| path.startsWith(V1_QUERY_PATH)
|| path.startsWith(TRINO_UI_PATH)
|| path.startsWith(V1_INFO_PATH)
|| path.startsWith(V1_NODE_PATH)
|| path.startsWith(UI_API_STATS_PATH)
|| path.startsWith(OAUTH_PATH);
}
Expand Down

0 comments on commit f3ca83c

Please sign in to comment.