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

pzampino 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 6fe6a437c KNOX-3068 Iceberg REST Catalog service definition (#937)
6fe6a437c is described below

commit 6fe6a437c07ecd4ac3d34c51b118336db8b5c3ac
Author: Phil Zampino <[email protected]>
AuthorDate: Tue Oct 8 15:56:10 2024 -0400

    KNOX-3068 Iceberg REST Catalog service definition (#937)
---
 .../services/iceberg-rest/0.0.1/rewrite.xml        | 22 ++++++++++++
 .../services/iceberg-rest/0.0.1/service.xml        | 39 ++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git 
a/gateway-service-definitions/src/main/resources/services/iceberg-rest/0.0.1/rewrite.xml
 
b/gateway-service-definitions/src/main/resources/services/iceberg-rest/0.0.1/rewrite.xml
new file mode 100644
index 000000000..67975a177
--- /dev/null
+++ 
b/gateway-service-definitions/src/main/resources/services/iceberg-rest/0.0.1/rewrite.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+   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="ICEBERG-REST/iceberg-rest/inbound" 
pattern="*://*:*/**/iceberg-rest/{path=**}?{**}">
+        <rewrite template="{$serviceUrl[ICEBERG-REST]}/{path=**}?{**}"/>
+    </rule>
+</rules>
diff --git 
a/gateway-service-definitions/src/main/resources/services/iceberg-rest/0.0.1/service.xml
 
b/gateway-service-definitions/src/main/resources/services/iceberg-rest/0.0.1/service.xml
new file mode 100644
index 000000000..f10ea0db3
--- /dev/null
+++ 
b/gateway-service-definitions/src/main/resources/services/iceberg-rest/0.0.1/service.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+   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="ICEBERG-REST" name="iceberg-rest" version="0.0.1">
+    <metadata>
+        <type>API</type>
+        <context>/iceberg-rest</context>
+        <shortDesc>ICEBERG-REST</shortDesc>
+        <description>Apache Iceberg REST Catalog API</description>
+    </metadata>
+
+    <routes>
+        <route path="/iceberg-rest/**"/>
+    </routes>
+    <dispatch 
classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch">
+        <param>
+            <name>shouldIncludePrincipalAndGroups</name>
+            <value>true</value>
+        </param>
+        <param>
+            <name>actorIdHeaderName</name>
+            <value>x-actor-username</value>
+        </param>
+    </dispatch>
+</service>

Reply via email to