Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增默认运维工程师、开发工程师、开发主管角色 #2691

Closed
5 tasks done
Tracked by #2599
taolx0 opened this issue Oct 17, 2024 · 1 comment
Closed
5 tasks done
Tracked by #2599

新增默认运维工程师、开发工程师、开发主管角色 #2691

taolx0 opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
not_compatible not compatible old version publish-pre1 suggestion verified the issue all pr is verified
Milestone

Comments

@taolx0
Copy link
Collaborator

taolx0 commented Oct 17, 2024

描述

新增3个默认角色:

开发工程师: 创建/编辑工单,执行SQL查询,配置流水线,创建智能调优

开发主管 : 查看他人创建的工单,工单审核/驳回,配置流水线,查看他人创建的智能调优

运维工程师 : 查看他人创建的工单,上线工单,创建智能扫描,查看他人的扫描任务,数据导出,授权数据源数据

其余需求:

权限“SQL查询”名称变更为“SQL工作台查询”,成员对特定数据源拥有这个权限后,可以在CB工作台使用该数据源;若没有拥有该权限,则无法查看+使用

需求背景:

原先的两个角色:SQLE管理员,Provision管理员设计不合理

实现方案

  • 移除SQLE管理员角色
  • 移除provision管理员
  • 新增运维工程师,开发工程师,开发主管角色
  • 更新SQL查询权限
  • 升级方案

影响面

移除SQLE管理员,provision管理员角色后,2409版本用户不能再使用SQLE管理员和provision管理员角色

升级方案

由于新增了角色,所以需要更新元数据库

  1. 设置dms_configs表need_init_roles字段为1
UPDATE dms_configs
SET need_init_roles = 1
WHERE uid = 700100;
  1. 重启dms服务
systemctl restart dms.service
@taolx0 taolx0 changed the title 新增默认运维开发审批角色 新增默认运维工程师、开发工程师、开发主管角色 Oct 17, 2024
@ColdWaterLW ColdWaterLW added this to the v3.2410.0 milestone Oct 22, 2024
@taolx0 taolx0 added the not_compatible not compatible old version label Oct 22, 2024
@taolx0 taolx0 closed this as completed Oct 22, 2024
@taolx0
Copy link
Collaborator Author

taolx0 commented Nov 5, 2024

role1
role2
role3
role4
role5

@taolx0 taolx0 added the verified the issue all pr is verified label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not_compatible not compatible old version publish-pre1 suggestion verified the issue all pr is verified
Projects
None yet
Development

No branches or pull requests

2 participants