Arrange/data masking v3 ce#612
Conversation
|
没有在复审记录中找到这个MR => https://github.com/actiontech/dms-ee/issues/821 |
1 similar comment
|
没有在复审记录中找到这个MR => https://github.com/actiontech/dms-ee/issues/821 |
PR Reviewer Guide 🔍(Review updated until commit 7f93314)
|
PR Code Suggestions ✨Latest suggestions up to 7f93314 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit d6d303f
Suggestions up to commit d7a70a6
|
d7a70a6 to
d6d303f
Compare
|
没有在复审记录中找到这个MR => https://github.com/actiontech/dms-ee/issues/821 |
|
Persistent review updated to latest commit d6d303f |
|
没有在复审记录中找到这个MR => https://github.com/actiontech/dms-ee/issues/821 |
|
Persistent review updated to latest commit 162dc22 |
|
Failed to generate code suggestions for PR |
Added new files for unmasking workflow functionality, including use cases for creating, retrieving, and managing unmasking workflows. Introduced data structures for unmasking workflows, SQL content, and related operations, ensuring compatibility with both DMS and non-DMS builds. This implementation lays the groundwork for enhanced data masking capabilities.
…ter organization Refactored the Confidence type and its associated constants by moving them from types_ee.go to a newly created types.go file. This change improves code organization and clarity, making it easier to manage and understand the confidence levels used in sensitive data detection.
数据导出集成查看原文工单功能 Added the DownloadOriginalDataExportWorkflow method to the DataExportWorkflowUsecase, enabling the download of unmasked data export workflows as a zip file. This includes validation checks for project UID, workflow status, and user permissions. Updated related service files to support this functionality, ensuring compatibility with both enterprise and community editions. Enhanced error handling and logging for better traceability.
…iginal (CE) Owns the service struct wiring previously marked ee; pairs with biz/data_export EE implementation.
Updated the SQLResultMasker interface to include projectUID as a parameter for masking SQL results. Modified the CloudbeaverUsecase to pass projectUID during data masking operations. Introduced a new SQLResultMasker implementation for SQL workbench results, allowing for improved context and handling of masking operations. Refactored response writer to ensure consistent handling of response statuses and headers.
Added new endpoints for managing unmasking workflows, including creation, retrieval, approval, rejection, and cancellation. Introduced middleware for handling data masking and unmasking operations in SQL Workbench, ensuring proper permission checks and response handling. Enhanced the API structure to support these functionalities, improving overall data management capabilities.
…ing workflow functionality Updated the newExportMaskingTransfer method to include projectUID as a parameter, improving the masking transfer capabilities. Added markUnmaskingWorkflowUsage method to track unmasking workflow usage. Initialized unmaskingWorkflowUsecase in DMSService, enabling unmasking workflow management in the enterprise edition. Introduced new SQL workbench result masker implementations for both community and enterprise editions, ensuring proper handling based on build tags.
Owns the service struct type alignment previously marked ee; pairs with storage/model EE implementation.
Introduced the ListTableColumns method in the DMSService to handle requests for listing table columns. This method currently returns an error indicating unsupported data masking, laying the groundwork for future enhancements in data management capabilities.
Updated the locale files to include new messages related to unmasking workflows, enhancing user feedback for operations such as submission, approval, cancellation, and viewing details. This addition supports the recently implemented unmasking workflow features in the DMS service.
Introduced a new script to verify that the application can be built successfully under four different GO_BUILD_TAGS combinations: Community, Trial, Enterprise, and DMS Enterprise. This addition enhances the build process by ensuring compatibility across editions before submission.
Modified the ListMaskingRulesReq struct in masking.go to enhance documentation for the projectUid parameter. The comment now specifies that projectUid is injected via path for specific requests and is optional for global requests, improving clarity for API users.
…g_workflow optional Modified the ApproveUnmaskingWorkflowReq struct to change the approve_unmasking_workflow field from required to optional. Updated related documentation to reflect this change, clarifying that the field now carries an optional approve_reason. This adjustment improves API flexibility and aligns with user needs.
…sing Updated the AuditMiddleware function to enhance error handling by logging warnings instead of errors when parsing SQL requests fails or when SQL and datasource ID are empty. This change ensures that audit processing does not block user SQL execution. Additionally, modified the base64 decoding to use URL-safe encoding, improving compatibility with session IDs generated by the ODC server.
…emoving maskingTaskRepo Removed the maskingTaskRepo from the CloudbeaverUsecase and DataExportWorkflowUsecase, replacing its functionality with the new HasSensitiveDataMaskingTask method in the DBServiceUsecase. This change simplifies the usecases and enhances the handling of sensitive data masking tasks, improving overall code clarity and maintainability.
…e initialization Added data masking middleware for SQL Workbench, including components for data masking and unmasking workflows. Initialized storage for the SQL result masker, ensuring it shares configuration with DMS. This enhances data protection capabilities within the API server.
…for data export and unmasking workflows Modified swagger comments to improve clarity and consistency in API documentation. Adjusted parameter references and response schemas across multiple functions in the DMSController and related files, ensuring accurate representation of request and response structures.
Refactored error handling in the APIServer to dynamically set the HTTP status code and response code based on the type of error encountered. This change enhances the clarity of error responses by ensuring the correct status code is returned, improving the overall API error communication.
… and enhance masking rules listing
…us allows original download
…asking workflows with new request and response models
162dc22 to
7f93314
Compare
|
没有在复审记录中找到这个MR => https://github.com/actiontech/dms-ee/issues/821 |
|
Persistent review updated to latest commit 7f93314 |
User description
关联的 issue
link https://github.com/actiontech/dms-ee/issues/821
描述你的变更
确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatibleneed_update_docDescription
新增查看原文工单接口
重构SQL脱敏处理逻辑
调整数据结构与国际化消息
增加构建校验脚本支持
Diagram Walkthrough
File Walkthrough
9 files
添加查看原文及脱敏工作流接口新增查看原文工单API数据模型集成SQL结果脱敏与中间件定义原文工单及数据脱敏领域模型新增数据导出及原文下载路由整合unmasking工作流用例关联查看原文工单摘要字段添加原文数据下载API定义企业版之外占位unmasking用例1 files
更新中文国际化消息项1 files
调整SQL结果屏蔽参数传递1 files
新增多标签构建校验脚本1 files
增加验证构建组合任务20 files