Files
Nexus/docs/changelog/2026-06-04-audit-phase2-p2-3-websocket-dashboard.md
T
Nexus Deploy 811eb97fbf chore: Ubuntu local dev scripts, deploy gate, and audit changelogs
Rename WSL helpers to Linux-native scripts, expose Redis in docker-compose,
prefer .venv tools in pre_deploy_check, and record 2026-06-04 audit waves.
2026-06-04 23:02:21 +08:00

32 lines
839 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-04 — Phase2 P2-3 WebSocket/Dashboard 深审
## 摘要
P2-3websocket.py 全文 + useWebSocket + Dashboard/App 告警链 + alert-history API16 H closure,无 P0/P1。
## 动机
Phase 2 覆盖实时告警双通道(/ws/alerts、/ws/sync)与 Dashboard 刷新路径。
## 涉及文件
| 文件 | 说明 |
|------|------|
| `docs/reports/audit-phase2-2026-06-04-waveP2-3.md` | 深审报告 |
| `server/api/websocket.py` 等 | 全文/节选 Read |
## 结论
- JWT 校验含 token_version;连接上限与 heartbeat
- alerts/sync Redis 分 channel,避免串流
- App.vue 单例 WSDashboard watch alerts 刷新 stats
- query token 为已接受 RISK
## 验证
```bash
bash scripts/local_verify.sh
```
进度:`☑实现 ☑本地验证 ☑审计8步 □部署 □健康检查 □浏览器验证 ☑changelog`