<?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: Password field for Modular Input using Python SDK in Security</title>
    <link>https://community.splunk.com/t5/Security/Password-field-for-Modular-Input-using-Python-SDK/m-p/93638#M3096</link>
    <description>&lt;P&gt;You need to create a custom Splunk manager page for your modular input to hide the password and add a password confirmation field.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/ModInputsCustomizeUI"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/ModInputsCustomizeUI&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When you create an element for your password field, use &lt;CODE&gt;type="password"&lt;/CODE&gt;. Make sure that you only set this for 'edit' and 'create' views, not 'list', so the password isn't displayed when the modular input is listed.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2015 00:29:42 GMT</pubDate>
    <dc:creator>shaskell_splunk</dc:creator>
    <dc:date>2015-03-03T00:29:42Z</dc:date>
    <item>
      <title>Password field for Modular Input using Python SDK</title>
      <link>https://community.splunk.com/t5/Security/Password-field-for-Modular-Input-using-Python-SDK/m-p/93637#M3095</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I'm trying to write a python app that requires a username and a password.  I've written most of it up using the Python SDK and now that I'm getting into the nitty gritty, I want to encrypt and hide the password value for security purposes.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAER3" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAER3&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I've used the above URL as a guide, but when I did a search on password fields, I found this article instead.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/AdvancedDev/ModInputsExample" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/AdvancedDev/ModInputsExample&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In the second link, it creates a password field using the XML scheme, but I can't find an equivalent for the python code.&lt;/P&gt;

&lt;P&gt;I took a look in the (I'm not at my devel pc at the moment) splunklib/modularinput folder and I believe in the arguments module, there is only templates for string, number and float, eg data_type_number, data_type_string, etc.&lt;/P&gt;

&lt;P&gt;Is there a way I can code this in Python in a way Splunk will understand or will I need to change my scheme to incorporate the xml?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Password-field-for-Modular-Input-using-Python-SDK/m-p/93637#M3095</guid>
      <dc:creator>stephenho</dc:creator>
      <dc:date>2020-09-28T14:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Password field for Modular Input using Python SDK</title>
      <link>https://community.splunk.com/t5/Security/Password-field-for-Modular-Input-using-Python-SDK/m-p/93638#M3096</link>
      <description>&lt;P&gt;You need to create a custom Splunk manager page for your modular input to hide the password and add a password confirmation field.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/ModInputsCustomizeUI"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/AdvancedDev/ModInputsCustomizeUI&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When you create an element for your password field, use &lt;CODE&gt;type="password"&lt;/CODE&gt;. Make sure that you only set this for 'edit' and 'create' views, not 'list', so the password isn't displayed when the modular input is listed.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2015 00:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Password-field-for-Modular-Input-using-Python-SDK/m-p/93638#M3096</guid>
      <dc:creator>shaskell_splunk</dc:creator>
      <dc:date>2015-03-03T00:29:42Z</dc:date>
    </item>
  </channel>
</rss>

