feat: add DMS IP/CIDR access restriction - #665
Merged
Merged
Conversation
PR Reviewer Guide 🔍(Review updated until commit 322cec6)
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Seechi-Yolo
approved these changes
Aug 13, 2026
Persist whitelist rules and enablement, expose configuration APIs, and enforce access at the API middleware before JWT.
|
Persistent review updated to latest commit 322cec6 |
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
添加访问限制中间件,进行IP白名单匹配
更新DMS服务和路由,支持配置的增删改查
扩展代理服务逻辑,取消注册IP豁免时同步删除
Diagram Walkthrough
File Walkthrough
11 files
定义IP/CIDR白名单及访问限制API结构体增加中间件实现IP白名单检查逻辑添加访问限制相关HTTP接口控制器新增访问限制及白名单规则路由映射实现IP白名单逻辑与访问限制开关控制扩展代理逻辑,添加删除注册IP接口实现访问限制配置API服务逻辑更新服务初始化,注入访问限制业务对象增加存取白名单规则及开关的数据库操作定义白名单规则数据模型及表结构添加数据库删除代理目标逻辑1 files
新增代理IP豁免方法的单元测试1 files