From 7c0162f7a72ec5a9156ff46574bea77afb0dc2f0 Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Wed, 18 Dec 2024 17:24:04 -0300 Subject: [PATCH 1/2] Update installation guide to simplify wazuh-passwords-tool.sh command in step-by-step instructions --- source/installation-guide/wazuh-dashboard/step-by-step.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/installation-guide/wazuh-dashboard/step-by-step.rst b/source/installation-guide/wazuh-dashboard/step-by-step.rst index f07890ccfd..6e5de7c5d6 100644 --- a/source/installation-guide/wazuh-dashboard/step-by-step.rst +++ b/source/installation-guide/wazuh-dashboard/step-by-step.rst @@ -180,8 +180,8 @@ Select your deployment type and follow the instructions to change the default pa .. code-block:: console # curl -sO https://packages.wazuh.com/|WAZUH_CURRENT_MINOR|/wazuh-passwords-tool.sh - # bash wazuh-passwords-tool.sh --api --change-all --admin-user wazuh --admin-password wazuh - + # bash wazuh-passwords-tool.sh --api --admin-user wazuh --admin-password wazuh + .. code-block:: console :class: output From 857e54bce6488a0f9fcf9e55c8d3c7755ffa27f8 Mon Sep 17 00:00:00 2001 From: Guido Modarelli Date: Wed, 18 Dec 2024 17:24:10 -0300 Subject: [PATCH 2/2] Fix formatting inconsistencies in the Wazuh dashboard installation guide. Adjust spacing and improve readability throughout --- .../wazuh-dashboard/step-by-step.rst | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/source/installation-guide/wazuh-dashboard/step-by-step.rst b/source/installation-guide/wazuh-dashboard/step-by-step.rst index 6e5de7c5d6..94951418a5 100644 --- a/source/installation-guide/wazuh-dashboard/step-by-step.rst +++ b/source/installation-guide/wazuh-dashboard/step-by-step.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2015, Wazuh, Inc. .. meta:: - :description: Learn how to install Wazuh dashboard, a flexible and intuitive web interface for mining and visualizing the events and archives. + :description: Learn how to install Wazuh dashboard, a flexible and intuitive web interface for mining and visualizing the events and archives. .. _wazuh_dashboard_step_by_step: @@ -27,21 +27,21 @@ Adding the Wazuh repository If you are installing the Wazuh dashboard on the same host as the Wazuh indexer or the Wazuh server, you may skip these steps as you may have added the Wazuh repository already. .. tabs:: - + .. group-tab:: Yum - - + + .. include:: /_templates/installations/common/yum/add-repository.rst - - - + + + .. group-tab:: APT - - + + .. include:: /_templates/installations/common/deb/add-repository.rst - - - + + + Installing the Wazuh dashboard ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -59,7 +59,7 @@ Installing the Wazuh dashboard .. group-tab:: APT .. code-block:: console - + # apt-get -y install wazuh-dashboard|WAZUH_DASHBOARD_DEB_PKG_INSTALL| Configuring the Wazuh dashboard @@ -99,10 +99,10 @@ Starting the Wazuh dashboard service .. include:: /_templates/installations/dashboard/enable_dashboard.rst #. Edit the ``/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml`` file and replace the ``url`` value with the IP address or hostname of the Wazuh server master node. - + .. code-block:: yaml :emphasize-lines: 3 - + hosts: - default: url: https:// @@ -118,14 +118,14 @@ Starting the Wazuh dashboard service - **Username**: *admin* - **Password**: *admin* - When you access the Wazuh dashboard for the first time, the browser shows a warning message stating that the certificate was not issued by a trusted authority. An exception can be added in the advanced options of the web browser. For increased security, the ``root-ca.pem`` file previously generated can be imported to the certificate manager of the browser. Alternatively, a certificate from a trusted authority can be configured. + When you access the Wazuh dashboard for the first time, the browser shows a warning message stating that the certificate was not issued by a trusted authority. An exception can be added in the advanced options of the web browser. For increased security, the ``root-ca.pem`` file previously generated can be imported to the certificate manager of the browser. Alternatively, a certificate from a trusted authority can be configured. Securing your Wazuh installation -------------------------------- -You have now installed and configured all the Wazuh central components. We recommend changing the default credentials to protect your infrastructure from possible attacks. +You have now installed and configured all the Wazuh central components. We recommend changing the default credentials to protect your infrastructure from possible attacks. Select your deployment type and follow the instructions to change the default passwords for both the Wazuh API and the Wazuh indexer users. @@ -135,14 +135,14 @@ Select your deployment type and follow the instructions to change the default pa .. group-tab:: All-in-one deployment #. Use the Wazuh passwords tool to change all the internal users' passwords. - + .. code-block:: console - + # /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh --api --change-all --admin-user wazuh --admin-password wazuh - + .. code-block:: console :class: output - + INFO: The password for user admin is yWOzmNA.?Aoc+rQfDBcF71KZp?1xd7IO INFO: The password for user kibanaserver is nUa+66zY.eDF*2rRl5GKdgLxvgYQA+wo INFO: The password for user kibanaro is 0jHq.4i*VAgclnqFiXvZ5gtQq1D5LCcL @@ -153,16 +153,16 @@ Select your deployment type and follow the instructions to change the default pa INFO: The password for Wazuh API user wazuh is JYWz5Zdb3Yq+uOzOPyUU4oat0n60VmWI INFO: The password for Wazuh API user wazuh-wui is +fLddaCiZePxh24*?jC0nyNmgMGCKE+2 INFO: Updated wazuh-wui user password in wazuh dashboard. Remember to restart the service. - - + + .. group-tab:: Distributed deployment - #. On `any Wazuh indexer node`, use the Wazuh passwords tool to change the passwords of the Wazuh indexer users. + #. On `any Wazuh indexer node`, use the Wazuh passwords tool to change the passwords of the Wazuh indexer users. .. code-block:: console - + # /usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh --change-all - + .. code-block:: console :class: output @@ -178,7 +178,7 @@ Select your deployment type and follow the instructions to change the default pa #. On your `Wazuh server master node`, download the Wazuh passwords tool and use it to change the passwords of the Wazuh API users. .. code-block:: console - + # curl -sO https://packages.wazuh.com/|WAZUH_CURRENT_MINOR|/wazuh-passwords-tool.sh # bash wazuh-passwords-tool.sh --api --admin-user wazuh --admin-password wazuh @@ -189,7 +189,7 @@ Select your deployment type and follow the instructions to change the default pa INFO: The password for Wazuh API user wazuh-wui is fL+f?sFRPEv5pYRE559rqy9b6G4Z5pVi #. On `all your Wazuh server nodes`, run the following command to update the `admin` password in the Filebeat keystore. Replace ```` with the random password generated in the first step. - + .. code-block:: console # echo | filebeat keystore add password --stdin --force @@ -199,7 +199,7 @@ Select your deployment type and follow the instructions to change the default pa .. include:: /_templates/common/restart_filebeat.rst .. note:: Repeat steps 3 and 4 on `every Wazuh server node`. - + #. On your `Wazuh dashboard node`, run the following command to update the `kibanaserver` password in the Wazuh dashboard keystore. Replace ```` with the random password generated in the first step. .. code-block:: console @@ -210,7 +210,7 @@ Select your deployment type and follow the instructions to change the default pa .. code-block:: yaml :emphasize-lines: 6 - + hosts: - default: url: https://127.0.0.1 @@ -249,7 +249,7 @@ All the Wazuh central components are successfully installed and secured. - + - +