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

pass4SymmKey setting causes restarts of splunk #197

Closed
rbclark opened this issue Sep 21, 2018 · 2 comments
Closed

pass4SymmKey setting causes restarts of splunk #197

rbclark opened this issue Sep 21, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@rbclark
Copy link
Contributor

rbclark commented Sep 21, 2018

Affected Puppet, Ruby, OS and module versions/distributions

Puppet: 4.10.6
Ruby: 2.0.0p648
Distribution: RedHat
Module version: 7.2.0

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

splunk_server { 'clustering/pass4SymmKey':
  value => "password",
}

What are you seeing

The password is set and splunk automatically encrypts it using its splunk.secret, however splunk and puppet then begin fighting over the password line, with puppet changing it back to the unencrypted password and restarting splunk (and then splunk changing it back to the encrypted password).

What behaviour did you expect instead

The password to be set and not keep changing back and forth, and splunk to not restart every run.

Any additional information you'd like to impart

Unfortunately, it seems that splunk attempts to hold their method of encrypting files very close, so implementing the encryption of the file inside of puppet may be difficult. I have had a few thoughts about generating a shasum of the password and using that to verify the password hasn't changed since last run, but even that is difficult since technically the server.secret can change and the password would then not be updated accordingly (unless puppet is also managing the server.secret).

@rbclark
Copy link
Contributor Author

rbclark commented Sep 22, 2018

I'm not sure if there is a reason this isn't the case already, however this may be the best argument I can make for implementing the puppet_inifile refreshonly parameter. This would mean that I could write some hashed value of my password to a file, and subscribe to it with the clustering/pass4SymmKey resource, which seems like a bit of a hack but would probably work.

@kenyon kenyon added the bug Something isn't working label Mar 22, 2024
@kenyon
Copy link
Member

kenyon commented Mar 22, 2024

Closing as fixed by #362.

@kenyon kenyon closed this as completed Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants