<?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>topic Re: Scripted Authentication and Scheduled Searches in Security</title>
    <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/21000#M685</link>
    <description>&lt;P&gt;An update on this -- it turns out the problem is far worse than I thought as it applies to locally configured Splunk users too.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Configure a user on Splunk with a role that has restricted search terms.  In our case a filter that restricts them to only seeing their company’s data.&lt;/LI&gt;
&lt;LI&gt;User logs in and views dashboard.  Can only see their
data.  Great. &lt;/LI&gt;
&lt;LI&gt;User schedules PDF generation for dashboard using Splunk’s built in PDF reporting. At
the appropriate time a PDF is generated and e-mailed to the user. &lt;/LI&gt;
&lt;LI&gt;When the PDF is generated the user’s search restrictions are not applied. The user gets e-mailed a report containing data from all companies.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 08 May 2013 07:55:28 GMT</pubDate>
    <dc:creator>MatMeredith</dc:creator>
    <dc:date>2013-05-08T07:55:28Z</dc:date>
    <item>
      <title>Scripted Authentication and Scheduled Searches</title>
      <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20995#M680</link>
      <description>&lt;P&gt;I think I've hit a Splunk "bug", and I wonder if anyone knows of any way to work around it?&lt;/P&gt;

&lt;P&gt;I'm using Splunk's scripted authentication.  Specifically I have a python script that&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;authenticates users &lt;/LI&gt;
&lt;LI&gt;provides per user search filters.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;This works fine up to a point.  My users can log in to Splunk and run searches and they only see results that are compliant with their per user search filter.&lt;/P&gt;

&lt;P&gt;The problem is that such a user can then schedule PDF generation of a view and when the PDF is later scheduled...&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;the authentication script does not get invoked (to check that the user still has permission to access the system)&lt;/LI&gt;
&lt;LI&gt;(worse) the authentication script does not get invoked to provide the per user search filter, and so the search to generate the PDF is executed with no search filter, with the result that the user gets e-mailed a report containing all the data on the system, rather than just the subset they are permitted to see.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 01 May 2013 08:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20995#M680</guid>
      <dc:creator>MatMeredith</dc:creator>
      <dc:date>2013-05-01T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Authentication and Scheduled Searches</title>
      <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20996#M681</link>
      <description>&lt;P&gt;A couple of questions:&lt;/P&gt;

&lt;P&gt;What version of Splunk are you using?&lt;BR /&gt;
How are you generating PDFs (through the native PDF support in 5.0+ or with the old PDF Report Server)?&lt;/P&gt;

&lt;P&gt;Let me know, I would like to get this reported immediately. Based on your answers, I might make a minimal repro so that this can get escalated quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 15:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20996#M681</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2013-05-01T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Authentication and Scheduled Searches</title>
      <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20997#M682</link>
      <description>&lt;P&gt;I'm using native PDF support in 5.0.2, build 149561.  Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 16:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20997#M682</guid>
      <dc:creator>MatMeredith</dc:creator>
      <dc:date>2013-05-01T16:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Authentication and Scheduled Searches</title>
      <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20998#M683</link>
      <description>&lt;P&gt;Hi.  Any news on this?  Were you able to raise this?  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 08:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20998#M683</guid>
      <dc:creator>MatMeredith</dc:creator>
      <dc:date>2013-05-07T08:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Authentication and Scheduled Searches</title>
      <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20999#M684</link>
      <description>&lt;P&gt;According to your title, users are scheduling the search. I also have the impression it's not possible to make "scheduled" search run as another user than "system" which basically has all permissions.&lt;/P&gt;

&lt;P&gt;I've posted a somewhat related comment about savedsearches.conf - see &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Savedsearchesconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Savedsearchesconf&lt;/A&gt;. I've received an answer but must admit it was not entirely satisfying and I didn't follow it up very closely. I should probably raise this issue with support.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 21:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/20999#M684</guid>
      <dc:creator>yoho</dc:creator>
      <dc:date>2013-05-07T21:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Authentication and Scheduled Searches</title>
      <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/21000#M685</link>
      <description>&lt;P&gt;An update on this -- it turns out the problem is far worse than I thought as it applies to locally configured Splunk users too.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Configure a user on Splunk with a role that has restricted search terms.  In our case a filter that restricts them to only seeing their company’s data.&lt;/LI&gt;
&lt;LI&gt;User logs in and views dashboard.  Can only see their
data.  Great. &lt;/LI&gt;
&lt;LI&gt;User schedules PDF generation for dashboard using Splunk’s built in PDF reporting. At
the appropriate time a PDF is generated and e-mailed to the user. &lt;/LI&gt;
&lt;LI&gt;When the PDF is generated the user’s search restrictions are not applied. The user gets e-mailed a report containing data from all companies.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 08 May 2013 07:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/21000#M685</guid>
      <dc:creator>MatMeredith</dc:creator>
      <dc:date>2013-05-08T07:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Authentication and Scheduled Searches</title>
      <link>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/21001#M686</link>
      <description>&lt;P&gt;I believe part of the answer is in the link below. I'll have to make some tests.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/1438/how-to-specify-an-owner-for-pre-canned-saved-searches-for-app-packaging"&gt;http://splunk-base.splunk.com/answers/1438/how-to-specify-an-owner-for-pre-canned-saved-searches-for-app-packaging&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 08:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Scripted-Authentication-and-Scheduled-Searches/m-p/21001#M686</guid>
      <dc:creator>yoho</dc:creator>
      <dc:date>2013-05-08T08:22:33Z</dc:date>
    </item>
  </channel>
</rss>

