<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: zeppelin users roles in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199343#M68413</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17146/shota.html" nodeid="17146"&gt;@Shota Akhalaia&lt;/A&gt; Can you try once to configure [urls] section as mentioned in this example document: &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_zeppelin-component-guide/content/config-example.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_zeppelin-component-guide/content/config-example.html&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;I am just wondering whether order of this line matters in shiro.ini :  /** = authc ?&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 03:17:20 GMT</pubDate>
    <dc:creator>kbadani</dc:creator>
    <dc:date>2017-09-22T03:17:20Z</dc:date>
    <item>
      <title>zeppelin users roles</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199342#M68412</link>
      <description>&lt;P&gt;Hello guys&lt;/P&gt;&lt;P&gt;I have zeppelin component in the HDP and configured shiro for active directory auth(LdapRealm)&lt;/P&gt;&lt;P&gt;I also have set uesr search filter by group(only specified groups can login in the zeppelin web interface) and have created 2 roles: admins and users, but I think the roles does not works at all&lt;/P&gt;&lt;P&gt;roles configuration I have in the shiro.ini like that:&lt;/P&gt;&lt;PRE&gt;[roles]
admin = *
users = *:ToDoItemsJdo:*:*,*:ToDoItem:*:*
&lt;/PRE&gt;&lt;P&gt;goal is that I do not want users to access some configurations in the zeppelin for example restrict access interpreter configs&lt;/P&gt;&lt;P&gt;I have url config too:&lt;/P&gt;&lt;PRE&gt;[urls]
/** = authc
**/interpreter/** = authc, roles[admin]
**/configuration/** = authc, roles[admin]
&lt;/PRE&gt;&lt;P&gt;but this does not works either, all loged in users have access to everything &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in the [main] section:&lt;/P&gt;&lt;PRE&gt;ldapRealm.rolesByGroup = "Admins":admin,"Users":users&lt;/PRE&gt;&lt;P&gt;user search by group works, only this 2 group members can login("Admins" and "Users" in the ActiveDirectory)&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;P.S. here is version numbers: Installed Packages Name : zeppelin_2_6_1_0_129 Arch : noarch Version : 0.7.0.2.6.1.0&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 20:20:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199342#M68412</guid>
      <dc:creator>shota</dc:creator>
      <dc:date>2017-09-21T20:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin users roles</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199343#M68413</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17146/shota.html" nodeid="17146"&gt;@Shota Akhalaia&lt;/A&gt; Can you try once to configure [urls] section as mentioned in this example document: &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_zeppelin-component-guide/content/config-example.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_zeppelin-component-guide/content/config-example.html&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;I am just wondering whether order of this line matters in shiro.ini :  /** = authc ?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 03:17:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199343#M68413</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2017-09-22T03:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin users roles</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199344#M68414</link>
      <description>&lt;P&gt;Thank you for reply&lt;/P&gt;&lt;P&gt;ok here is my new config for urls:&lt;/P&gt;&lt;PRE&gt;[urls]
/** = authc
/api/interpreter/** = authc, roles[admin]
/api/configuration/** = authc, roles[admin]
/api/credential/** = authc, roles[admin]
#/** = anon&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;but everyone has access to everything anyway&lt;/P&gt;&lt;P&gt;does [urls] and [roles] sections works for LdapRealm?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 19:28:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199344#M68414</guid>
      <dc:creator>shota</dc:creator>
      <dc:date>2017-09-22T19:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin users roles</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199345#M68415</link>
      <description>&lt;P&gt;P.S. also there is some warnings in the /var/log/zeppelin/zeppelin-zeppelin-zeppelin.node.log&lt;/P&gt;&lt;PRE&gt; WARN [2017-09-22 16:29:38,301] ({qtp760563749-56} JAXRSUtils.java[findTargetMethod]:499) - No operation matching request path "/api/login" is found, Relative Path: /, HTTP Method: GET, ContentType: */*, Accept: application/json,text/plain,*/*,. Please enable FINE/TRACE log level for more details.
 WARN [2017-09-22 16:29:38,302] ({qtp760563749-56} WebApplicationExceptionMapper.java[toResponse]:73) - javax.ws.rs.ClientErrorException
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:503)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:218)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXR

etc ... -----------------------------

WARN [2017-09-22 16:29:47,865] ({qtp760563749-26} JAXRSUtils.java[findTargetMethod]:499) - No operation matching request path "/api/login;JSESSIONID=a26c09a0-e86d-4e56-97ae-ac3e8d45a057" is found, Relative Path: /, HTTP Method: GET, ContentType: */*, Accept: application/json,text/plain,*/*,. Please enable FINE/TRACE log level for more details.
 WARN [2017-09-22 16:29:47,866] ({qtp760563749-26} WebApplicationExceptionMapper.java[toResponse]:73) - javax.ws.rs.ClientErrorException
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:503)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:218)

etc... -----------------------------&lt;/PRE&gt;&lt;P&gt;warnings occurs when user logins in the zeppelin UI&lt;/P&gt;&lt;P&gt;maybe something wrong with path which starts with "api"?&lt;/P&gt;&lt;P&gt;where is the path configs for zeppelin?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 19:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199345#M68415</guid>
      <dc:creator>shota</dc:creator>
      <dc:date>2017-09-22T19:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin users roles</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199346#M68416</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17146/shota.html" nodeid="17146"&gt;@Shota Akhalaia&lt;/A&gt; My guess is that when you have /** = authc&lt;STRONG&gt; before &lt;/STRONG&gt;/api/interpreter/** = authc, roles[admin]&lt;/P&gt;&lt;P&gt;the authorization that you give to 'admin' users only for &lt;STRONG&gt;/api/interpreter/** &lt;/STRONG&gt;is getting overridden by &lt;STRONG&gt;/** = authc &lt;/STRONG&gt;which basically allows all apis to be accessible to all roles&lt;STRONG&gt;. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried it on my instance, and ordering /** = authc as the first line really makes interpreters page accessible to all the users. Whereas making it as the last line makes it accessible only to the 'admin' users. The linked document also suggests to make it as the last line&lt;/P&gt;&lt;P&gt;So please try this and let me know if it works&lt;/P&gt;&lt;PRE&gt;[urls]
/api/interpreter/** = authc, roles[admin]
/api/configuration/** = authc, roles[admin]
/api/credential/** = authc, roles[admin]
/** = authc
#/** = anon&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Sep 2017 00:53:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199346#M68416</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2017-09-23T00:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin users roles</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199347#M68417</link>
      <description>&lt;P&gt;place /** = authc in the end of [urls] section makes sense, also I made little changes in the ldapRealm.rolesByGroup(before it was incorrect syntax) and now everything is working properly&lt;/P&gt;&lt;P&gt;place urls by correct order was a key, thank you very much&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 15:19:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199347#M68417</guid>
      <dc:creator>shota</dc:creator>
      <dc:date>2017-09-23T15:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: zeppelin users roles</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199348#M68418</link>
      <description>&lt;P&gt;Thank you for letting me know and accepting the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 01:03:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/zeppelin-users-roles/m-p/199348#M68418</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2017-09-26T01:03:39Z</dc:date>
    </item>
  </channel>
</rss>

