Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to connect to API in Web UI after changing API user passwords using wazuh-passwords-tool.sh #22751

Closed
stumpf84 opened this issue Apr 5, 2024 · 2 comments · Fixed by wazuh/wazuh-packages#2946
Assignees
Labels

Comments

@stumpf84
Copy link

stumpf84 commented Apr 5, 2024

Wazuh version Component Install type Install method Platform
4.7.3 wazuh-passwords-tool.sh Manager Ansible Ubuntu 22.04

Problem:
Changing all passwords, including the API user passwords, using:

bash wazuh-passwords-tool.sh -a -au wazuh -ap <wazuh_pass>

results in failing to connect to the API in the health check of the Web UI.

Could not connect to API id [default]: 3099- ERROR3099 - Invalid credentials

Cause:
The password in /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml is set to the newly created wazuh-wui password but the username is set to 'wazuh'.

Solution:
Changing username in /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml from 'wazuh' to 'wazuh-wui'.

@CarlosALgit
Copy link
Member

This issue goes "On hold" due to priority to these issues: #23251 #23252

@teddytpc1
Copy link
Member

Update

The script should verify what user is configured in the wazuh.yml file, and change the password according to that.

For the Wazuh Ansible deployment, we have to open a new issue in the wazuh-ansible repository to change the default user from wazuh to wazuh-wui for the wazuh.yml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
4 participants