splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Encrypted password while connecting to splunk

Open amith-reddy opened this issue 11 years ago • 4 comments

Currently, I give password in a config file but it is visible to everyone. Is it possible to connect using encrypted password to splunk or using ssh keys?

service = client.connect( host=host, port=port, username=userName, password=password)

amith-reddy avatar Mar 14 '15 00:03 amith-reddy

You can use Splunk to store your credentials. Here's an example: http://blogs.splunk.com/2011/03/15/storing-encrypted-credentials/

Alternately, you can handle it outside of Splunk using whatever Python method you like. Here are some ideas: http://stackoverflow.com/questions/7014953/i-need-to-securely-store-a-username-and-password-in-python-what-are-my-options

halr9000 avatar Mar 14 '15 00:03 halr9000

Hi @amith-reddy, as @halr9000 pointed out there are some solutions for you. Can we close this?

shakeelmohamed avatar Jun 01 '15 17:06 shakeelmohamed

I think what is asking for is a way to use encrypted credentials to connect to Splunk itself not just to store them in an encrypted fashion. Is that correct @amith-reddy?

On Mon, Jun 1, 2015 at 10:48 AM Shakeel Mohamed [email protected] wrote:

Hi @amith-reddy https://github.com/amith-reddy, as @halr9000 https://github.com/halr9000 pointed out there are some solutions for you. Can we close this?

— Reply to this email directly or view it on GitHub https://github.com/splunk/splunk-sdk-python/issues/97#issuecomment-107652565 .

glennblock avatar Jun 01 '15 20:06 glennblock

No updates here - so closing.

itay avatar Nov 21 '15 01:11 itay