feat(iwooos): expose wazuh managed host coverage readback
Some checks failed
Code Review / ai-code-review (push) Successful in 17s
CD Pipeline / tests (push) Successful in 1m39s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled
Some checks failed
Code Review / ai-code-review (push) Successful in 17s
CD Pipeline / tests (push) Successful in 1m39s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Ansible / Reboot Recovery Contract / validate (push) Has been cancelled
This commit is contained in:
@@ -47036,6 +47036,45 @@ production browser smoke:
|
||||
- `P0-02` owner-provided redacted evidence intake:開始接收六條 lane 的脫敏 evidence refs,但仍先維持 request / received / accepted / runtime 0,直到 reviewer validation 成立。
|
||||
- `P0-03` Wazuh manager registry accepted:只讀交叉驗收所有 expected host / product / agent scope,不把 Dashboard 可開、API 200 或前台 lane 可見當作全主機納管恢復。
|
||||
|
||||
## 2026-06-27 — 14:40 IwoooS Wazuh 受管主機覆蓋 API / 前台讀回本地完成
|
||||
|
||||
**時間與來源**:
|
||||
- 2026-06-27 14:26-14:40 Asia/Taipei。
|
||||
- 來源:`docs/security/wazuh-managed-host-coverage-gate.snapshot.json`、`scripts/security/wazuh-managed-host-coverage-gate.py`、本地 API / 前台 / guard 驗證。
|
||||
|
||||
**完成內容**:
|
||||
- 新增 `GET /api/v1/iwooos/wazuh-managed-host-coverage`,以公開別名回傳 Wazuh 受管主機覆蓋矩陣、manager registry 接受數、缺口數、必要驗收證據與 0 / false 邊界。
|
||||
- `/zh-TW/iwooos` 的 Wazuh 主機納管覆蓋卡改為正式 API 讀回優先,並新增只讀 API 狀態、公開別名主機矩陣與下一個 Gate。
|
||||
- `scripts/security/security-mirror-progress-guard.py` 納入 API route、service schema、client method、public-safe 測試、前台矩陣與 no-false-green marker。
|
||||
- `zh-TW` 與目前鏡像訊息都維持繁體中文;未加入工作視窗對話、個人 namespace、內網位址或 secret。
|
||||
|
||||
**本地驗證結果**:
|
||||
- `python3 -m py_compile apps/api/src/services/iwooos_wazuh_managed_host_coverage.py apps/api/src/api/v1/iwooos.py scripts/security/security-mirror-progress-guard.py`:通過。
|
||||
- `node -e "JSON.parse(...zh-TW.json); JSON.parse(...en.json)"`:通過。
|
||||
- `DATABASE_URL=sqlite:///test.db python3.11 -m pytest apps/api/tests/test_iwooos_wazuh_managed_host_coverage.py apps/api/tests/test_iwooos_runtime_security_readback.py apps/api/tests/test_iwooos_security_control_coverage.py apps/api/tests/test_iwooos_wazuh_api.py apps/api/tests/test_iwooos_owner_evidence_intake_preflight.py -q`:`21 passed`。
|
||||
- `python3 scripts/security/wazuh-managed-host-coverage-gate.py --root .`:`WAZUH_MANAGED_HOST_COVERAGE_GATE_OK scope=6 direct_active=2 no_transport=1 ssh_blocked=3 registry=0 runtime_gate=0`。
|
||||
- `python3 scripts/security/iwooos-frontend-display-redaction-guard.py --root .`:`IWOOOS_FRONTEND_DISPLAY_REDACTION_GUARD_OK`。
|
||||
- `python3 scripts/security/security-mirror-progress-guard.py --root .`:`SECURITY_MIRROR_PROGRESS_GUARD_OK`。
|
||||
- `pnpm --dir apps/web typecheck`:通過。
|
||||
|
||||
**完成度與同步狀態**:
|
||||
- 本段「Wazuh 受管主機覆蓋 API / 前台讀回」本地:`0% -> 85%`。尚待 commit、push、CD、production API readback 與 desktop / mobile browser smoke。
|
||||
- IwoooS 整體:暫不拉高,仍保守維持 `67%`,等正式讀回完成後再調整。
|
||||
- Wazuh manager registry accepted:仍為 `0`;此段只建立可驗證讀回與前台 no-false-green,不代表所有主機已納管或 Wazuh 已修復完成。
|
||||
|
||||
**仍維持 0 / false**:
|
||||
- `manager_registry_accepted_count=0`、`required_evidence_accepted_count=0`、`live_metadata_env_enabled_count=0`、`runtime_gate_count=0`、`active_response_authorized_count=0`、`host_write_authorized_count=0`、`agent_reenroll_authorized_count=0`、`agent_restart_authorized_count=0`。
|
||||
- `runtime_execution_authorized=false`、`wazuh_api_live_query_authorized=false`、`wazuh_active_response_authorized=false`、`wazuh_agent_reenroll_authorized=false`、`wazuh_agent_restart_authorized=false`、`wazuh_manager_restart_authorized=false`、`host_write_authorized=false`、`kali_active_scan_authorized=false`、`secret_value_collection_allowed=false`、`not_authorization=true`。
|
||||
|
||||
**做過的命令類型**:
|
||||
- 寫入:repo API / test / frontend / i18n / guard / LOGBOOK。
|
||||
- 只讀:git fetch / diff、repo snapshot 驗證、本地測試與型別檢查。
|
||||
- 未做:沒有 host / Docker / systemd / Nginx / firewall / K8s / DB / Wazuh runtime 寫操作;沒有讀 secret 明文;沒有重新註冊 agent;沒有 Wazuh restart;沒有 Wazuh active response;沒有 Kali active scan;沒有 force push。
|
||||
|
||||
**下一步**:
|
||||
- commit / push 到 Gitea 後等待 CD,正式驗證 `GET /api/v1/iwooos/wazuh-managed-host-coverage` 與 `/zh-TW/iwooos` desktop / mobile。
|
||||
- 若 production 讀回通過,再更新 deploy marker、Gitea runs、overflow、forbidden hits 與 IwoooS 完成度。
|
||||
|
||||
## 2026-06-27 — 14:25 IwoooS rollout risk 前台與 guard 更新完成
|
||||
|
||||
**時間與來源**:
|
||||
|
||||
Reference in New Issue
Block a user