<?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: SOLR collection accessible for everyone, although Sentry-ACLs are configured in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLR-collection-accessible-for-everyone-although-Sentry-ACLs/m-p/61580#M60167</link>
    <description>&lt;P&gt;Hello ge-ko,&lt;/P&gt;&lt;P&gt;Have you been able to resolve this issue?&lt;/P&gt;&lt;P&gt;I am experiencing the same issue here.&lt;/P&gt;&lt;P&gt;I enabled Kerberos+Ldap authentication for solr.&lt;/P&gt;&lt;P&gt;Solr is using "policy file " to enforce &lt;STRONG&gt;sentry&lt;/STRONG&gt; authentication.&lt;/P&gt;&lt;P&gt;everyone can query any collection though I only have enebaled query permission for one particular user only.&lt;/P&gt;&lt;P&gt;PS as for update or deleting collections everything works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2017 18:41:09 GMT</pubDate>
    <dc:creator>GeorgeG</dc:creator>
    <dc:date>2017-11-07T18:41:09Z</dc:date>
    <item>
      <title>SOLR collection accessible for everyone, although Sentry-ACLs are configured</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLR-collection-accessible-for-everyone-although-Sentry-ACLs/m-p/54245#M60166</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on providing privileges to access Solr collection via Sentry-ACL.&lt;/P&gt;&lt;P&gt;Environment is CDH5.9, Kerberos enabled, Sentry &amp;amp; Solr are up and running, Sentry roles have been configured and privileges are granted:&lt;BR /&gt;1 role for "Query"-ing the collection&lt;/P&gt;&lt;P&gt;1 role for "Update"-ing the collection&lt;/P&gt;&lt;P&gt;1 role for "All" privileges&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I now login to Hue, and click "Search" =&amp;gt; "Indizes" =&amp;gt; &amp;lt;collection-name&amp;gt; =&amp;gt; "Search" , then I can see all documents in the collection, _BUT_ this is the case for _ANY_ user. Even users which are not part of the (OS-)group that is assigned to a Sentry role can see all documents. This is something I didn't expect after having Sentry-ACLs in place...?!?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just created a user 'test' within Hue, this user doesn't even exist as OS user, but he can see all documents from th SOLR collection. WHY ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I login as user 'test' into Hue and click on "Search" =&amp;gt; "Indizes", the Solr-log shows an (expected) error:&lt;/P&gt;&lt;PRE&gt;ERROR org.apache.solr.core.SolrCore: org.apache.solr.common.SolrException: org.apache.sentry.binding.solr.authz.SentrySolrAuthorizationException: User test does not have privileges for admin&lt;/PRE&gt;&lt;P&gt;but nevertheless, I can proceed clicking on the collection-name and then "Search" to see all the documents (which I didn't expect &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; ). The Solr-log just shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;INFO org.apache.solr.core.SolrCore.Request: [...collection-name...] webapp=/solr path=/select params={hl.snippets=5&amp;amp;q=*:*&amp;amp;doAs=test&amp;amp;hl=true&amp;amp;fl=*&amp;amp;start=0&amp;amp;hl.fragsize=1000&amp;amp;hl.fl=*&amp;amp;rows=10&amp;amp;wt=json} hits=2 status=0 QTime=2&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here to _really_ protect the Solr collection from being accessed by everyone ?!?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same behaviour can be reproduced by executing curl commandline calls by a user which has a valid kerberos ticket, but is _NOT_ part of any group which is part of a Sentry policy. All those users can select the collection, which shouldn't be the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanks in advance...&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:31:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLR-collection-accessible-for-everyone-although-Sentry-ACLs/m-p/54245#M60166</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2022-09-16T11:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR collection accessible for everyone, although Sentry-ACLs are configured</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLR-collection-accessible-for-everyone-although-Sentry-ACLs/m-p/61580#M60167</link>
      <description>&lt;P&gt;Hello ge-ko,&lt;/P&gt;&lt;P&gt;Have you been able to resolve this issue?&lt;/P&gt;&lt;P&gt;I am experiencing the same issue here.&lt;/P&gt;&lt;P&gt;I enabled Kerberos+Ldap authentication for solr.&lt;/P&gt;&lt;P&gt;Solr is using "policy file " to enforce &lt;STRONG&gt;sentry&lt;/STRONG&gt; authentication.&lt;/P&gt;&lt;P&gt;everyone can query any collection though I only have enebaled query permission for one particular user only.&lt;/P&gt;&lt;P&gt;PS as for update or deleting collections everything works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 18:41:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLR-collection-accessible-for-everyone-although-Sentry-ACLs/m-p/61580#M60167</guid>
      <dc:creator>GeorgeG</dc:creator>
      <dc:date>2017-11-07T18:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: SOLR collection accessible for everyone, although Sentry-ACLs are configured</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLR-collection-accessible-for-everyone-although-Sentry-ACLs/m-p/61692#M60168</link>
      <description>&lt;P&gt;I have resolved the issue for Solr.&lt;/P&gt;&lt;P&gt;1: I replaced&amp;nbsp;solrconfig.xml with&amp;nbsp;solrconfig.xml.secure&lt;/P&gt;&lt;P&gt;2:&amp;nbsp;solrctl instancedir --update employee &amp;nbsp;/home/Solr/employee/conf/&lt;/P&gt;&lt;P&gt;3:&amp;nbsp;solrctl collection --reload employee&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 22:54:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SOLR-collection-accessible-for-everyone-although-Sentry-ACLs/m-p/61692#M60168</guid>
      <dc:creator>GeorgeG</dc:creator>
      <dc:date>2017-11-09T22:54:20Z</dc:date>
    </item>
  </channel>
</rss>

