You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2016/04/19 17:06:56 UTC

ambari git commit: AMBARI-15778. knoxsso topology config needs updating in Knox's stack definition (Sumit Gupta via rlevas)

Repository: ambari
Updated Branches:
  refs/heads/trunk c36e45891 -> 77477c69c


AMBARI-15778. knoxsso topology config needs updating in Knox's stack definition (Sumit Gupta via rlevas)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/77477c69
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/77477c69
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/77477c69

Branch: refs/heads/trunk
Commit: 77477c69c9a80ee3c03d3bfcf6807627f9da2b20
Parents: c36e458
Author: Sumit Gupta <su...@hortonworks.com>
Authored: Tue Apr 19 10:54:51 2016 -0400
Committer: Robert Levas <rl...@hortonworks.com>
Committed: Tue Apr 19 11:06:08 2016 -0400

----------------------------------------------------------------------
 .../KNOX/configuration/knoxsso-topology.xml     | 126 +++++++++++++++++++
 1 file changed, 126 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/77477c69/ambari-server/src/main/resources/stacks/HDP/2.5/services/KNOX/configuration/knoxsso-topology.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/KNOX/configuration/knoxsso-topology.xml b/ambari-server/src/main/resources/stacks/HDP/2.5/services/KNOX/configuration/knoxsso-topology.xml
new file mode 100644
index 0000000..c9e042c
--- /dev/null
+++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/KNOX/configuration/knoxsso-topology.xml
@@ -0,0 +1,126 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+/**
+ * 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.
+ */
+-->
+
+<configuration supports_final="false" supports_adding_forbidden="true">
+    <!-- topology file -->
+
+    <property>
+    <name>content</name>
+    <value>
+      &lt;topology&gt;
+          &lt;gateway&gt;
+              &lt;provider&gt;
+                  &lt;role&gt;webappsec&lt;/role&gt;
+                  &lt;name&gt;WebAppSec&lt;/name&gt;
+                  &lt;enabled&gt;true&lt;/enabled&gt;
+                  &lt;param&gt;&lt;name&gt;xframe.options.enabled&lt;/name&gt;&lt;value&gt;true&lt;/value&gt;&lt;/param&gt;
+              &lt;/provider&gt;
+
+              &lt;provider&gt;
+                  &lt;role&gt;authentication&lt;/role&gt;
+                  &lt;name&gt;ShiroProvider&lt;/name&gt;
+                  &lt;enabled&gt;true&lt;/enabled&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;sessionTimeout&lt;/name&gt;
+                      &lt;value&gt;30&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;redirectToUrl&lt;/name&gt;
+                      &lt;value&gt;/gateway/knoxsso/knoxauth/login.html&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;restrictedCookies&lt;/name&gt;
+                      &lt;value&gt;rememberme,WWW-Authenticate&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;main.ldapRealm&lt;/name&gt;
+                      &lt;value&gt;org.apache.hadoop.gateway.shirorealm.KnoxLdapRealm&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;main.ldapContextFactory&lt;/name&gt;
+                      &lt;value&gt;org.apache.hadoop.gateway.shirorealm.KnoxLdapContextFactory&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;main.ldapRealm.contextFactory&lt;/name&gt;
+                      &lt;value&gt;$ldapContextFactory&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;main.ldapRealm.userDnTemplate&lt;/name&gt;
+                      &lt;value&gt;uid={0},ou=people,dc=hadoop,dc=apache,dc=org&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;main.ldapRealm.contextFactory.url&lt;/name&gt;
+                      &lt;value&gt;ldap://localhost:33389&lt;/value&gt;
+                  &lt;/param&gt;    
+                  &lt;param&gt;
+                      &lt;name&gt;main.ldapRealm.authenticationCachingEnabled&lt;/name&gt;
+                      &lt;value&gt;false&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;main.ldapRealm.contextFactory.authenticationMechanism&lt;/name&gt;
+                      &lt;value&gt;simple&lt;/value&gt;
+                  &lt;/param&gt;
+                  &lt;param&gt;
+                      &lt;name&gt;urls./**&lt;/name&gt;
+                      &lt;value&gt;authcBasic&lt;/value&gt;
+                  &lt;/param&gt;
+              &lt;/provider&gt;
+
+              &lt;provider&gt;
+                  &lt;role&gt;identity-assertion&lt;/role&gt;
+                  &lt;name&gt;Default&lt;/name&gt;
+                  &lt;enabled&gt;true&lt;/enabled&gt;
+              &lt;/provider&gt;
+          &lt;/gateway&gt;
+
+          &lt;application&gt;
+            &lt;name&gt;knoxauth&lt;/name&gt;
+          &lt;/application&gt;
+
+          &lt;service&gt;
+              &lt;role&gt;KNOXSSO&lt;/role&gt;
+              &lt;param&gt;
+                  &lt;name&gt;knoxsso.cookie.secure.only&lt;/name&gt;
+                  &lt;value&gt;false&lt;/value&gt;
+              &lt;/param&gt;
+              &lt;param&gt;
+                  &lt;name&gt;knoxsso.token.ttl&lt;/name&gt;
+                  &lt;value&gt;30000&lt;/value&gt;
+              &lt;/param&gt;
+              &lt;param&gt;
+                 &lt;name&gt;knoxsso.redirect.whitelist.regex&lt;/name&gt;
+                 &lt;value&gt;^https?:\/\/(localhost|127\.0\.0\.1|0:0:0:0:0:0:0:1|::1):[0-9].*$&lt;/value&gt;
+              &lt;/param&gt;
+          &lt;/service&gt;
+
+      &lt;/topology&gt;
+      </value>
+    <description>
+        The configuration specifies the KnoxSSO provider integration, cookie and token management details.
+    </description>
+    <value-attributes>
+       <type>content</type>
+       <empty-value-valid>true</empty-value-valid>
+       <show-property-name>false</show-property-name>
+    </value-attributes>
+    </property>
+</configuration>