<?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 Splunk DB Connect access control not working as expected with dbxquery command in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-access-control-not-working-as-expected-with/m-p/611554#M77549</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am trying to implement some access control with DB Connect.&lt;/P&gt;&lt;P&gt;I want to do something basic like:&lt;/P&gt;&lt;P&gt;- users from role_a can only query db_a&lt;BR /&gt;- users from role_b can only query db_b&lt;/P&gt;&lt;P&gt;So I have meta files below:&lt;/P&gt;&lt;P&gt;default.meta:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[]
access = read [ admin , role_a, role_b ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;local.meta:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[db_connections/db_a]
access = read [ role_a ]

[identities/db_a]
access = read [ role_a ]

[db_connections/db_b]
access = read [ role_b ]

[identities/db_b]
access = read [ role_b ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result, when logged in as a user from role_a, as expected, I cannot see db_b connection/identity.&lt;/P&gt;&lt;P&gt;However, I am still able to retrieve data from db_b using dbxquery:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery "select ..." connection=db_b&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will still work despite not having read access to db_b connection/identity objects.&lt;/P&gt;&lt;P&gt;Is there an additional metadata entry to limit dbxquery access to specified connections/identities, or dbxquery command does not take care of object permissions at all?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 08:03:10 GMT</pubDate>
    <dc:creator>alhoctamis</dc:creator>
    <dc:date>2022-09-01T08:03:10Z</dc:date>
    <item>
      <title>Splunk DB Connect access control not working as expected with dbxquery command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-access-control-not-working-as-expected-with/m-p/611554#M77549</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am trying to implement some access control with DB Connect.&lt;/P&gt;&lt;P&gt;I want to do something basic like:&lt;/P&gt;&lt;P&gt;- users from role_a can only query db_a&lt;BR /&gt;- users from role_b can only query db_b&lt;/P&gt;&lt;P&gt;So I have meta files below:&lt;/P&gt;&lt;P&gt;default.meta:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[]
access = read [ admin , role_a, role_b ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;local.meta:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[db_connections/db_a]
access = read [ role_a ]

[identities/db_a]
access = read [ role_a ]

[db_connections/db_b]
access = read [ role_b ]

[identities/db_b]
access = read [ role_b ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result, when logged in as a user from role_a, as expected, I cannot see db_b connection/identity.&lt;/P&gt;&lt;P&gt;However, I am still able to retrieve data from db_b using dbxquery:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery "select ..." connection=db_b&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will still work despite not having read access to db_b connection/identity objects.&lt;/P&gt;&lt;P&gt;Is there an additional metadata entry to limit dbxquery access to specified connections/identities, or dbxquery command does not take care of object permissions at all?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 08:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-access-control-not-working-as-expected-with/m-p/611554#M77549</guid>
      <dc:creator>alhoctamis</dc:creator>
      <dc:date>2022-09-01T08:03:10Z</dc:date>
    </item>
  </channel>
</rss>

