ea2507dbc0
统一告警/恢复/系统/Layer3/测试消息格式,含来源、影响与建议操作。 Co-authored-by: Cursor <cursoragent@cursor.com>
827 B
827 B
审计 — Telegram 通知全中文详细化
范围
| 文件 | 变更 |
|---|---|
server/infrastructure/telegram/__init__.py |
消息模板 |
server/background/self_monitor.py |
Redis/MySQL |
server/api/agent.py |
时钟偏差 |
server/api/websocket.py |
server_id |
server/api/settings.py |
测试消息 |
deploy/health_monitor.sh |
Layer 3 四类消息 |
deploy/gate_log.jsonl |
门控记录(自动生成) |
Step 3 规则扫描
| H | 规则 | 结论 |
|---|---|---|
| H1 | 无密钥/URL 明文 | SAFE — sanitize 保留 |
| H2 | HTML escape | SAFE |
| H3 | NOTIFY 开关仍生效 | SAFE |
Closure
| H | 判定 |
|---|---|
| H1–H3 | SAFE |
DoD
- changelog / audit
- pytest 通过
验证
.venv/bin/pytest tests/test_settings_telegram.py -q