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

Fixed manager check in distributed deployment #52

Merged
merged 3 commits into from
Sep 12, 2024

Conversation

davidcr01
Copy link
Contributor

Description

Closes: #51
The aim of this PR is to fix the Wazuh manager service check distributed deployments. The fix consists in changing the credentials when getting the API token in the Wazuh manager worker nodes. These nodes are installed after the master node, and the master node changes the API passwords, so the worker node must use the changed password.

Apart from the fix, a new validation has been added to the loop to check that the API token is not empty. The new validation controls if the API generates a cluster error, which is produced when the master and worker nodes are installed simultaneously. This scenario is not contemplated in the documentation, as the manager nodes are installed sequentially. However, with this improvement, the Wazuh manager installation will not fail if the nodes are installed simultaneously, for example, when using an Ansible playbook.

Testing

Testing is in: #51 (comment)

@davidcr01 davidcr01 requested a review from a team September 11, 2024 13:32
@davidcr01 davidcr01 self-assigned this Sep 11, 2024
@davidcr01 davidcr01 linked an issue Sep 11, 2024 that may be closed by this pull request
3 tasks
c-bordon
c-bordon previously approved these changes Sep 11, 2024
@c-bordon c-bordon merged commit 485e361 into 4.10.0 Sep 12, 2024
0 of 2 checks passed
davidcr01 added a commit that referenced this pull request Sep 12, 2024
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.

Manager check service fails in distributed deployment
4 participants