feat(masking): add API structs and CE stubs for custom masking rules #787#600
Open
LordofAvernus wants to merge 4 commits intomainfrom
Open
feat(masking): add API structs and CE stubs for custom masking rules #787#600LordofAvernus wants to merge 4 commits intomainfrom
LordofAvernus wants to merge 4 commits intomainfrom
Conversation
…king rules #787 Add request/response structs for custom masking rules CRUD, sensitive types list, and masking effect preview. Add 6 controller handler methods following existing code style.
The new V2 API controller calls ListMaskingRulesV2, AddCustomMaskingRule, UpdateCustomMaskingRule, DeleteCustomMaskingRule, ListSensitiveTypes, and PreviewMaskingEffect which only had EE implementations (dms build tag). Without CE stubs the non-dms build fails. Add stub methods returning errNotSupportDataMasking to data_masking_ce.go.
… distinction #787
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨No code suggestions found for the PR. |
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
Summary
rule_sourcefield to existing masking API structs (MaskingRuleConfig, SensitiveFieldScanResult, etc.)data_masking_ce.goreturningerrNotSupportDataMaskingRelated: https://github.com/actiontech/dms-ee/issues/787
Description
新增自定义脱敏规则 API 结构体定义
优化字段及 RuleRefs 支持定制规则
添加自定义规则控制器接口方法
增加 CE 版本存根函数防构建失败
Diagram Walkthrough
File Walkthrough
masking.go
更新 API 接口结构体定义api/dms/service/v1/masking.go
data_mask_controller.go
添加自定义规则控制器接口internal/apiserver/service/data_mask_controller.go
data_masking_ce.go
添加 CE 版本存根函数internal/dms/service/data_masking_ce.go
存根函数:ListMaskingRulesV2、Add/Update/DeleteCustomMaskingRule、ListSensitiveTypes、PreviewMaskingEffect