Deployment Architecture

Is it possible to access the Splunk CLI locally without credentials, or limit credentials just to the local host?

FritzWittwer_ol
Contributor

I have a script which runs on the deployment server and maintains the contents of ../deployment-apps/... out of a git repository. After any change, it should reload the deployment server and thus needs some credentials. I can of course create a local user inside of Splunk just for this purpose, but it seems I have to grant this user admin privileges. I would have to store this user and its password in the script. If someone gets hold of this script, this person has the credentials with grant admin privileges to the deployment server, not really desired.

Preferred behavior would be to have a user in Splunk which allows access only from the local host via CLI, and only if executed from the same OS user under which splunkd is running. This would eliminate the risks as only one local user is able to use it, and this OS user is able to restart splunkd anyway.

Another solution would be to have a user which is limited to just the local CLI. Not as secure as above, but at least remote access would be excluded.

0 Karma

ryanoconnor
Builder

I understand wanting to limit this. If you wanted to limit the capability to reloading the deployment server, according to a confirmed Splunk Answers Post found here:

https://answers.splunk.com/answers/148344/what-are-the-minimum-capabilities-needed-to-modify-and-pus...

All you should need is the edit_deployment_server role.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...