You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by sm...@apache.org on 2024/03/06 09:27:25 UTC

(knox) branch master updated: KNOX-3013 - Knox redirecting Yarn Node Manager URLs to http instead of https (#874)

This is an automated email from the ASF dual-hosted git repository.

smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new 5088d423a KNOX-3013 - Knox redirecting Yarn Node Manager URLs to http instead of https (#874)
5088d423a is described below

commit 5088d423a512b7bd98411e4b02071e3afc827802
Author: K0K0V0K <10...@users.noreply.github.com>
AuthorDate: Wed Mar 6 10:27:20 2024 +0100

    KNOX-3013 - Knox redirecting Yarn Node Manager URLs to http instead of 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
---
 .../src/main/resources/services/yarnui/2.7.0/rewrite.xml      | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
index e5faf1eb9..55e83f6a3 100644
--- a/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/yarnui/2.7.0/rewrite.xml
@@ -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>
@@ -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/{**}?{**}"/>