Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
2c0649d
ce feat: enhance Cloudbeaver use case with SQL result masking capabil…
winfredLIN Mar 24, 2026
fdb2b17
ce feat: add masking audit permission and update related localization
winfredLIN Mar 24, 2026
dc2ca37
refactor: remove masking switch references and introduce masking task…
winfredLIN Mar 24, 2026
4ea7e33
ce feat: add GetURL method to ProxyTarget for URL retrieval
winfredLIN Mar 24, 2026
8b0bf89
feat: enhance data export workflow with masking configuration and tas…
winfredLIN Mar 24, 2026
ea5abef
refactor: remove data masking switch from DBService and update maskin…
winfredLIN Mar 24, 2026
43f76a8
ce docs: make swagger
winfredLIN Mar 24, 2026
573f194
ce remove: delete enterprise and community edition data masking files
winfredLIN Mar 24, 2026
b5d0c8b
ce feat: introduce data masking configuration and sensitive data disc…
winfredLIN Mar 24, 2026
2af63df
ce refactor: update API definitions for data masking
winfredLIN Mar 24, 2026
5dcb1cc
ce feat: enhance data masking API with new endpoints and parameters
winfredLIN Mar 25, 2026
6f66980
ce fix: update Swagger definitions and add new task status
winfredLIN Mar 25, 2026
27d73f7
ce feat: enhance data masking functionality with user-specific config…
winfredLIN Mar 25, 2026
79bcb8d
fix: update Swagger definitions and improve sensitive data discovery …
winfredLIN Mar 26, 2026
16473d1
docs: update swagger
winfredLIN Mar 30, 2026
978b650
chore: update file change prevention pattern in GitHub Actions workflow
winfredLIN Mar 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-pr-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
name: Prevent file change
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: ^(?!.*_ee\.go$)(?!.*_ee_test\.go$)(?!.*_ee\.yml$)(?!.*_rel\.go$)(?!.*_rel_test\.go$)(?!go\.mod$)(?!go\.sum$)(?!\.github\/workflows\/check-pr-files\.yml$)(?!vendor\/.*)(?!.*_qa\.go$).*
pattern: ^(?!.*_ee\.go$)(?!.*_ee_test\.go$)(?!.*_ee\.md$)(?!.*_ee\.yml$)(?!.*_rel\.go$)(?!.*_rel_test\.go$)(?!go\.mod$)(?!go\.sum$)(?!\.github\/workflows\/check-pr-files\.yml$)(?!vendor\/.*)(?!.*_qa\.go$).*
trustedAuthors: xalvarez
28 changes: 20 additions & 8 deletions api/dms/service/v1/db_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ type DBService struct {
Desc string `json:"desc"`
// SQLE config
SQLEConfig *dmsCommonV1.SQLEConfig `json:"sqle_config"`
// data masking switch
// Required: false
IsEnableMasking bool `json:"is_enable_masking"`
// backup switch
// Required: false
EnableBackup bool `json:"enable_backup"`
Expand Down Expand Up @@ -202,9 +199,6 @@ type UpdateDBService struct {
Desc *string `json:"desc"`
// SQLE config
SQLEConfig *dmsCommonV1.SQLEConfig `json:"sqle_config"`
// data masking switch
// Required: false
IsEnableMasking bool `json:"is_enable_masking"`
// backup switch
// Required: false
EnableBackup bool `json:"enable_backup"`
Expand Down Expand Up @@ -328,8 +322,6 @@ type ImportDBService struct {
SQLEConfig *dmsCommonV1.SQLEConfig `json:"sqle_config"`
// DB Service Custom connection parameters
AdditionalParams []*dmsCommonV1.AdditionalParam `json:"additional_params"`
// is enable masking
IsEnableMasking bool `json:"is_enable_masking"`
}

// swagger:model
Expand Down Expand Up @@ -450,6 +442,23 @@ type ListGlobalDBService struct {
LastConnectionTestErrorMessage string `json:"last_connection_test_error_message,omitempty"`
}

// swagger:enum FunctionSupportType
type FunctionSupportType string

const (
// FunctionSupportTypeDataMasking 数据脱敏功能
FunctionSupportTypeDataMasking FunctionSupportType = "data_masking"
)

// swagger:parameters ListGlobalDBServicesTips
type ListGlobalDBServicesTipsReq struct {
// function support filter, when specified, returns the db types supported by the function
// in: query
// enum: data_masking
// Example: data_masking
FunctionSupport FunctionSupportType `query:"function_support" json:"function_support" validate:"omitempty,oneof=data_masking"`
}

// swagger:model ListGlobalDBServicesTipsReply
type ListGlobalDBServicesTipsReply struct {
// List global db service tips reply
Expand All @@ -460,5 +469,8 @@ type ListGlobalDBServicesTipsReply struct {
}

type ListGlobalDBServiceTips struct {
// DBType 数据库类型列表
// 当请求参数 function_support 为空时,返回所有数据库类型
// 当请求参数 function_support 有效时,仅返回支持该功能的数据库类型
DBType []string `json:"db_type"`
}
Loading