WIth Wazuh 4.3 it is quite difficult to change the admin password of Opensearch.
I understand that this is more of an Opensearch issue than a Wazuh issue.
However, I am commenting on the usage of the wazuh-opendistro-passwords-tool.sh and the documentation on Wazuh docs (4.3) linked below.
The issue is that the tool doesn't currently seem to work with Opensearch.
Outside of the tool, the method I was using for password reset on Opendistro (pre 4.3 Wazuh) was the one linked below.
This method seems to come with its own set of issues on Opensearch (on docker).
Requested resolution
Update wazuh-opendistro-passwords-tool.sh to include opensearch
Update documentation on this specific to opensearch
Only sane solution which worked for me
- Change value of reserved to false for the user 'admin' in internal_users.yml in /wazuh-docker/single-node/config/wazuh_indexer before bringing up the cluster.
admin:
hash: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
reserved: false (this was true)
backend_roles:
- "admin"
description: "Demo admin user"
I am not sure if this is the best solution to change the admin user from read-only mode. Please let me know if there is a better way of doing this.