knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject [1/7] knox git commit: KNOX-749 Initial admin UI source project and productized distribution
Date Wed, 21 Dec 2016 16:37:20 GMT
Repository: knox
Updated Branches:
  refs/heads/master 9f08a22e2 -> 87a7592ea


http://git-wip-us.apache.org/repos/asf/knox/blob/87a7592e/gateway-applications/src/main/resources/applications/admin-ui/service.xml
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/admin-ui/service.xml b/gateway-applications/src/main/resources/applications/admin-ui/service.xml
new file mode 100644
index 0000000..476659b
--- /dev/null
+++ b/gateway-applications/src/main/resources/applications/admin-ui/service.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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="admin-ui" name="admin-ui" version="1.0.0">
+    <policies>
+        <policy role="webappsec"/>
+        <policy role="authentication"/>
+        <policy role="rewrite"/>
+        <policy role="identity-assertion"/>
+        <policy role="authorization"/>
+		<policy role="federation"/>
+    </policies>
+    <routes>
+        <route path="/?**">
+            <policies>
+                <policy role="webappsec"/>
+                <policy role="authentication" name="Anonymous"/>
+                <policy role="identity-assertion"/>
+                <policy role="authorization"/>
+                <policy role="rewrite"/>
+				<policy role="federation"/>
+            </policies>
+        </route>
+        <route path="/**?**">
+            <policies>
+                <policy role="webappsec"/>
+                <policy role="authentication" name="Anonymous"/>
+                <policy role="identity-assertion"/>
+                <policy role="authorization"/>
+                <policy role="rewrite"/>
+				<policy role="federation"/>
+            </policies>
+        </route>
+    </routes>
+</service>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/knox/blob/87a7592e/gateway-release/home/conf/topologies/admin.xml
----------------------------------------------------------------------
diff --git a/gateway-release/home/conf/topologies/admin.xml b/gateway-release/home/conf/topologies/admin.xml
index 2f3d9a9..8ca9024 100644
--- a/gateway-release/home/conf/topologies/admin.xml
+++ b/gateway-release/home/conf/topologies/admin.xml
@@ -20,6 +20,16 @@
     <gateway>
 
         <provider>
+            <role>webappsec</role>
+            <name>WebAppSec</name>
+            <enabled>true</enabled>
+            <param><name>csrf.enabled</name><value>true</value></param>
+            <param><name>csrf.customHeader</name><value>X-XSRF-Header</value></param>
+            <param><name>csrf.methodsToIgnore</name><value>GET,OPTIONS,HEAD</value></param>
+            <param><name>xframe-options.enabled</name><value>true</value></param>
+        </provider>
+
+        <provider>
             <role>authentication</role>
             <name>ShiroProvider</name>
             <enabled>true</enabled>
@@ -103,6 +113,10 @@
 
     </gateway>
 
+    <application>
+        <role>admin-ui</role>
+    </application>
+
     <service>
         <role>KNOX</role>
     </service>

http://git-wip-us.apache.org/repos/asf/knox/blob/87a7592e/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index b27858f..3f51b22 100644
--- a/pom.xml
+++ b/pom.xml
@@ -250,6 +250,11 @@
                         <exclude>**/applications/**/bootstrap.min.**</exclude>
                         <exclude>**/applications/**/fonts/**</exclude>
                         <exclude>**/applications/**/libs/**</exclude>
+                        <exclude>**/applications/**/assets/**</exclude>
+                        <exclude>**/applications/**/*.bundle.*</exclude>
+                        <exclude>**/node_modules/**</exclude>
+                        <exclude>**/dist/**</exclude>
+                        <exclude>gateway-admin-ui/**</exclude>
                         <exclude>atlassian-ide-plugin.xml</exclude>
                     </excludes>
                 </configuration>


Mime
View raw message