Repository navigation
Conversation
- 开关状态写入 user-filter-values 本地存储,刷新或重新进入用户管理页后恢复 - 首次加载列表即按恢复的状态筛选;旧数据缺少该字段时默认关闭 Co-Authored-By: Claude Code <noreply@anthropic.com>
- 运维告警(触发与自动恢复)和账号配额告警可推送到飞书群机器人或自定义 Webhook - 每个渠道独立开关、订阅事件、最低级别与恢复通知设置,与邮件通知互不影响 - 渠道地址与签名密钥加密存储,接口只返回打码地址;外发走出站目标策略且不跟随重定向 - 飞书支持签名校验与交互卡片;Webhook 带 HMAC-SHA256 签名头,格式见 docs/alert-notify-webhook.md - 异步分发:并发上限、每渠道限流、失败重试一次;配额热路径只做一次原子读 - 渠道配置变更与测试写入操作日志,请求体不落库 - 系统设置新增「通知设置」标签页管理渠道 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
1. 用户管理页记住「隐藏企业员工」开关
user-filter-values本地存储,刷新或重新进入页面后恢复,首次加载列表就按该状态筛选2. 告警通知支持飞书与自定义 Webhook
<at>等标签注入)X-Webhook-Event/X-Webhook-Timestamp/X-Webhook-Signature请求头,签名为 HMAC-SHA256;接收端验签方法见docs/alert-notify-webhook.mdTOTP_ENCRYPTION_KEY加密存储,接口只返回打码地址。外发走出站目标策略,默认只允许公网地址,内网需加入security.outbound.allow_private_targets,且不跟随重定向。渠道变更与测试写入操作日志,请求体不落库GET/PUT /api/v1/admin/alert-notify/channels、POST /api/v1/admin/alert-notify/channels/test验证
go build ./...、go test -tags=unit ./...(61 个包)、go test -tags=integration ./...(54 个包)全部通过;golangci-lintv2.14 无问题;gofmt 无输出vitest run全量 476 个文件、4022 个用例通过;vue-tsc与 i18n 检查通过部署注意
TOTP_ENCRYPTION_KEY,否则重启后渠道配置无法解密(线上 2FA 正常,说明已配置)🤖 Generated with Claude Code