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

Wazuh password tool now recognize UI created users #2558

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

davidcr01
Copy link
Contributor

Description

Related issue: #2503

The aim of this PR is to allow the Wazuh password tool to work for users created through the UI. Until now, these users were not in the internal_users.yml file so the Wazuh password tool did not recognize them. Using the securityadmin tool and updating the internal users before reading them fixes the problem.

Two more changes have been added:

  • The new generated hash is fixed and now it is contained with double quotes in the internal_users.yml file.
  • A backup of the internal users is made and saved in the /etc/wazuh-indexer/internal_users_backup with the following name: internal_users_<datetime>.yml.bkp before changing the passwords.

Testing

The testing has been done in: #2503 (comment)

@davidcr01 davidcr01 self-assigned this Oct 25, 2023
vcerenu
vcerenu previously approved these changes Oct 25, 2023
c-bordon
c-bordon previously approved these changes Oct 25, 2023
@teddytpc1 teddytpc1 linked an issue Oct 25, 2023 that may be closed by this pull request
teddytpc1
teddytpc1 previously approved these changes Oct 25, 2023
@davidcr01 davidcr01 dismissed stale reviews from teddytpc1, c-bordon, and vcerenu via 67f2bd9 October 25, 2023 13:04
@teddytpc1 teddytpc1 merged commit 5ccdc6e into 4.8.0 Oct 25, 2023
5 of 7 checks passed
@teddytpc1 teddytpc1 deleted the enhancement/2503-wazuh-password-tool-fix-ui-users branch October 25, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wazuh password tool should work for users created through the UI
4 participants