This is an automated email from the ASF dual-hosted git repository.
krisden pushed a commit to branch v1.3.0
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/v1.3.0 by this push:
new ff61dae KNOX-1918 - Atlas API - prevent global HDFS rules from
triggering (#111)
ff61dae is described below
commit ff61dae4d30c0cb828eaaa73ff01e7e9f6128d61
Author: Kevin Risden <[email protected]>
AuthorDate: Tue Jul 9 09:48:06 2019 -0400
KNOX-1918 - Atlas API - prevent global HDFS rules from triggering (#111)
Signed-off-by: Kevin Risden <[email protected]>
---
.../src/main/resources/services/atlas-api/0.1.2.0/rewrite.xml | 6 ++++--
.../src/main/resources/services/atlas-api/0.8.0/rewrite.xml | 8 +++++---
.../src/main/resources/services/atlas-api/2.0.0/rewrite.xml | 4 ++++
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git
a/gateway-service-definitions/src/main/resources/services/atlas-api/0.1.2.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/atlas-api/0.1.2.0/rewrite.xml
index 291b7d0..3f87e9e 100644
---
a/gateway-service-definitions/src/main/resources/services/atlas-api/0.1.2.0/rewrite.xml
+++
b/gateway-service-definitions/src/main/resources/services/atlas-api/0.1.2.0/rewrite.xml
@@ -14,9 +14,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-
<rules>
+ <!-- KNOX-1918 prevent global HDFS rules from triggering -->
+ <rule dir="OUT" name="ATLAS-API/atlas/outbound"
pattern="hdfs://{host}/{path=**}?{**}">
+ <rewrite template="hdfs://{host}/{path=**}?{**}"/>
+ </rule>
<rule dir="IN" name="ATLAS-API/atlas/inbound"
pattern="*://*:*/**/atlas/api/{path=**}?{**}">
<rewrite template="{$serviceUrl[ATLAS-API]}/api/{path=**}?{**}"/>
</rule>
diff --git
a/gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/rewrite.xml
index d028f37..3f87e9e 100644
---
a/gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/rewrite.xml
+++
b/gateway-service-definitions/src/main/resources/services/atlas-api/0.8.0/rewrite.xml
@@ -14,10 +14,12 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-
<rules>
+ <!-- KNOX-1918 prevent global HDFS rules from triggering -->
+ <rule dir="OUT" name="ATLAS-API/atlas/outbound"
pattern="hdfs://{host}/{path=**}?{**}">
+ <rewrite template="hdfs://{host}/{path=**}?{**}"/>
+ </rule>
<rule dir="IN" name="ATLAS-API/atlas/inbound"
pattern="*://*:*/**/atlas/api/{path=**}?{**}">
<rewrite template="{$serviceUrl[ATLAS-API]}/api/{path=**}?{**}"/>
</rule>
-</rules>
\ No newline at end of file
+</rules>
diff --git
a/gateway-service-definitions/src/main/resources/services/atlas-api/2.0.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/atlas-api/2.0.0/rewrite.xml
index 36e18a1..3f87e9e 100644
---
a/gateway-service-definitions/src/main/resources/services/atlas-api/2.0.0/rewrite.xml
+++
b/gateway-service-definitions/src/main/resources/services/atlas-api/2.0.0/rewrite.xml
@@ -15,6 +15,10 @@
limitations under the License.
-->
<rules>
+ <!-- KNOX-1918 prevent global HDFS rules from triggering -->
+ <rule dir="OUT" name="ATLAS-API/atlas/outbound"
pattern="hdfs://{host}/{path=**}?{**}">
+ <rewrite template="hdfs://{host}/{path=**}?{**}"/>
+ </rule>
<rule dir="IN" name="ATLAS-API/atlas/inbound"
pattern="*://*:*/**/atlas/api/{path=**}?{**}">
<rewrite template="{$serviceUrl[ATLAS-API]}/api/{path=**}?{**}"/>
</rule>