From 835f2e4b59ccb4c3cfe40fa5001d154b33c2b993 Mon Sep 17 00:00:00 2001 From: Gui-Gos <97973228+Gui-Gos@users.noreply.github.com> Date: Sun, 4 Jan 2026 19:13:34 +0100 Subject: [PATCH] docs: Fix password testing commands to use docker exec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port 9200 is not exposed to the host (security by design). Updated all OpenSearch API test commands to use docker exec from within Wazuh containers instead of direct host access. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- apps/wazuh-runtipi/metadata/description.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/wazuh-runtipi/metadata/description.md b/apps/wazuh-runtipi/metadata/description.md index 9622fdc..991aff9 100644 --- a/apps/wazuh-runtipi/metadata/description.md +++ b/apps/wazuh-runtipi/metadata/description.md @@ -285,28 +285,34 @@ Si vous utilisez les valeurs par défaut: 8. **Tester les nouveaux mots de passe:** - **Test admin (Dashboard):** + **Test admin (Dashboard - interface web):** ```bash - # Via interface web + # Ouvrir dans le navigateur https://VOTRE_IP:5601 # Connectez-vous avec: admin / VOTRE_NOUVEAU_MOT_DE_PASSE ``` + ✅ Succès si vous pouvez vous connecter au dashboard - **Test admin (API OpenSearch):** + **Test admin (API OpenSearch - depuis le conteneur):** ```bash - curl -k -u admin:VOTRE_NOUVEAU_MOT_DE_PASSE https://VOTRE_IP:9200/_cluster/health?pretty + # Le port 9200 n'est PAS exposé à l'hôte (sécurité) + # Il faut tester depuis un conteneur Wazuh + docker exec -it wazuh-runtipi_*-wazuh-indexer-1 bash -c \ + "curl -ks https://wazuh.indexer:9200/_cluster/health?pretty -u admin:VOTRE_NOUVEAU_MOT_DE_PASSE" ``` ✅ Succès si vous voyez: `"cluster_name" : "wazuh-cluster"` **Test kibanaserver:** ```bash - curl -k -u kibanaserver:VOTRE_NOUVEAU_MOT_DE_PASSE https://VOTRE_IP:9200 + docker exec -it wazuh-runtipi_*-wazuh-dashboard-1 bash -c \ + "curl -ks https://wazuh.indexer:9200 -u kibanaserver:VOTRE_NOUVEAU_MOT_DE_PASSE" ``` ✅ Succès si vous voyez: `"cluster_name" : "wazuh-cluster"` **⚠️ Test de sécurité (vérifier que les anciens mots de passe ne fonctionnent PLUS):** ```bash - curl -k -u admin:admin https://VOTRE_IP:9200 + docker exec -it wazuh-runtipi_*-wazuh-indexer-1 bash -c \ + "curl -ks https://wazuh.indexer:9200 -u admin:admin" ``` ✅ Succès si vous voyez: `"type":"security_exception","reason":"Unauthorized"`