wazuh-helm
wazuh-helm copied to clipboard
Incorrect / missing templating for kibana username
With this commit from 5 days ago you can now set a different user instead of the "kibanaserver".
After setting it to a different username, the dashboard isn't starting anymore:
{"type":"log","@timestamp":"2025-08-16T09:39:31Z","tags":["error","opensearch","data"],"pid":55,"message":"[ResponseError]: Response Error"}
If I set it back to kibanaserver it's working again. Problem: hardcoded string somewhere.
The commit unfortunately did not cover all templating for the user. In the _helper.tpl are several occasions where the hardcoded kibanaserver is still used resulting in the above mentioned problem.
- https://github.com/morgoved/wazuh-helm/blob/main/charts/wazuh/templates/_helpers.tpl#L1410
- https://github.com/morgoved/wazuh-helm/blob/main/charts/wazuh/templates/_helpers.tpl#L1523
- https://github.com/morgoved/wazuh-helm/blob/main/charts/wazuh/templates/_helpers.tpl#L1546
I think this should be replaced with "{{ .Values.indexer.cred.username }}".
Pinging @TrueDru for the commit.