You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading all images from v4.3.4 to v4.3.5, the dashboard is not able to authenticate within the wazuh-indexer using the custom credentials created for the kibanaserver user.
Logs from wazuh-dashboard pod: {"type":"log","@timestamp":"2022-06-30T20:23:22Z","tags":["error","opensearch","data"],"pid":43,"message":"[ResponseError]: Response Error"}
Logs from wazuh-indexer-0 pod: [2022-06-30T20:24:24,893][WARN ][o.o.s.a.BackendRegistry ] [wazuh-indexer-0] Authentication finally failed for kibanaserver from <dashboard_ip>:37240
They're both using the same internal_users and secrets files since v4.3.3. After rolling back the wazuh-dashboard image to v4.3.4, the authentication works again.
Additional information
After noticing the error, I deleted all configmaps and secrets in order to start the new deploy with a brand new configuration environment.
To debug the problem, I executed a cURL from the wazuh-manager-master-0 pod using the same kibanaserver user and password configurated in the secrets file and the response was OK:
I also retrieved all the environment variables present in the wazuh-dashboard pod related to the dashboard and the user and password were present:
The issue persisted until I rollback the wazuh-dashboard image.
Procedure used to change the kibanaserver password
First updated the dashboard-cred secrets file. Then, used a simple wazuh-indexer v4.3.3 pod to generate the new password hash through the tool provided by opensearch located in plugins/opensearch-security/tools/hash.sh. With the new hash, I updated the repository's internal_users file.
Upgrade process
I'm using the image wazuh/wazuh-dashboard:4.3.5 , my upgrade procedure was to simply change the image tag from 4.3.4 to 4.3.5 on wazuh/wazuh-dashboard, wazuh/wazuh-indexer and both wazuh/wazuh-manager. Than I reapply all the files using kustomize. This processes worked fine for the upgrade from v4.3.3 to v4.3.4
The text was updated successfully, but these errors were encountered:
Hi @Zaulao.
Thanks for reporting this issue.
We have created the following PR to correct this behavior. The cause was that some old changes were introduced to the Dockerfile and the dashboard keystore was being created during the image build. We have also added a change in the entrypoint.sh to overwrite the keystore in case it is already created. This will be useful when the DASHBOARD_PASSWORD is updated.
Once is merged, we will push the Wazuh dashboard image again to Docker Hub.
Overall
After upgrading all images from v4.3.4 to v4.3.5, the dashboard is not able to authenticate within the wazuh-indexer using the custom credentials created for the
kibanaserver
user.Logs from wazuh-dashboard pod:
{"type":"log","@timestamp":"2022-06-30T20:23:22Z","tags":["error","opensearch","data"],"pid":43,"message":"[ResponseError]: Response Error"}
Logs from wazuh-indexer-0 pod:
[2022-06-30T20:24:24,893][WARN ][o.o.s.a.BackendRegistry ] [wazuh-indexer-0] Authentication finally failed for kibanaserver from <dashboard_ip>:37240
They're both using the same
internal_users
and secrets files sincev4.3.3
. After rolling back the wazuh-dashboard image tov4.3.4
, the authentication works again.Additional information
After noticing the error, I deleted all configmaps and secrets in order to start the new deploy with a brand new configuration environment.
To debug the problem, I executed a cURL from the
wazuh-manager-master-0
pod using the samekibanaserver
user and password configurated in the secrets file and the response was OK:I also retrieved all the environment variables present in the
wazuh-dashboard
pod related to the dashboard and the user and password were present:The issue persisted until I rollback the wazuh-dashboard image.
Procedure used to change the kibanaserver password
First updated the dashboard-cred secrets file. Then, used a simple wazuh-indexer
v4.3.3
pod to generate the new password hash through the tool provided by opensearch located inplugins/opensearch-security/tools/hash.sh
. With the new hash, I updated the repository's internal_users file.Upgrade process
I'm using the image
wazuh/wazuh-dashboard:4.3.5
, my upgrade procedure was to simply change the image tag from4.3.4
to4.3.5
onwazuh/wazuh-dashboard
,wazuh/wazuh-indexer
and bothwazuh/wazuh-manager
. Than I reapply all the files using kustomize. This processes worked fine for the upgrade fromv4.3.3
tov4.3.4
The text was updated successfully, but these errors were encountered: