splunk / slack-alerts

Splunk custom alert action for sending messages to Slack channels
https://splunkbase.splunk.com/app/2878/
Apache License 2.0
18 stars 12 forks source link

App forgets OAuth Configuration #51

Open roberteckdale opened 9 months ago

roberteckdale commented 9 months ago

Describe the bug Recently switched from using Webhooks to OAuth and have run into an issue were the app 'forgets' its OAuth config. Alerts will work for a few days and then just stop. If you go to the app config page the OAuth token field will be empty.

To Reproduce Steps to reproduce the behavior:

  1. Configure app to use OAuth token per documentation
  2. Wait a few days (up to 6)
  3. When alerts stop functioning, go to app setup and you'll see the OAuth token field is empty.

Expected behavior I would expect the configured OAuth token configuration to be permanently saved

Screenshots If applicable, add screenshots to help explain your problem.

Splunk Environment:

Additional context Add any other context about the problem here.

roberteckdale commented 9 months ago

Just took a look at the default\alerts_actions.conf file and it does appear that the app has a parameter for the OAuth token. I'm just going to use Puppet to configure this value which should resolve the issue.