<?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 Sentry ACLs are not being applied in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53527#M19198</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I enabled Kerberos and Sentry for Search in the CDH5.8 sandbox. I created users+groups on Linux, as well as roles in Sentry, and linked them together. e.g. sentry-role 'demo-query' links to linux-group 'selectors' where user 'reader' is a member of. This role was granted 'query' privilege on my collection 'acltest'.&lt;/P&gt;&lt;P&gt;In addition to that, there is user 'writer', member of 'inserters' which maps to sentry-role 'demo-update' and privilege 'update' on the collection 'acltest'.&lt;/P&gt;&lt;P&gt;And there is one more user, called 'testuser', who is **not** part of any of the above mentioned Linux groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expectation is/was, that user 'testuser' fails at querying collection 'acltest', but wrong. This user can query the collection without problem, but I didn't grant him any privileges ?!?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is he able to query the collection ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;PRE&gt;[testuser@quickstart ~]$ curl --negotiate -u : 'http://quickstart.cloudera:8983/solr/acltest/select?q=*'
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
&amp;lt;lst name="responseHeader"&amp;gt;&amp;lt;int name="status"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;int name="QTime"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;lst name="params"&amp;gt;&amp;lt;str name="q"&amp;gt;*&amp;lt;/str&amp;gt;&amp;lt;/lst&amp;gt;&amp;lt;/lst&amp;gt;&amp;lt;result name="response" numFound="2" start="0"&amp;gt;&amp;lt;doc&amp;gt;&amp;lt;int name="my_id"&amp;gt;1&amp;lt;/int&amp;gt;&amp;lt;long name="my_somecode"&amp;gt;55508&amp;lt;/long&amp;gt;&amp;lt;str name="cust_plz"&amp;gt;0815&amp;lt;/str&amp;gt;&amp;lt;str name="cust_hausnr"&amp;gt;111&amp;lt;/str&amp;gt;&amp;lt;str name="cust_strasse"&amp;gt;hauptstr&amp;lt;/str&amp;gt;&amp;lt;str name="cust_ort"&amp;gt;nirvana&amp;lt;/str&amp;gt;&amp;lt;str name="bank_account"&amp;gt;746757583873&amp;lt;/str&amp;gt;&amp;lt;long name="_version_"&amp;gt;1564414881528020992&amp;lt;/long&amp;gt;&amp;lt;/doc&amp;gt;&amp;lt;doc&amp;gt;&amp;lt;int name="my_id"&amp;gt;2&amp;lt;/int&amp;gt;&amp;lt;long name="my_somecode"&amp;gt;22208&amp;lt;/long&amp;gt;&amp;lt;str name="cust_plz"&amp;gt;4711&amp;lt;/str&amp;gt;&amp;lt;str name="cust_hausnr"&amp;gt;666&amp;lt;/str&amp;gt;&amp;lt;str name="cust_strasse"&amp;gt;highway-to-hell&amp;lt;/str&amp;gt;&amp;lt;str name="cust_ort"&amp;gt;nirvana&amp;lt;/str&amp;gt;&amp;lt;str name="bank_account"&amp;gt;9958575488&amp;lt;/str&amp;gt;&amp;lt;long name="_version_"&amp;gt;1564414881580449792&amp;lt;/long&amp;gt;&amp;lt;/doc&amp;gt;&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;[testuser@quickstart ~]$ id testuser
uid=502(testuser) gid=504(testuser) groups=504(testuser)&lt;/PRE&gt;&lt;P&gt;I did all the Sentry related steps (role creation, group assignment and privilege granting) &lt;STRONG&gt;via the command line, not using Hue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing, so that the ACLs are getting applied as expected (in this particular case, user 'testuser' isn't able to query the collection) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any hint...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:26:43 GMT</pubDate>
    <dc:creator>geko</dc:creator>
    <dc:date>2022-09-16T11:26:43Z</dc:date>
    <item>
      <title>Sentry ACLs are not being applied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53527#M19198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I enabled Kerberos and Sentry for Search in the CDH5.8 sandbox. I created users+groups on Linux, as well as roles in Sentry, and linked them together. e.g. sentry-role 'demo-query' links to linux-group 'selectors' where user 'reader' is a member of. This role was granted 'query' privilege on my collection 'acltest'.&lt;/P&gt;&lt;P&gt;In addition to that, there is user 'writer', member of 'inserters' which maps to sentry-role 'demo-update' and privilege 'update' on the collection 'acltest'.&lt;/P&gt;&lt;P&gt;And there is one more user, called 'testuser', who is **not** part of any of the above mentioned Linux groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expectation is/was, that user 'testuser' fails at querying collection 'acltest', but wrong. This user can query the collection without problem, but I didn't grant him any privileges ?!?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is he able to query the collection ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Details:&lt;/P&gt;&lt;PRE&gt;[testuser@quickstart ~]$ curl --negotiate -u : 'http://quickstart.cloudera:8983/solr/acltest/select?q=*'
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
&amp;lt;lst name="responseHeader"&amp;gt;&amp;lt;int name="status"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;int name="QTime"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;lst name="params"&amp;gt;&amp;lt;str name="q"&amp;gt;*&amp;lt;/str&amp;gt;&amp;lt;/lst&amp;gt;&amp;lt;/lst&amp;gt;&amp;lt;result name="response" numFound="2" start="0"&amp;gt;&amp;lt;doc&amp;gt;&amp;lt;int name="my_id"&amp;gt;1&amp;lt;/int&amp;gt;&amp;lt;long name="my_somecode"&amp;gt;55508&amp;lt;/long&amp;gt;&amp;lt;str name="cust_plz"&amp;gt;0815&amp;lt;/str&amp;gt;&amp;lt;str name="cust_hausnr"&amp;gt;111&amp;lt;/str&amp;gt;&amp;lt;str name="cust_strasse"&amp;gt;hauptstr&amp;lt;/str&amp;gt;&amp;lt;str name="cust_ort"&amp;gt;nirvana&amp;lt;/str&amp;gt;&amp;lt;str name="bank_account"&amp;gt;746757583873&amp;lt;/str&amp;gt;&amp;lt;long name="_version_"&amp;gt;1564414881528020992&amp;lt;/long&amp;gt;&amp;lt;/doc&amp;gt;&amp;lt;doc&amp;gt;&amp;lt;int name="my_id"&amp;gt;2&amp;lt;/int&amp;gt;&amp;lt;long name="my_somecode"&amp;gt;22208&amp;lt;/long&amp;gt;&amp;lt;str name="cust_plz"&amp;gt;4711&amp;lt;/str&amp;gt;&amp;lt;str name="cust_hausnr"&amp;gt;666&amp;lt;/str&amp;gt;&amp;lt;str name="cust_strasse"&amp;gt;highway-to-hell&amp;lt;/str&amp;gt;&amp;lt;str name="cust_ort"&amp;gt;nirvana&amp;lt;/str&amp;gt;&amp;lt;str name="bank_account"&amp;gt;9958575488&amp;lt;/str&amp;gt;&amp;lt;long name="_version_"&amp;gt;1564414881580449792&amp;lt;/long&amp;gt;&amp;lt;/doc&amp;gt;&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;[testuser@quickstart ~]$ id testuser
uid=502(testuser) gid=504(testuser) groups=504(testuser)&lt;/PRE&gt;&lt;P&gt;I did all the Sentry related steps (role creation, group assignment and privilege granting) &lt;STRONG&gt;via the command line, not using Hue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing, so that the ACLs are getting applied as expected (in this particular case, user 'testuser' isn't able to query the collection) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any hint...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:26:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53527#M19198</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2022-09-16T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry ACLs are not being applied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53528#M19199</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/336"&gt;@geko&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Are you applying Sentry on the file in local (or) HDFS? if it is local, it will not work (as per my understanding) because&amp;nbsp;&lt;SPAN&gt;Sentry currently works out of the box with Apache Hive, Hive Metastore/HCatalog, Apache Solr, Impala and HDFS (limited to Hive table data).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://cwiki.apache.org/confluence/display/SENTRY/Sentry+Tutorial" target="_blank"&gt;https://cwiki.apache.org/confluence/display/SENTRY/Sentry+Tutorial&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. If you are&amp;nbsp;referring to HDFS, please ignore my above point and confirm the follows, have you done with your HDFS &amp;amp; Sentry synchronization?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-6-x/topics/sg_hdfs_sentry_sync.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-6-x/topics/sg_hdfs_sentry_sync.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 21:44:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53528#M19199</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-04-11T21:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry ACLs are not being applied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53529#M19200</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18441"&gt;@saranvisa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for replying quickly.&lt;/P&gt;&lt;P&gt;I am not testing Sentry-HDFS permissions, I am working on Sentry-SOLR. The scenario I described relates to permissions of querying a SOLR collection, not accessing HDFS files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Kerberos is enabled&lt;/P&gt;&lt;P&gt;- SOLR collection has been created&lt;/P&gt;&lt;P&gt;- Sentry roles have been created&lt;/P&gt;&lt;P&gt;- Linux groups have been mapped to Sentry roles&lt;/P&gt;&lt;P&gt;- Privileges to access the SOLR collection has been granted via ```solrctl sentry .. ``` commandline call&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;available sentry roles:&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart hue]$ solrctl sentry --list-roles
demo-update
sentry_admin
demo-query&lt;/PRE&gt;&lt;P&gt;...and privileges:&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart hue]$ solrctl sentry --list-privileges demo-query
Collection=acltest-&amp;gt;action=query
[cloudera@quickstart hue]$ solrctl sentry --list-privileges demo-update
Collection=acltest-&amp;gt;action=update
[cloudera@quickstart hue]$ &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OS user 'testuser' is **NOT** part of any of those groups, but he can nevertheless query the collection 'acltest'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[testuser@quickstart ~]$ curl --negotiate -u : 'http://quickstart.cloudera:8983/solr/acltest/select?q=*'
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;response&amp;gt;
&amp;lt;lst name="responseHeader"&amp;gt;&amp;lt;int name="status"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;int name="QTime"&amp;gt;0&amp;lt;/int&amp;gt;&amp;lt;lst name="params"&amp;gt;&amp;lt;str name="q"&amp;gt;*&amp;lt;/str&amp;gt;&amp;lt;/lst&amp;gt;&amp;lt;/lst&amp;gt;&amp;lt;result name="response" numFound="2" start="0"&amp;gt;&amp;lt;doc&amp;gt;&amp;lt;int name="my_id"&amp;gt;1&amp;lt;/int&amp;gt;&amp;lt;long name="my_somecode"&amp;gt;55508&amp;lt;/long&amp;gt;&amp;lt;str name="cust_plz"&amp;gt;0815&amp;lt;/str&amp;gt;&amp;lt;str name="cust_hausnr"&amp;gt;111&amp;lt;/str&amp;gt;&amp;lt;str name="cust_strasse"&amp;gt;hauptstr&amp;lt;/str&amp;gt;&amp;lt;str name="cust_ort"&amp;gt;nirvana&amp;lt;/str&amp;gt;&amp;lt;str name="bank_account"&amp;gt;746757583873&amp;lt;/str&amp;gt;&amp;lt;long name="_version_"&amp;gt;1564414881528020992&amp;lt;/long&amp;gt;&amp;lt;/doc&amp;gt;&amp;lt;doc&amp;gt;&amp;lt;int name="my_id"&amp;gt;2&amp;lt;/int&amp;gt;&amp;lt;long name="my_somecode"&amp;gt;22208&amp;lt;/long&amp;gt;&amp;lt;str name="cust_plz"&amp;gt;4711&amp;lt;/str&amp;gt;&amp;lt;str name="cust_hausnr"&amp;gt;666&amp;lt;/str&amp;gt;&amp;lt;str name="cust_strasse"&amp;gt;highway-to-hell&amp;lt;/str&amp;gt;&amp;lt;str name="cust_ort"&amp;gt;nirvana&amp;lt;/str&amp;gt;&amp;lt;str name="bank_account"&amp;gt;9958575488&amp;lt;/str&amp;gt;&amp;lt;long name="_version_"&amp;gt;1564414881580449792&amp;lt;/long&amp;gt;&amp;lt;/doc&amp;gt;&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now also tried to set the privileges via Hue=&amp;gt;Security plugin, but this does not work. I am able to define the role and privilege, but after clicking the blue "Update" button I just see in the top right corner the hint "Privileges has been updated", but in the overview there is no privilege displayed for that collection.....strange....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 22:06:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53529#M19200</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2017-04-11T22:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry ACLs are not being applied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53555#M19201</link>
      <description>&lt;P&gt;sorry for any confusion, in parallel "Sentry Service" got disabled for SOLR because of the issue &lt;A href="https://community.cloudera.com/t5/Cloudera-Search-Apache-SolrCloud/Solr-with-Sentry-in-5-8-sandbox-not-working-null-java-lang/m-p/53553#U53553" target="_blank"&gt;posted here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will close this issue, since the linked issue is the real one &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 08:36:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sentry-ACLs-are-not-being-applied/m-p/53555#M19201</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2017-04-12T08:36:41Z</dc:date>
    </item>
  </channel>
</rss>

