<?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 encrypt and decrypt  values in my conf files in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59115#M1981</link>
    <description>&lt;P&gt;@robertlight, you should check out this blog post: &lt;A href="http://www.georgestarcher.com/splunk-alert-scripts-automating-control/"&gt;http://www.georgestarcher.com/splunk-alert-scripts-automating-control/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It covers how to use encrypted credentials in scripted inputs.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2015 15:49:09 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2015-08-27T15:49:09Z</dc:date>
    <item>
      <title>How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59110#M1976</link>
      <description>&lt;P&gt;I want to encrypt some values in my conf files.&lt;/P&gt;

&lt;P&gt;I have referred the example in the following documentation to modify the values. It works but I want some values to be encrypted, like passwords in app.conf or authentication.conf. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/Developer/SetupExampleCustom"&gt;"Setup screen example using a custom endpoint"&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysetting.conf
[settingentity]
field_1 = password
field_2_boolean = 1
field_3 = 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when I use them, they can be decrypted. So they would have to be input only once.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 10:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59110#M1976</guid>
      <dc:creator>lzhang_soliton</dc:creator>
      <dc:date>2012-09-13T10:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59111#M1977</link>
      <description>&lt;P&gt;This would be useful for custom scripts where you need to store a password.  The Splunk DB Connect app (&lt;A href="http://splunk-base.splunk.com/apps/50803/splunk-db-connect"&gt;http://splunk-base.splunk.com/apps/50803/splunk-db-connect&lt;/A&gt;) has automatic encrypting passwords, but perhaps because this app was integrated into Splunk's password encryption routine.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 11:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59111#M1977</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2013-03-13T11:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59112#M1978</link>
      <description>&lt;P&gt;Jason,&lt;BR /&gt;
Thank for your post!&lt;BR /&gt;
DB Connect is a nice app! I have tried it. But I would like a lighter one. I'm now thinking of using custom scripts or third-part library for the purpose as you said.&lt;BR /&gt;
I really appreciate your comments!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 03:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59112#M1978</guid>
      <dc:creator>lzhang_soliton</dc:creator>
      <dc:date>2013-03-14T03:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59113#M1979</link>
      <description>&lt;P&gt;sessionKey is given to scripts (via stdin) when they are called from splunk alerts as they are fired.&lt;/P&gt;

&lt;P&gt;I still don't see how I can decrypt something like auth_password from alert_actions.conf&lt;/P&gt;

&lt;P&gt;Has anyone figured this out?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59113#M1979</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2020-09-29T07:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59114#M1980</link>
      <description>&lt;P&gt;I have tried the following WITHOUT success:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sessionKey = sys.stdin.readline()
 sessionKey = sessionKey[len("sessionKey="):]

ent = entity.getEntity('admin/alert_actions', 'email',namespace='myAppName', owner='nobody', sessionKey=sessionKey)
if 'auth_username' in ent and 'clear_password' in ent:
   print("auth_username="+ent["auth_username"]+"   clear_password="+ent["clear_password"])
else:
   print("entity info not found!!")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Aug 2015 18:49:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59114#M1980</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2015-08-26T18:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59115#M1981</link>
      <description>&lt;P&gt;@robertlight, you should check out this blog post: &lt;A href="http://www.georgestarcher.com/splunk-alert-scripts-automating-control/"&gt;http://www.georgestarcher.com/splunk-alert-scripts-automating-control/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It covers how to use encrypted credentials in scripted inputs.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59115#M1981</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-08-27T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59116#M1982</link>
      <description>&lt;P&gt;The correct way to get the sessionKey off of stdin is the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sessionKey = urllib.unquote( sys.stdin.readline().strip()[ len("sessionKey="):] ).decode('utf8')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Many thanks to George Starcher for the solution above (for versions &amp;gt; 6.1)&lt;/P&gt;

&lt;P&gt;SPLUNK DOC FOLKS - Neither George, nor I were able to find this tidbit from the splunk docs.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:31:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59116#M1982</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2015-09-08T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59117#M1983</link>
      <description>&lt;P&gt;No problem.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59117#M1983</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2015-09-08T14:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59118#M1984</link>
      <description>&lt;P&gt;Here's how I did it:&lt;/P&gt;

&lt;P&gt;sessionKey = cherrypy.session['sessionKey']&lt;BR /&gt;
ent = entity.getEntity('admin/alert_actions', 'email', namespace='myApp', owner='admin', sessionKey=sessionKey)&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 14:31:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59118#M1984</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2015-10-21T14:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59119#M1985</link>
      <description>&lt;P&gt;George - do  you have any ideas on how to store and retrieve encrypted parameters without requiring the user to have 'admin_all_objects' capability??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59119#M1985</guid>
      <dc:creator>robertlight</dc:creator>
      <dc:date>2020-09-29T07:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to encrypt and decrypt  values in my conf files</title>
      <link>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59120#M1986</link>
      <description>&lt;P&gt;I have this very same issue but with multiple sets of username and passwords in a single app.  The specific use case is that the scripted input invokes three HTTPS endpoints each with its own set of credentials.  In addition, each endpoint has custom fields that it uses to configure the connection to the respective endpoint.  Any idea how this can be achieved?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 19:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-encrypt-and-decrypt-values-in-my-conf-files/m-p/59120#M1986</guid>
      <dc:creator>sureshks</dc:creator>
      <dc:date>2017-04-03T19:44:19Z</dc:date>
    </item>
  </channel>
</rss>

