Repository navigation
fix(jev): 统一 Jev 封禁分组并逐 IP 落库 - #36
Merged
Merged
Conversation
- Jev 封禁的 IP 统一归入「Jev 自动封禁」分组,启动时合并旧版按批次创建的 jev-* 分组 - 每个 IP 判定后立即拉黑,并在同一事务内写评估记录与水位线,批次中断不再丢失结果或重复消耗额度 - evaluation.blocked 只记录实际被拉黑的 IP;已拉黑判断改用 IsBlacklisted(支持 CIDR/地区) - 解封接口同时覆盖手动自动黑名单与 Jev 分组 - ConfigurationService 新增锁内原子的分组增删/合并方法,替代锁外修改共享列表 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 3, 2026
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.
变更内容
改进 Jev 恶意请求判断后的拉黑流程(P0):
jev-yyyyMMdd-HHmmss-自动/人工分组。启动时自动把旧版jev-*分组合并进来,带地区规则的旧分组不动。evaluation.blocked语义修正:只记录实际被拉黑的 IP,白名单或已被其他规则覆盖的 IP 记 0。已拉黑判断改用IsBlacklisted,能识别 CIDR 和地区规则。DELETE /api/v1/abnormal-ip/blacklist之前只从「自动黑名单」移除,对 Jev 封禁的 IP 不起作用;现在同时覆盖 Jev 分组。ConfigurationService新增AddIpToBlacklistGroup/RemoveIpFromBlacklistGroups/MergeBlacklistGroups,在锁内完成并替换为新实例,不再在锁外修改共享的 IP 列表。手动封禁接口也改用这些方法。验证
dotnet build FastGateway.sln通过(0 个错误)已知限制(后续 P1)
🤖 Generated with Claude Code