fix(web): 加速 IwoooS 資安進度可視化
All checks were successful
CD Pipeline / tests (push) Successful in 1m20s
Code Review / ai-code-review (push) Successful in 12s
CD Pipeline / build-and-deploy (push) Successful in 4m33s
CD Pipeline / post-deploy-checks (push) Successful in 2m1s

This commit is contained in:
Your Name
2026-05-31 16:28:45 +08:00
parent f877e707ce
commit dc4ef7ed34
9 changed files with 5259 additions and 5059 deletions

View File

@@ -1,3 +1,49 @@
## 2026-05-31IwoooS 首屏資安推進總覽與全站繁中收斂
**背景**
- 使用者指出資安工作推進時間太久、缺少「到底做了哪些工作」的直接感受,也不清楚 Kali `192.168.0.112`、兩台開發主機、所有產品 / 網站 / 工具的資安機制目前完成到哪裡。
- 原 `/iwooos` 已有大量 read-only 證據、host coverage、全產品 rollout 與 gate 資訊,但資訊分散且預設內容過多,第一屏沒有直接回答「完成 / 未完成 / 下一步」。
**本次調整**
- `/iwooos` 首屏新增 `iwooos-fast-progress-summary`,直接顯示四個結論:
- 前台可見工作已整合:安全合規、告警、授權、治理、錯誤追蹤、操作日誌與程式碼審查。
- Kali `192.168.0.112` 已納入資安網:目前是只讀納管,不是已批准主動掃描、憑證掃描、`/execute` 或主機更新。
- 所有產品先套只讀框架:核心產品、公開網站、版本來源、主機、監控工具與未來產品六類都套用 IwoooS 可視化與人工 Gate 口徑。
- 執行期仍保持關閉active runtime gate `0`SSH、掃描、修復、部署、主機更新、repo / refs / workflow 變更都還沒被批准。
- `apps/web/messages/en.json` 完整鏡像 `zh-TW.json`,讓 `/en` 路徑也以繁體中文呈現。
- `/code-review` 改為繁體中文控制面,並移除前端直接顯示內網 Gitea Actions URL 的按鈕,改連 AwoooP 執行紀錄。
- `/compliance``CompliancePanel` 移除硬編碼英文 `30 days` / `Severity Distribution`
- `security-mirror-progress-guard.py` 新增 full-site `en.json` / `zh-TW.json` mirror guard防止網站內容再分叉成英文。
**驗證**
```text
python3 -m json.tool apps/web/messages/zh-TW.json / en.json
-> pass
python3 -m py_compile scripts/security/security-mirror-progress-guard.py scripts/security/source-control-owner-response-guard.py
-> pass
python3 scripts/security/security-mirror-progress-guard.py
-> SECURITY_MIRROR_PROGRESS_GUARD_OK
python3 scripts/security/source-control-owner-response-guard.py
-> SOURCE_CONTROL_OWNER_RESPONSE_GUARD_OK
git diff --check
-> pass
pnpm --dir apps/web run typecheck
-> pass
NEXT_PUBLIC_API_URL=https://awoooi.wooo.work pnpm --dir apps/web run build
-> pass
本地 Playwrightproduction build / next start:
/zh-TW/iwooos -> iwooos-fast-progress-summary 可見,含 Kali 112 / 全產品只讀 / runtime Gate 0 / 下一 Gate截圖 `/tmp/iwooos-fast-progress-zh.png`
/en/iwooos -> 同樣繁體中文可見;無水平溢出
```
**進度邊界**
- 整體資安網仍維持 `61%`;框架 / 治理 / 文件 / schema / read-only evidence 約 `86-88%`runtime landing 約 `40-45%`
- active runtime gate 仍為 `0`本輪是可見化與理解度加速不是掃描、SSH、主機更新、修復、部署、repo/refs/workflow 變更或 GitHub primary 切換授權。
## 2026-05-31IwoooS `/en` 內容層繁體中文收斂
**背景**