<?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 Failed to load  Storage/Passwords endpoint using python SDK in application script? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Failed-to-load-Storage-Passwords-endpoint-using-python-SDK-in/m-p/631642#M10941</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am currently running into this issue where I am unable to store / retrieve any data from my storage/passwords endpoint using the splunk sdk for python.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the message I keep receiving.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-20 at 8.58.31 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23963iE59FE8E277A170E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-02-20 at 8.58.31 PM.png" alt="Screenshot 2023-02-20 at 8.58.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have yet to have success with this but here is the code below:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;EM&gt;def _load_secrets(self)&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; service = client.connect(host="localhost", app="myapp", owner="admin", token=self.sessionKey)&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; self.secrets = service.storage_passwords&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This function gets called in my __init__ function when the object is instantiated.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I am storing the secrets object in a class attribute to be accessible to all functions that would need to interact with this collection.&amp;nbsp; I have tried this in functions outside of the class I have created and this has failed as well.&lt;BR /&gt;&lt;BR /&gt;I have tried changing the owner to "nobody", and I have tried to change the scheme to "http"&amp;nbsp; and setting the verify arg to False, but this has not helped my issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I have passAuth enabled for "splunk-system-user" in my inputs.conf file to allow the use of the session key taken from the standard input ( I am getting the session key without issue).&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;It appears that I am connecting successfully but when I attempt to access the storage/passwords collection it fails.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Ps: I will be storing an apikey and credentials to retrieve them in here. I successfully store the credentials from my JS function for the setup, my issue is only with python. &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Does anyone know how to fix this?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 Feb 2023 15:34:50 GMT</pubDate>
    <dc:creator>davidneil</dc:creator>
    <dc:date>2023-02-21T15:34:50Z</dc:date>
    <item>
      <title>Failed to load  Storage/Passwords endpoint using python SDK in application script?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Failed-to-load-Storage-Passwords-endpoint-using-python-SDK-in/m-p/631642#M10941</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am currently running into this issue where I am unable to store / retrieve any data from my storage/passwords endpoint using the splunk sdk for python.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the message I keep receiving.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-20 at 8.58.31 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23963iE59FE8E277A170E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-02-20 at 8.58.31 PM.png" alt="Screenshot 2023-02-20 at 8.58.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have yet to have success with this but here is the code below:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;EM&gt;def _load_secrets(self)&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; service = client.connect(host="localhost", app="myapp", owner="admin", token=self.sessionKey)&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; self.secrets = service.storage_passwords&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This function gets called in my __init__ function when the object is instantiated.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I am storing the secrets object in a class attribute to be accessible to all functions that would need to interact with this collection.&amp;nbsp; I have tried this in functions outside of the class I have created and this has failed as well.&lt;BR /&gt;&lt;BR /&gt;I have tried changing the owner to "nobody", and I have tried to change the scheme to "http"&amp;nbsp; and setting the verify arg to False, but this has not helped my issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I have passAuth enabled for "splunk-system-user" in my inputs.conf file to allow the use of the session key taken from the standard input ( I am getting the session key without issue).&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;It appears that I am connecting successfully but when I attempt to access the storage/passwords collection it fails.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Ps: I will be storing an apikey and credentials to retrieve them in here. I successfully store the credentials from my JS function for the setup, my issue is only with python. &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Does anyone know how to fix this?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:34:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Failed-to-load-Storage-Passwords-endpoint-using-python-SDK-in/m-p/631642#M10941</guid>
      <dc:creator>davidneil</dc:creator>
      <dc:date>2023-02-21T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to load  Storage/Passwords endpoint using python SDK in application script.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Failed-to-load-Storage-Passwords-endpoint-using-python-SDK-in/m-p/631646#M10942</link>
      <description>&lt;P&gt;I am aware I did not have the semi colon on the function above... typo&lt;/P&gt;&lt;P&gt;Deleted splunk and reinstalled everything, now I am running into this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-20 at 10.22.37 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23964i850D4607448E4233/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-02-20 at 10.22.37 PM.png" alt="Screenshot 2023-02-20 at 10.22.37 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 03:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Failed-to-load-Storage-Passwords-endpoint-using-python-SDK-in/m-p/631646#M10942</guid>
      <dc:creator>davidneil</dc:creator>
      <dc:date>2023-02-21T03:22:48Z</dc:date>
    </item>
  </channel>
</rss>

