Skip to content

feat: 安全审计 IP 管理、匿名鉴权防护与停用用户身份展示 - #513

Merged
ranxi2001 merged 3 commits into
productionfrom
feat/unauthenticated-ip-abuse-guard
Oct 21, 2026
Merged

ranxi2001 merged 3 commits into
productionfrom
feat/unauthenticated-ip-abuse-guard

Conversation

@ranxi2001

Copy link
Copy Markdown
Owner

变更

  • 安全审计新增 IP 审计二级 Tab,汇总来源、期限、状态与既有事件,管理员按来源确认解除并读回实际状态。
  • 匿名 API 鉴权失败共享有界滑窗,默认关闭;停用/欠费等业务拒绝不按匿名攻击惩罚,合法 Key 不因同 IP 失败流量连坐。
  • 停用用户保留可信观测身份与 USER_INACTIVE,仍返回401,不授予认证权限。

验证

  • 后端六包定向测试通过,前端6文件43项通过,定向ESLint与diff检查通过。
  • 完整类型检查曾OOM,完整构建/真实部署联调未验收,等待本PR CI;不以定向测试代表发布可用。

边界

  • Fail2ban/iptables未接入;无全量枚举接口的登录来源需精确IP查询;手工规则/Key ACL保持真实只读或转原设置。
  • 鉴权观测历史仍在连接诊断,未集中接入IP Tab。不回填历史,不清除其他来源限制。
  • 未部署或自动开启保护。

Agent: Codex implementation; parent reviewed scoped diff and raw test evidence.

@ranxi2001
ranxi2001 marked this pull request as ready for review October 21, 2026 18:14
@ranxi2001
ranxi2001 merged commit 0ce33c0 into production Oct 21, 2026
18 checks passed
@ranxi2001 ranxi2001 mentioned this pull request Oct 21, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant