<?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: Authentication in an External Lookup REST call in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-those-authentication-credentials-editable-through/m-p/642277#M222487</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm afraid, I have a similar problem. I developed an &lt;STRONG&gt;external lookup&lt;/STRONG&gt; in Python which makes an API call using a password authentication.&lt;/P&gt;&lt;P&gt;When I submitted my app to Splunkbase, the result was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; check_for_secret_disclosure

    Password is being stored in plain text. Client's secret must be stored in encrypted format. You can use this reference for manage secret storage
    https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/secretstorage/
    File: appserver/static/javascript/views/app.js Line: 95&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no problem to write the password in passwords.conf. I followed the example in &lt;A href="https://github.com/splunk/splunk-app-examples/tree/master/setup_pages/weather_app_example" target="_blank" rel="noopener"&gt;Weather App Example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The problem starts when I need to &lt;STRONG&gt;read &lt;/STRONG&gt;the password from the Python external lookup script! Splunk &lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/secretstorage/secretstoragepython" target="_blank" rel="noopener"&gt;general documentation&lt;/A&gt; suggests to use a &lt;A href="https://haydz.github.io/2021/01/02/Python-Connect-Splunk.html" target="_blank" rel="noopener"&gt;client.connect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Client.connect&lt;/EM&gt; need a Splunk user authentication, so another secret. I can find a method to read the secret as the &lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;splunklib&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;searchcommands&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt; allows.&lt;/P&gt;&lt;P&gt;I have Splunk Enterprise, so I could leave the API password clear, but I would like to use the &lt;EM&gt;secretstorage&lt;/EM&gt; as suggested.&lt;/P&gt;&lt;P&gt;How can I fix this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 11:04:42 GMT</pubDate>
    <dc:creator>sistemistiposta</dc:creator>
    <dc:date>2023-05-04T11:04:42Z</dc:date>
    <item>
      <title>How can I make those authentication credentials editable through a graphical interface/dashboard in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-those-authentication-credentials-editable-through/m-p/526973#M148735</link>
      <description>&lt;P&gt;I have a Python script in an External Lookup app which makes REST GET calls to a third party endpoint which requires basic authentication (username/password).&lt;/P&gt;
&lt;P&gt;How can I make those authentication credentials editable through a graphical interface/dashboard in Splunk?&lt;/P&gt;
&lt;P&gt;This answer states that there is no way to pass authentication into External Lookup scripts:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Pros-and-Cons-External-lookup-script-vs-custom-search-command/m-p/15922" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-Search/Pros-and-Cons-External-lookup-script-vs-custom-search-command/m-p/15922&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am aware of the possibility to create a setup page (&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/setuppage/" target="_blank" rel="noopener"&gt;https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/setuppage/&lt;/A&gt;) for my app so credentials can be written into a custom conf file in the "&amp;lt;app_name&amp;gt;/local" folder and then parsed by the Python script but the credentials would be readable due to being&amp;nbsp; written in plaintext. Is there a way to obfuscate the credentials but then easily use them through Python?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 13:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-those-authentication-credentials-editable-through/m-p/526973#M148735</guid>
      <dc:creator>JerryLives</dc:creator>
      <dc:date>2023-05-04T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication in an External Lookup REST call</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-those-authentication-credentials-editable-through/m-p/642277#M222487</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm afraid, I have a similar problem. I developed an &lt;STRONG&gt;external lookup&lt;/STRONG&gt; in Python which makes an API call using a password authentication.&lt;/P&gt;&lt;P&gt;When I submitted my app to Splunkbase, the result was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; check_for_secret_disclosure

    Password is being stored in plain text. Client's secret must be stored in encrypted format. You can use this reference for manage secret storage
    https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/secretstorage/
    File: appserver/static/javascript/views/app.js Line: 95&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no problem to write the password in passwords.conf. I followed the example in &lt;A href="https://github.com/splunk/splunk-app-examples/tree/master/setup_pages/weather_app_example" target="_blank" rel="noopener"&gt;Weather App Example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The problem starts when I need to &lt;STRONG&gt;read &lt;/STRONG&gt;the password from the Python external lookup script! Splunk &lt;A href="https://dev.splunk.com/enterprise/docs/developapps/manageknowledge/secretstorage/secretstoragepython" target="_blank" rel="noopener"&gt;general documentation&lt;/A&gt; suggests to use a &lt;A href="https://haydz.github.io/2021/01/02/Python-Connect-Splunk.html" target="_blank" rel="noopener"&gt;client.connect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Client.connect&lt;/EM&gt; need a Splunk user authentication, so another secret. I can find a method to read the secret as the &lt;EM&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;splunklib&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;searchcommands&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt; allows.&lt;/P&gt;&lt;P&gt;I have Splunk Enterprise, so I could leave the API password clear, but I would like to use the &lt;EM&gt;secretstorage&lt;/EM&gt; as suggested.&lt;/P&gt;&lt;P&gt;How can I fix this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 11:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-those-authentication-credentials-editable-through/m-p/642277#M222487</guid>
      <dc:creator>sistemistiposta</dc:creator>
      <dc:date>2023-05-04T11:04:42Z</dc:date>
    </item>
  </channel>
</rss>

