This is an automated email from the ASF dual-hosted git repository.
more 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 163cacc07 KNOX-3045 - Adding the most recent service definitions for
Ranger (#920)
163cacc07 is described below
commit 163cacc074b340734518c18d04f7c2f748c5a704
Author: bonampak <[email protected]>
AuthorDate: Tue Jul 30 16:31:23 2024 +0200
KNOX-3045 - Adding the most recent service definitions for Ranger (#920)
---
.../resources/services/ranger/2.3.0/rewrite.xml | 52 ++++++++++++++++++++++
.../resources/services/ranger/2.3.0/service.xml | 47 +++++++++++++++++++
2 files changed, 99 insertions(+)
diff --git
a/gateway-service-definitions/src/main/resources/services/ranger/2.3.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/ranger/2.3.0/rewrite.xml
new file mode 100644
index 000000000..c3bbc1f07
--- /dev/null
+++
b/gateway-service-definitions/src/main/resources/services/ranger/2.3.0/rewrite.xml
@@ -0,0 +1,52 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<rules>
+ <rule dir="IN" name="RANGER/ranger/inbound/public"
pattern="*://*:*/**/ranger/service/public/{path=**}?{**}">
+ <rewrite
template="{$serviceUrl[RANGER]}/service/public/{path=**}?{**}"/>
+ </rule>
+ <rule dir="IN" name="RANGER/ranger/inbound/plugins"
pattern="*://*:*/**/ranger/service/plugins/{path=**}?{**}">
+ <rewrite
template="{$serviceUrl[RANGER]}/service/plugins/{path=**}?{**}"/>
+ </rule>
+ <rule dir="IN" name="RANGER/ranger/inbound/xusers/path"
pattern="*://*:*/**/ranger/service/xusers/{path=**}?{**}">
+ <rewrite
template="{$serviceUrl[RANGER]}/service/xusers/{path=**}?{**}"/>
+ </rule>
+ <rule dir="IN" name="RANGER/ranger/inbound/assets/path"
pattern="*://*:*/**/ranger/service/assets/{path=**}?{**}">
+ <rewrite
template="{$serviceUrl[RANGER]}/service/assets/{path=**}?{**}"/>
+ </rule>
+ <rule dir="IN" name="RANGER/ranger/inbound/healthcheck"
pattern="*://*:*/**/ranger">
+ <rewrite template="{$serviceUrl[RANGER]}"/>
+ </rule>
+ <!-- Ranger Admin metrics -->
+ <rule dir="IN" name="RANGER/ranger/inbound/metrics"
pattern="*://*:*/**/ranger/service/metrics/{path=**}?{**}">
+ <rewrite
template="{$serviceUrl[RANGER]}/service/metrics/{path=**}?{**}"/>
+ </rule>
+
+ <!-- Ranger Admin Tags -->
+ <rule dir="IN" name="RANGER/ranger/inbound/tags/path"
pattern="*://*:*/**/ranger/service/tags/{path=**}?{**}">
+ <rewrite template="{$serviceUrl[RANGER]}/service/tags/{path=**}?{**}"/>
+ </rule>
+
+ <!-- Ranger Admin Audits -->
+ <rule dir="IN" name="RANGER/ranger/inbound/xaudit/path"
pattern="*://*:*/**/ranger/service/xaudit/{path=**}?{**}">
+ <rewrite
template="{$serviceUrl[RANGER]}/service/xaudit/{path=**}?{**}"/>
+ </rule>
+
+ <!-- Ranger Admin Roles -->
+ <rule dir="IN" name="RANGER/ranger/inbound/roles/path"
pattern="*://*:*/**/ranger/service/roles/{path=**}?{**}">
+ <rewrite
template="{$serviceUrl[RANGER]}/service/roles/{path=**}?{**}"/>
+ </rule>
+</rules>
diff --git
a/gateway-service-definitions/src/main/resources/services/ranger/2.3.0/service.xml
b/gateway-service-definitions/src/main/resources/services/ranger/2.3.0/service.xml
new file mode 100644
index 000000000..08d9f5298
--- /dev/null
+++
b/gateway-service-definitions/src/main/resources/services/ranger/2.3.0/service.xml
@@ -0,0 +1,47 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<service role="RANGER" name="ranger" version="2.3.0">
+ <metadata>
+ <type>API</type>
+ <context>/ranger</context>
+ <shortDesc>Ranger Admin REST API</shortDesc>
+ <description>Apache Ranger is a framework to enable, monitor and
manage comprehensive data security across the Hadoop platform.
+ Apache Ranger currently provides a centralized security
adminstration, fine grain access control and detailed auditing for user access
within Apache Hadoop, Apache Hive, Apache HBase and other Apache
components</description>
+ </metadata>
+ <routes>
+ <route path="/ranger/service/public/**"/>
+ <route path="/ranger/service/plugins/**"/>
+ <route path="/ranger/service/xusers/**"/>
+ <route path="/ranger/service/assets/**"/>
+ <route path="/ranger/service/metrics/**"/>
+ <route path="/ranger/service/tags/**"/>
+ <route path="/ranger/service/xaudit/**"/>
+ <route path="/ranger/service/roles/**"/>
+ <route path="/ranger"/>
+ </routes>
+ <dispatch classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch"
+
ha-classname="org.apache.knox.gateway.ha.dispatch.ConfigurableHADispatch">
+ <param>
+ <name>responseExcludeHeaders</name>
+ <value>WWW-AUTHENTICATE</value>
+ </param>
+ <param>
+ <name>addExpect100Continue</name>
+ <value>true</value>
+ </param>
+ </dispatch>
+</service>