From 7282dad5a916df933c1da98f20cb8a9b11492202 Mon Sep 17 00:00:00 2001 From: ogt Date: Tue, 14 Jul 2026 10:35:32 +0800 Subject: [PATCH] fix(recovery): package Wazuh verifier snapshots --- .../reboot-recovery/install-reboot-auto-recovery-slo-110.sh | 4 +++- .../tests/test_reboot_auto_recovery_slo_installer.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/reboot-recovery/install-reboot-auto-recovery-slo-110.sh b/scripts/reboot-recovery/install-reboot-auto-recovery-slo-110.sh index b3bc21421..345fbdb64 100644 --- a/scripts/reboot-recovery/install-reboot-auto-recovery-slo-110.sh +++ b/scripts/reboot-recovery/install-reboot-auto-recovery-slo-110.sh @@ -222,6 +222,8 @@ create_payload() { ops/maintenance \ ops/monitoring \ ops/reboot-recovery \ + docs/security/wazuh-managed-host-coverage-gate.snapshot.json \ + docs/security/wazuh-agent-visibility-runtime-gate.snapshot.json \ docs/runbooks/PUBLIC-MAINTENANCE-FALLBACK-RUNBOOK.md } @@ -232,7 +234,7 @@ case "$MODE" in cat < None: assert "awooop_conversation_event_hot_path_indexes_2026-07-01.sql" in result.stdout assert "ops/nginx" in result.stdout assert "ops/reboot-recovery" in result.stdout + assert "wazuh-managed-host-coverage-gate.snapshot.json" in result.stdout + assert "wazuh-agent-visibility-runtime-gate.snapshot.json" in result.stdout assert "would_enable_timer=awoooi-reboot-auto-recovery-slo.timer" in result.stdout @@ -65,6 +67,8 @@ def test_installer_is_limited_to_verifier_timer_not_product_restarts() -> None: assert "ops/reboot-recovery" in text assert "ops/maintenance" in text assert "ops/monitoring" in text + assert "docs/security/wazuh-managed-host-coverage-gate.snapshot.json" in text + assert "docs/security/wazuh-agent-visibility-runtime-gate.snapshot.json" in text assert "PUBLIC-MAINTENANCE-FALLBACK-RUNBOOK.md" in text assert "ServerAliveInterval" in text assert "ServerAliveCountMax" in text