docs(iwooos): record wazuh reviewer post-enable readback [skip ci]

This commit is contained in:
Your Name
2026-06-27 21:45:13 +08:00
parent a68d9e40a7
commit b5bf42bf0a

View File

@@ -1,3 +1,54 @@
## 2026-06-27 — 21:45 IwoooS Wazuh reviewer post-enable readback 正式讀回完成
**時間與來源**
- 2026-06-27 21:24-21:45 Asia/Taipei。
- 來源feature branch `codex/iwooos-post-enable-readback-20260627`、Gitea main、Gitea Actions public HTML、production API / `/zh-TW/iwooos` desktop / mobile smoke。
**完成內容**
- `GET /api/v1/iwooos/wazuh-manager-registry-reviewer-validation` 已正式讀回 `post_enable_iwooos_readback_passed_no_runtime_no_secret_collection`
- API service 放寬 `post_enable_readback_passed_count` 從 0 更新為 1但仍強制 `manager_registry_accepted_count``runtime_gate_count``host_write_authorized_count``active_response_authorized_count``secret_value_collection_allowed_count` 維持 0。
- 前台 `/zh-TW/iwooos` Wazuh manager registry reviewer validation 卡片新增 `Post-enable = 1`,文案明確標示這不是 live Wazuh 查詢授權。
- security guard 與 contract tests 已同步 lane count `13 -> 14`,新增 `post_enable_iwooos_readback_passed``manager_registry_acceptance_evidence_review` 下一關。
**Gitea / deploy 狀態**
- code commit`c73ce995e feat(iwooos): mark wazuh reviewer post-enable readback`
- 後續 main commit`1a8613c9e fix(governance): stabilize automation tab deep link`,包含 `c73ce995e`
- deploy marker`1a6f8f427 chore(cd): deploy 1a8613c [skip ci]`
- `c73ce995e` 單獨 `code-review.yaml #3693` / `cd.yaml #3692` 因後續 main push 被 concurrency 取消;最新 main `code-review.yaml #3695` 成功,`cd.yaml #3694` 成功。
**本地驗證結果**
- `DATABASE_URL=sqlite:///test.db python3.11 -m pytest apps/api/tests/test_iwooos_wazuh_manager_registry_reviewer_validation.py apps/api/tests/test_iwooos_runtime_security_readback.py apps/api/tests/test_iwooos_wazuh_managed_host_coverage.py apps/api/tests/test_iwooos_wazuh_api.py -q``23 passed`
- `python3 scripts/security/wazuh-manager-registry-reviewer-validation.py --root .``post_enable=1 runtime_gate=0`
- `python3 scripts/security/iwooos-frontend-display-redaction-guard.py --root .`:通過。
- `python3 scripts/security/security-mirror-progress-guard.py --root .`:通過。
- `python3 -m py_compile ...`、JSON parse、`git diff --check``pnpm --dir apps/web typecheck`:通過。
**production API readback**
- `/api/v1/health?_v=1a6f8f427`HTTP `200``status=healthy``environment=prod``mock_mode=false`
- `GET /api/v1/iwooos/wazuh-manager-registry-reviewer-validation?_v=1a6f8f427-final`HTTP `200`
- schema`iwooos_wazuh_manager_registry_reviewer_validation_readback_v1`
- status`post_enable_iwooos_readback_passed_no_runtime_no_secret_collection`
- mode`committed_post_enable_iwooos_readback_passed_no_runtime_no_secret_collection`
- summary`outcome_lane_count=14``owner_registry_export_received_count=1``owner_registry_export_accepted_count=1``reviewer_validation_passed_count=1``post_enable_readback_passed_count=1`
- valid redacted sample POST`accepted_for_readonly_posture_only``mode=no_persist_validation_no_runtime_no_secret_collection`POST-local `post_enable_readback_passed_count=0`POST 後 GET global 仍維持 `post_enable_readback_passed_count=1`,沒有累加或保存 payload。
**production browser smoke**
- Desktop `1360x900``/zh-TW/iwooos?_v=1a6f8f427-desktop-dom` HTTP `200`、console error `0`、水平溢出 `0`、forbidden hits `0`
- Mobile `384x900``/zh-TW/iwooos?_v=1a6f8f427-mobile-dom` HTTP `200`、console error `0`、水平溢出 `0`、forbidden hits `0`
- 前台可見片段:`Post-enable` / `1` / `正式 API 與前台已讀回 reviewer passed這不是 live Wazuh 查詢授權。`
**仍維持 0 / false**
- `manager_registry_accepted_count=0``runtime_gate_count=0``host_write_authorized_count=0``active_response_authorized_count=0``secret_value_collection_allowed_count=0`
- `wazuh_api_live_query_authorized=false``wazuh_agent_reenroll_authorized=false``wazuh_agent_restart_authorized=false``wazuh_active_response_authorized=false``raw_wazuh_payload_storage_allowed=false``not_authorization=true`
**未做**
- 沒有 host / Docker / systemd / Nginx / firewall / K8s / DB / Wazuh runtime 寫操作;沒有讀 secret 明文;沒有重新註冊 agent沒有 Wazuh restart沒有 Wazuh active response沒有 Kali active scan沒有 force push。
**完成度 / 下一步**
- Wazuh reviewer post-enable readback`85% -> 100%`
- IwoooS 整體:保守 `70% -> 72%`。此段只完成 production API / 前台 readback不代表 Wazuh 全主機納管或 manager registry accepted 已完成。
- 下一個 P0`manager_registry_acceptance_evidence_review`,必須以 manager registry accepted evidence 與 host/product/agent scope 對帳推進Dashboard 200、前台可見或 API 200 仍不可當成全主機納管完成。
## 2026-06-27 — 21:24 GitHub backup owner response intake readiness 正式讀回完成
**時間與來源**