<?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 DB Connect - access restrictions to database connections not working in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199569#M23650</link>
    <description>&lt;P&gt;I'm trying to set up db connections with role-based access restrictions. As an example, Splunk role A shall be able to run &lt;CODE&gt;dbquery&lt;/CODE&gt; using database connection dbA and Splunk role B shall do the same with dbB. Neither can run queries on the other database.&lt;/P&gt;

&lt;P&gt;According to &lt;A href="http://docs.splunk.com/Documentation/DBX/1.1.1/DeployDBX/Setupuserpermissions#Set_up_user_access_to_a_specific_database"&gt;http://docs.splunk.com/Documentation/DBX/1.1.1/DeployDBX/Setupuserpermissions#Set_up_user_access_to_a_specific_database&lt;/A&gt; the permissions for a db connection object should provide this level of access control. However, I can't get that to work. Regardless of how restricted I set the permissions for a database connection, a non-privileged user (role B) can still access that database (dbA) through &lt;CODE&gt;dbquery&lt;/CODE&gt; - even if that database connection is set as private rather than app- or global-shared.&lt;/P&gt;

&lt;P&gt;Is anyone able to reproduce this or am I missing something?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2014 14:33:38 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-01-10T14:33:38Z</dc:date>
    <item>
      <title>DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199569#M23650</link>
      <description>&lt;P&gt;I'm trying to set up db connections with role-based access restrictions. As an example, Splunk role A shall be able to run &lt;CODE&gt;dbquery&lt;/CODE&gt; using database connection dbA and Splunk role B shall do the same with dbB. Neither can run queries on the other database.&lt;/P&gt;

&lt;P&gt;According to &lt;A href="http://docs.splunk.com/Documentation/DBX/1.1.1/DeployDBX/Setupuserpermissions#Set_up_user_access_to_a_specific_database"&gt;http://docs.splunk.com/Documentation/DBX/1.1.1/DeployDBX/Setupuserpermissions#Set_up_user_access_to_a_specific_database&lt;/A&gt; the permissions for a db connection object should provide this level of access control. However, I can't get that to work. Regardless of how restricted I set the permissions for a database connection, a non-privileged user (role B) can still access that database (dbA) through &lt;CODE&gt;dbquery&lt;/CODE&gt; - even if that database connection is set as private rather than app- or global-shared.&lt;/P&gt;

&lt;P&gt;Is anyone able to reproduce this or am I missing something?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 14:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199569#M23650</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-01-10T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199570#M23651</link>
      <description>&lt;P&gt;Martin, &lt;/P&gt;

&lt;P&gt;The dev team has opened a ticket on this issue and is currently investigating. Looks like it might be a bug.  &lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 23:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199570#M23651</guid>
      <dc:creator>sroback_splunk</dc:creator>
      <dc:date>2014-01-10T23:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199571#M23652</link>
      <description>&lt;P&gt;i had reported similar concerns..&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 05:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199571#M23652</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-11T05:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199572#M23653</link>
      <description>&lt;P&gt;Great, thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 09:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199572#M23653</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-01-11T09:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199573#M23654</link>
      <description>&lt;P&gt;I have found something.. &lt;/P&gt;

&lt;P&gt;While doing | dboutput type=sql database=test table=minimom "update .."&lt;/P&gt;

&lt;P&gt;Irrespective of the update success/failure it always says no modification done!!!&lt;/P&gt;

&lt;P&gt;Is that a miss in the return statement from database query or something?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 21:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199573#M23654</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-11T21:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199574#M23655</link>
      <description>&lt;P&gt;I see this has been addressed in 1.1.2, thanks!&lt;/P&gt;

&lt;P&gt;However, I fear the fix may have added a new bug. See line 14 of dbquery.py:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ent = en.getEntity(["dbx", "databases"], entityName=dbn, namespace="dbx", owner="nobody", sessionKey=sessionKey)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That loads the REST endpoint using the namespace &lt;CODE&gt;/servicesNS/nobody/dbx/...&lt;/CODE&gt;, which works well for app- or global-shared objects. Sadly this breaks privately held DB connection objects. In order to fix that, replace with these two lines (next comment):&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199574#M23655</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-03T08:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199575#M23656</link>
      <description>&lt;P&gt;...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;currentUser = settings['owner']
ent = en.getEntity(["dbx", "databases"], entityName=dbn, namespace="dbx", owner=currentUser, sessionKey=sessionKey)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Apr 2014 08:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199575#M23656</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-03T08:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect - access restrictions to database connections not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199576#M23657</link>
      <description>&lt;P&gt;Yes, the current implementation is sub-optimal, but it was too risky to try to fix that issue comprehensively.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 16:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/DB-Connect-access-restrictions-to-database-connections-not/m-p/199576#M23657</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-04-03T16:39:57Z</dc:date>
    </item>
  </channel>
</rss>

