<?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: How to delete password of inputs.conf from a modular input? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631483#M108227</link>
    <description>&lt;P&gt;I saw this posts and I adapted the solutions provided using the templates on splunk-app-examples repository. I have now working the modular input and I can create the password as shown before but my issue is more with deleting the plain inputs.conf password and use only the cyphered password on the storage passwords container.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Feb 2023 19:56:57 GMT</pubDate>
    <dc:creator>ivan5593</dc:creator>
    <dc:date>2023-02-19T19:56:57Z</dc:date>
    <item>
      <title>How to delete password of inputs.conf from a modular input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631010#M108163</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have created a modular input using the example of splunk-app-example. It extends the class Script and I modified the get_scheme function adding arguments&lt;/P&gt;
&lt;P&gt;(example) key_secret = Argument("key_secret") key_secret.title = "Key Secret" key_secret.data_type = Argument.data_type_string key_secret.required_on_create = True&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code allows to save key_secret as a plain string, which is clearly unsecure. Investigating I reached to the storage_password endpoints, and I added the following to stream_events method:&lt;/P&gt;
&lt;P&gt;if key_secret != "":&lt;/P&gt;
&lt;P&gt;secrets = self.service.storage_passwords&lt;/P&gt;
&lt;P&gt;storage_passwords = self.service.storage_passwords&lt;/P&gt;
&lt;P&gt;storage_password = storage_passwords.create(key_secret, key_id, tenant) input_item.update({"key_secret": ""})&lt;/P&gt;
&lt;P&gt;else:&lt;/P&gt;
&lt;P&gt;key_secret = next(secret for secret in secrets if (secret.realm == tenant and secret.username == key_id)).clear_password&lt;/P&gt;
&lt;P&gt;This is not working, as I cannot modify the input definition, is storing both in storage_passwords and in inputs.conf. Is there any way in code to delete the inputs.conf password, or what is the correct way to manage this?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 20:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631010#M108163</guid>
      <dc:creator>ivan5593</dc:creator>
      <dc:date>2023-02-15T20:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete password of inputs.conf from a modular input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631154#M108178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246888"&gt;@ivan5593&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;see these link to store an encrypted password in Splunk:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/store-encrypted-secrets-in-a-splunk-app.html#:~:text=To%20store%20a%20secret%20in,a%20secret%20from%20the%20passwords" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/store-encrypted-secrets-in-a-splunk-app.html#:~:text=To%20store%20a%20secret%20in,a%20secret%20from%20the%20passwords&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/security/storing-encrypted-credentials.html?_ga=2.20827064.164275633.1647202914-2144719424.1634111818&amp;amp;_gac=1.26356303.1648138710.CjwKCAjwrfCRBhAXEiwAnkmKmbCHk9mDoX7lbkAx6nO-uQZ16zPzb_egLcEQpg3wmh8PmVk5vBFYAxoCZNUQAvD_BwE&amp;amp;_gl=1*ekcpst*_ga*MjE0NDcxOTQyNC4xNjM0MTExODE4*_gid*MTY0Mjc1NjMzLjE2NDcyMDI5MTQ.*_gac*Q2p3S0NBandyZkNSQmhBWEVpd0Fua21LbWJDSGs5bURvWDdsYmtBeDZuTy11UVoxNnpQemJfZWdMY0VRcGczd21oOFBtVms1dkJGWUF4b0NaTlVRQXZEX0J3RS4xNjQ4MTM4NzEw" target="_blank"&gt;https://www.splunk.com/en_us/blog/security/storing-encrypted-credentials.html?_ga=2.20827064.164275633.1647202914-2144719424.1634111818&amp;amp;_gac=1.26356303.1648138710.CjwKCAjwrfCRBhAXEiwAnkmKmbCHk9mDoX7lbkAx6nO-uQZ16zPzb_egLcEQpg3wmh8PmVk5vBFYAxoCZNUQAvD_BwE&amp;amp;_gl=1*ekcpst*_ga*MjE0NDcxOTQyNC4xNjM0MTExODE4*_gid*MTY0Mjc1NjMzLjE2NDcyMDI5MTQ.*_gac*Q2p3S0NBandyZkNSQmhBWEVpd0Fua21LbWJDSGs5bURvWDdsYmtBeDZuTy11UVoxNnpQemJfZWdMY0VRcGczd21oOFBtVms1dkJGWUF4b0NaTlVRQXZEX0J3RS4xNjQ4MTM4NzEw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 08:05:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631154#M108178</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-16T08:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete password of inputs.conf from a modular input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631483#M108227</link>
      <description>&lt;P&gt;I saw this posts and I adapted the solutions provided using the templates on splunk-app-examples repository. I have now working the modular input and I can create the password as shown before but my issue is more with deleting the plain inputs.conf password and use only the cyphered password on the storage passwords container.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 19:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631483#M108227</guid>
      <dc:creator>ivan5593</dc:creator>
      <dc:date>2023-02-19T19:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete password of inputs.conf from a modular input?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631513#M108234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246888"&gt;@ivan5593&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you call the moduls input by Splunk, the password is automatically encrypted, so you can delete (if present) another input.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 06:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-password-of-inputs-conf-from-a-modular-input/m-p/631513#M108234</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-20T06:47:21Z</dc:date>
    </item>
  </channel>
</rss>

