Remove the Password Tool from the Installation Assistant files #560
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 objective of this PR is to remove the use of the password tool during the component installation and configuration process within the installation assistant.
Currently, when a component is installed and configured, its password is changed by default. Starting with version
5.x, this behavior will change to maintain the default passwords provided with the components. Consequently, all code related to the password tool must be removed from the installation assistant.Most of this code is injected via
builder.shintowazuh-install.sh, so a large portion of it is removed simply by disabling this injection. However, some variables and functions have also been manually removed from the installation assistant source code.Update to the distributed dashboard configuration file
Currently, the opensearch_dashboards.yml file for the dashboard remains hardcoded. This will change starting from 5.0 (see issue #542), but until that development is complete and to allow testing of distributed installations, the necessary hosts that were previously in
wazuh.ymlhave been added to this file.Deprecated code in indexer cluster initialization
Additionally, during testing, we noticed that the indexer cluster initialization still included the injection of the
wazuh-template.jsonfile, which will no longer be used as of5.0. Therefore, the code related to this file has also been removed.Tests 🧪
Two deployments were performed (AIO and distributed) on the same VM to verify that each installation works correctly and maintains the default passwords.
AIO:
Component download
Service check
Landing page
Distributed:
File generation (wazuh-install-files.tar)
Indexer installation
Server installation
Dashboard installation
Landing page