Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default location of splunk.secret is wrong? #324

Closed
martijndegouw opened this issue Oct 4, 2021 · 3 comments · Fixed by #378
Closed

default location of splunk.secret is wrong? #324

martijndegouw opened this issue Oct 4, 2021 · 3 comments · Fixed by #378

Comments

@martijndegouw
Copy link
Contributor

martijndegouw commented Oct 4, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.24
  • Ruby:
  • Distribution: Debian 10
  • Module version: 9.0.0
  • Splunk version: 8.1.0

How to reproduce (e.g Puppet code you use)

What are you seeing

I noticed that in params.pp the secret file location is set to '${homedir}/etc/splunk.secret'.

What behaviour did you expect instead

In our instances the splunk.secret file is in ${homedir}/etc/auth/. Also in splunk::enterprise::service::nix the /etc/auth/splunk.secret is used as hard-coded location for the exec creates.

Output log

Any additional information you'd like to impart

I was wondering if this default is correct, and, if yes, which magic I'm missing here. If the default location is indeed incorrect I can supply a patch for this.

@jacobevanstmx
Copy link

jacobevanstmx commented Oct 9, 2021

Both of my environments have it at ${homedir}/etc/auth/splunk.secret as you suggest.

Forwarder installed by Puppet:
VERSION=8.2.2
BUILD=87344edfcdb4
PRODUCT=splunk
PLATFORM=Linux-x86_64

Enterprise never touched by Puppet:
VERSION=8.1.4
BUILD=17f862b42a7c
PRODUCT=splunk
PLATFORM=Linux-x86_64

@martijndegouw
Copy link
Contributor Author

The oldest version I was able to check for the splunk.secret location is version 6.3.14. This version already has this file in etc/auth.

@luedderd
Copy link
Contributor

Looking through Splunk's official documentation from 7.0.0-9.3.0, the location for the splunk.secret file should be $SPLUNK_HOME/etc/auth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants