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

feat:流水线权限代持功能重构 #10356

Open
fayewong-v5 opened this issue May 16, 2024 · 0 comments
Open

feat:流水线权限代持功能重构 #10356

fayewong-v5 opened this issue May 16, 2024 · 0 comments
Assignees
Labels
kind/enhancement 功能改进特性

Comments

@fayewong-v5
Copy link
Contributor

fayewong-v5 commented May 16, 2024

【背景】
目前使用流水线最近修改人来作为非人工触发的执行场景的权限校验,会产生如下问题:

  • 用户不清楚有这个设定,经常通过试错才发现
  • 用户虽然权限交接了,但流水线还是失败
  • 用户保存流水线后,定时触发等失败

【需求】

  1. 将流水线执行权限代持人和流水线最近修改人剥离开
  2. 权限代持人默认为流水线创建人,后续通过手动可以重置
  3. 拥有编辑和执行权限的用户可以在流水线里重置代持人
  4. 将用户从权限组中移出时,需校验是否对权限代持产生影响,若有影响需先解决后才能移出
  5. 将用户从项目移出时,需校验是否对权限代持产生影响,若有影响需先解决后才能移出

注意:

  1. BK_CI_START_USER_ID 继续维持旧的特性,取值为流水线权限人
  2. 功能上线时,存量流水线,权限代持人使用流水线最近修改人初始化
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement 功能改进特性
Projects
None yet
Development

No branches or pull requests

4 participants