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
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...