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:iam权限模型以及相关sql脚本修改 #9643 #9713

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions helm-charts/core/ci/templates/init/init.iam-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ spec:
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (8,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/quality/api/open/quality/callback/group", "quality_group", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (11,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/project/api/open/project/callback/", "project", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (12,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/process/api/open/pipeline/callback/pipelineGroupInfo", "pipeline_group", "ci");
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (13,"http://{{ include "bkci.names.fullname" . }}-gateway.{{ .Release.Namespace }}", "/ms/process/api/open/pipeline/callback/pipelineTemplateInfo", "pipeline_template", "ci");
{{- if ne .Values.config.bkCodeccPrivateUrl "" }}
INSERT IGNORE INTO T_AUTH_IAM_CALLBACK (ID,GATEWAY,PATH, RESOURCE,SYSTEM) VALUES (13,"{{ .Values.config.bkCodeccPrivateUrl }}", "/ms/openapi/api/open/v2/callback/instances/list", "codecc_task", "codecc");
{{- end }}
Expand Down
61 changes: 61 additions & 0 deletions support-files/bkiam-rbac/0005_action_20221213_iam-rbac.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,33 @@
"version": 1
}
},
{
"operation": "upsert_action",
"data": {
"id": "project_manage-archived-pipeline",
"name": "管理已归档流水线",
"name_en": "Manage Archived Pipeline",
"auth_type": "rbac",
"type": "edit",
"related_resource_types": [
{
"system_id": "bk_ci_rbac",
"id": "project",
"related_instance_selections": [
{
"system_id": "bk_ci_rbac",
"id": "project_instance",
"ignore_iam_path": true
}
]
}
],
"related_actions": [
"project_visit"
],
"version": 1
}
},
{
"operation": "upsert_action",
"data": {
Expand Down Expand Up @@ -456,6 +483,40 @@
"version": 1
}
},
{
"operation": "upsert_action",
"data": {
"id": "pipeline_archive",
"name": "归档流水线",
"name_en": "Pipeline Archive",
"auth_type": "rbac",
"type": "edit",
"related_resource_types": [
{
"system_id": "bk_ci_rbac",
"id": "pipeline",
"related_instance_selections": [
{
"system_id": "bk_ci_rbac",
"id": "pipeline_instance",
"ignore_iam_path": true
},
{
"system_id": "bk_ci_rbac",
"id": "pipeline_group_instance",
"ignore_iam_path": true
}
]
}
],
"related_actions": [
"project_visit",
"pipeline_list",
"pipeline_view"
],
"version": 1
}
},
{
"operation": "upsert_action",
"data": {
Expand Down
Loading
Loading