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

WIA uses 127.0.0.1 instead of localhost in dashboard configuration #2797

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

davidcr01
Copy link
Contributor

@davidcr01 davidcr01 commented Jan 25, 2024

Related issue
#2771

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 to 127.0.0.1 IP address instead of localhost when an AIO installation is performed using the WIA.

This fix avoids:

Logs example

hosts:
  - default:
      url: https://127.0.0.1
      port: 55000
      username: wazuh-wui
      password: "TCHJrSVBdonZpe7DXL+N4lzv*kzZMHWr"
      run_as: false

image

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:
image

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

@davidcr01 davidcr01 self-assigned this Jan 25, 2024
@davidcr01 davidcr01 changed the title WIA uses 127.0.0.1 instead of localhost WIA uses 127.0.0.1 instead of localhost in dashboad configuration Jan 25, 2024
@davidcr01 davidcr01 changed the title WIA uses 127.0.0.1 instead of localhost in dashboad configuration WIA uses 127.0.0.1 instead of localhost in dashboard configuration Jan 25, 2024
@davidcr01 davidcr01 marked this pull request as ready for review January 26, 2024 15:43
@teddytpc1 teddytpc1 merged commit a9083a5 into 4.8.0 Jan 29, 2024
4 checks passed
@teddytpc1 teddytpc1 deleted the bug/2771-all-in-one-installation-hangs-on-rhel-9 branch January 29, 2024 11:24
@teddytpc1 teddytpc1 linked an issue Jan 29, 2024 that may be closed by this pull request
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.

All in one installation hangs on rhel 9
3 participants