puppet-splunk icon indicating copy to clipboard operation
puppet-splunk copied to clipboard

default location of splunk.secret is wrong?

Open martijndegouw opened this issue 4 years ago • 2 comments

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.

martijndegouw avatar Oct 04 '21 19:10 martijndegouw

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

jacobevanstmx avatar Oct 09 '21 00:10 jacobevanstmx

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.

martijndegouw avatar Oct 12 '21 07:10 martijndegouw

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.

luedderd avatar Aug 20 '24 19:08 luedderd