Skip to content

Commit e2cab20

Browse files
committed
Enable PAM auth by default and allow authenticated users to configure interpreters
1 parent e521c5b commit e2cab20

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

conf/shiro.ini.template

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
# To use a different strategy (LDAP / Database / ...) check the shiro doc at http://shiro.apache.org/configuration.html#Configuration-INISections
2121
# To enable admin user, uncomment the following line and set an appropriate password.
2222
#admin = password1, admin
23-
user1 = password2, role1, role2
24-
user2 = password3, role3
25-
user3 = password4, role2
23+
#user1 = password2, role1, role2
24+
#user2 = password3, role3
25+
#user3 = password4, role2
2626

2727
# Sample LDAP configuration, for user Authentication, currently tested for single Realm
2828
[main]
@@ -47,8 +47,10 @@ user3 = password4, role2
4747
#ldapRealm.contextFactory.authenticationMechanism = simple
4848

4949
### A sample PAM configuration
50-
#pamRealm=org.apache.zeppelin.realm.PamRealm
51-
#pamRealm.service=sshd
50+
pamRealm=org.apache.zeppelin.realm.PamRealm
51+
pamRealm.service=login
52+
53+
securityManager.realms = $pamRealm
5254

5355
### A sample for configuring ZeppelinHub Realm
5456
#zeppelinHubRealm = org.apache.zeppelin.realm.ZeppelinHubRealm
@@ -112,9 +114,9 @@ admin = *
112114
/api/version = anon
113115
# Allow all authenticated users to restart interpreters on a notebook page.
114116
# Comment out the following line if you would like to authorize only admin users to restart interpreters.
115-
/api/interpreter/setting/restart/** = authc
116-
/api/interpreter/** = authc, roles[admin]
117-
/api/configurations/** = authc, roles[admin]
118-
/api/credential/** = authc, roles[admin]
117+
#/api/interpreter/setting/restart/** = authc
118+
#/api/interpreter/** = authc, roles[admin]
119+
#/api/configurations/** = authc, roles[admin]
120+
#/api/credential/** = authc, roles[admin]
119121
#/** = anon
120122
/** = authc

conf/zeppelin-env.sh.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107

108108
#### Zeppelin impersonation configuration
109109
# export ZEPPELIN_IMPERSONATE_CMD # Optional, when user want to run interpreter as end web user. eg) 'sudo -H -u ${ZEPPELIN_IMPERSONATE_USER} bash -c '
110+
export ZEPPELIN_IMPERSONATE_CMD='sudo -H -u ${ZEPPELIN_IMPERSONATE_USER} bash -c '
110111
# export ZEPPELIN_IMPERSONATE_SPARK_PROXY_USER #Optional, by default is true; can be set to false if you don't want to use --proxy-user option with Spark interpreter when impersonation enabled
111112

112113

conf/zeppelin-site.xml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406

407407
<property>
408408
<name>zeppelin.anonymous.allowed</name>
409-
<value>true</value>
409+
<value>false</value>
410410
<description>Anonymous user allowed by default</description>
411411
</property>
412412

0 commit comments

Comments
 (0)