群消息对账:非本系统发送识别、实例信息留痕、请求日志、定时触发说明
- 消息记录新增 bot_id / pic_url,msg_id 加索引,和 imhub 日志对账;消息记录页可筛「非本系统发送」 - 启动时记录实例信息(主机、库、对外地址、机器人和群,不含账号密码) - 新增 RequestLog 中间件:写操作和出错请求各记一行(来源 IP、结果,令牌脱敏) - 定时触发晚触发 / 当天改时间后再次触发记 WARNING 并写明原因 - sql_script/v3.2.0/003_ddl_im_msg_log_bot_pic.sql:消息记录表加字段和索引(只执行一次) - runbook 补「群里出现不该有的消息」排查步骤,附 2026-11-26 测试群出现生产链接事故记录 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Showing
15 changed files
with
241 additions
and
13 deletions
docs/incidents/2026-11-26-测试群出现生产链接.md
0 → 100644
server/app/core/request_log.py
0 → 100644
This diff is collapsed.
Click to expand it.
server/tests/test_im_foreign.py
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment