Skip to content

Commit

Permalink
KNOX-3013 - Knox redirecting Yarn Node Manager URLs to http instead o…
Browse files Browse the repository at this point in the history
…f https (#874)

- YARNUI/yarn/outbound/node3 rule rewrites the https schemes to http
- To fix the issue we skip this rule in case if the schema is https
  • Loading branch information
K0K0V0K authored Mar 6, 2024
1 parent 1b8fe40 commit 5088d42
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,6 @@
</content>
</filter>

<filter name="YARNUI/yarn/outbound/filter/nodes">
<content type="*/html">
<apply path="(?!http:)//[^/':,]+:[\d]+" rule="YARNUI/yarn/outbound/node3"/>
</content>
</filter>


<rule dir="OUT" name="YARNUI/yarn/outbound/apps/app">
<rewrite template="{$frontend[url]}/yarn/cluster/app"/>
</rule>
Expand Down Expand Up @@ -279,10 +272,6 @@ https://knox_host:knox_port/gateway/yarnui/yarn/nodemanager/node/containerlogs/c
<match pattern="{scheme}://{host}:{port}"/>
<rewrite template="{$frontend[url]}/yarn/nodemanager/node?{scheme}?{host}?{port}"/>
</rule>
<rule dir="OUT" name="YARNUI/yarn/outbound/node3">
<match pattern="//{host}:{port}"/>
<rewrite template="{$frontend[url]}/yarn/nodemanager/node?scheme=http?{host}?{port}"/>
</rule>

<rule dir="OUT" name="YARNUI/yarn/outbound/node/containerlogs2" pattern="*://*:*/node/containerlogs/{**}?{**}">
<match pattern="{scheme}://{host}:{port}/node/containerlogs/{**}?{**}"/>
Expand Down

0 comments on commit 5088d42

Please sign in to comment.