WIA uses 127.0.0.1
instead of localhost
in dashboard configuration
#2797
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The aim of this PR is to revert the changes of the following PR: #2422
Besides, this PR makes the
/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
file point to127.0.0.1
IP address instead oflocalhost
when an AIO installation is performed using the WIA.This fix avoids:
Logs example
Tests
Manual testing in RHEL9 (system which generated the error) was done here: #2771 (comment)
🟢 CentOS 7: https://ci.wazuh.info/job/Test_unattended/5160/
🟢 Ubuntu Bionic: https://ci.wazuh.info/job/Test_unattended/5162/
🟢 Ubuntu Xenial: https://ci.wazuh.info/job/Test_unattended/5163/
🟢 AL2: https://ci.wazuh.info/job/Test_unattended/5165/
🟢 RHEL7: https://ci.wazuh.info/job/Test_unattended/5166/
🟢 RHEL8: https://ci.wazuh.info/job/Test_unattended/5168/
🟢 Ubuntu Focal: https://ci.wazuh.info/job/Test_unattended/5169/console
🟢 CentOS 8: https://ci.wazuh.info/job/Test_unattended/5170/console
After ingressing a Wazuh dashboard instance of the Test unattended distributed, the health check was completely successful:
The unattended distributed failed because of other errors: https://ci.wazuh.info/job/Test_unattended_distributed/629/consoleFull
To check if these errors are generated by this change or not, another distributed test has been performed and it generates the same errors, so they are not related to this development: https://ci.wazuh.info/job/Test_unattended_distributed/631/consoleFull