scalyr / dataset-addon-for-splunk

The DataSet Add-on for Splunk provides integration with
Apache License 2.0
3 stars 10 forks source link

DPDV-4642: Propagate error to the UI #98

Closed martin-majlis-s1 closed 10 months ago

martin-majlis-s1 commented 10 months ago

Jira Link: https://sentinelone.atlassian.net/browse/DPDV-4642 Jira Link: https://sentinelone.atlassian.net/browse/DPDV-4549

πŸ₯… Goal

When the account is not configured, it was showing instructions to check "search logs". This is not quite useful.

πŸ› οΈ Solution

Now it produces error that is shown in UI, so people do not have to consult the logs. Where is no useful message anyways.

🏫 Testing

I have walked through the code and I have adjusted some places so better error message is produced:

martin-majlis-s1 commented 10 months ago

Install old version:

  1. Install version 1.5.1
  2. Add account with access keys
  3. Search works

Install the latest version:

  1. Install version 2.0.58
  2. Go to Configuration β†’ Account
  3. You can see, that you account is there
  4. Search is now showing an error - Couldn't decode API token ... - it’s because although they use the same config, somehow the encryption is different.

Update keys:

  1. Go to Configuration β†’ Account - and insert API keys again
  2. Now the search in new version works
  3. Profit