From 796e9f4a93aca546963a4f342c47eb5aec081b41 Mon Sep 17 00:00:00 2001 From: Gui-Gos <97973228+Gui-Gos@users.noreply.github.com> Date: Sun, 4 Jan 2026 19:45:52 +0100 Subject: [PATCH] docs: Simplify API password change to single manual method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed the "one-liner" docker exec approach and kept only the manual method (entering the container). This is simpler and easier to follow: 1. Enter container 2. View current config with cat 3. Replace password with sed 4. Verify with grep 5. Exit User preference: keep it straightforward with one clear method instead of multiple alternatives. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- apps/wazuh-runtipi/metadata/description.md | 30 ++++++---------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/apps/wazuh-runtipi/metadata/description.md b/apps/wazuh-runtipi/metadata/description.md index 7f2c7a1..96a59aa 100644 --- a/apps/wazuh-runtipi/metadata/description.md +++ b/apps/wazuh-runtipi/metadata/description.md @@ -328,43 +328,29 @@ Si vous utilisez les valeurs par défaut: 2. **Mettre à jour le fichier wazuh.yml dans le conteneur dashboard:** - **Méthode recommandée - Utiliser sed (une seule commande):** - ```bash - # Remplacer l'ancien mot de passe par le nouveau dans wazuh.yml - docker exec -it wazuh-runtipi_*-wazuh-dashboard-1 bash -c \ - "sed -i 's|password: MyS3cr37P450r\.\*-|password: VOTRE_NOUVEAU_MOT_DE_PASSE|g' \ - /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml" - ``` - - **⚠️ IMPORTANT:** Remplacez `VOTRE_NOUVEAU_MOT_DE_PASSE` par votre mot de passe réel (sans guillemets) - - **Vérifier que le changement a été effectué:** - ```bash - docker exec -it wazuh-runtipi_*-wazuh-dashboard-1 bash -c \ - "grep 'password:' /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml" - ``` - - Vous devriez voir votre nouveau mot de passe dans la sortie. - - **Alternative - Méthode manuelle (si sed ne fonctionne pas):** ```bash # Se connecter au conteneur dashboard docker exec -it wazuh-runtipi_*-wazuh-dashboard-1 bash + ``` - # Afficher le fichier pour voir son contenu + **Une fois dans le conteneur:** + ```bash + # Afficher le fichier pour voir son contenu actuel cat /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml - # Utiliser sed directement dans le conteneur (sans guillemets) + # Remplacer l'ancien mot de passe par le nouveau sed -i 's|password: MyS3cr37P450r\.\*-|password: VOTRE_NOUVEAU_MOT_DE_PASSE|g' \ /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml - # Vérifier le changement + # Vérifier que le changement a été effectué grep 'password:' /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml # Quitter le conteneur exit ``` + **⚠️ IMPORTANT:** Remplacez `VOTRE_NOUVEAU_MOT_DE_PASSE` par votre mot de passe réel (sans guillemets) + 3. **Mettre à jour la variable d'environnement dans Runtipi:** - Allez dans Runtipi → Apps → Wazuh → Paramètres - Trouvez `API_PASSWORD`