feat: add DMS IP/CIDR access restriction - #665
Open
LordofAvernus wants to merge 1 commit into
Open
Conversation
Persist whitelist rules and enablement, expose configuration APIs, and enforce access at the API middleware before JWT.
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Seechi-Yolo
approved these changes
Aug 13, 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.
User description
关联的 issue
https://github.com/actiontech/dms-ee/issues/961
描述你的变更
确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_docDescription
新增 IP/CIDR 访问限制及白名单管理功能
实现前置中间件与 API 接口权限判断
增加业务逻辑及存储层实现白名单规则 CRUD
添加单元测试保障规则校验与代理 IP 检查
Diagram Walkthrough
File Walkthrough
11 files
定义访问限制 API 数据结构与请求响应格式实现访问限制中间件及 IP 检查逻辑新增访问限制 API 控制器及 swagger 标注添加访问限制相关路由映射新增业务逻辑处理白名单规则与 IP 匹配扩展代理功能实现注册 IP 校验与删除实现服务层访问限制逻辑并调用业务方法集成访问限制业务逻辑到服务初始化实现访问限制存储层 CRUD 及开关管理添加白名单规则数据模型及表映射添加代理目标删除接口,更新 IP 豁免逻辑2 files
添加访问限制及规则匹配单元测试添加代理 IP 豁免功能测试用例