Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 900e203d9 -> 6c66f2095


AMBARI-17786. Enable csrf protection and add superuser in livy (Jeff Zhang via 
smohanty)


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

Branch: refs/heads/branch-2.4
Commit: 6c66f20959f18b9bea2c95379aaee6657b137423
Parents: 900e203
Author: Sumit Mohanty <[email protected]>
Authored: Tue Jul 19 07:12:37 2016 -0700
Committer: Sumit Mohanty <[email protected]>
Committed: Tue Jul 19 07:12:37 2016 -0700

----------------------------------------------------------------------
 .../HDP/2.5/services/SPARK/configuration/livy-conf.xml       | 8 ++++++++
 .../resources/stacks/HDP/2.5/services/SPARK/kerberos.json    | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6c66f209/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/configuration/livy-conf.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/configuration/livy-conf.xml
 
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/configuration/livy-conf.xml
index 7d3c78f..1dbb035 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/configuration/livy-conf.xml
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/configuration/livy-conf.xml
@@ -54,4 +54,12 @@
         </description>
     <on-ambari-upgrade add="true"/>
   </property>
+  <property>
+    <name>livy.server.csrf_protection.enabled</name>
+    <value>true</value>
+    <description>
+            Whether to enable csrf protection for livy's rest api.
+    </description>
+    <on-ambari-upgrade add="true"/>
+  </property>
 </configuration>

http://git-wip-us.apache.org/repos/asf/ambari/blob/6c66f209/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json 
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
index e479354..ea2cf52 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/SPARK/kerberos.json
@@ -67,7 +67,8 @@
         {
           "livy-conf": {
             "livy.server.auth.type": "kerberos",
-            "livy.impersonation.enabled": "true"
+            "livy.impersonation.enabled": "true",
+            "livy.superusers": "zeppelin-${cluster_name}"
           }
         },
         {

Reply via email to