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

perf: 执行公共脚本操作权限内置到“业务运维”的常用操作里 #1600 #1630

Merged
merged 1 commit into from
Dec 15, 2022
Merged
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
178 changes: 178 additions & 0 deletions support-files/bkiam/0010_bk_job_20221215-1000_iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"system_id": "bk_job",
"operations": [
{
"operation": "upsert_common_actions",
"data": [
{
"name": "业务运维",
"name_en": "Operator",
"actions": [
{
"id": "access_business"
},
{
"id": "quick_execute_script"
},
{
"id": "quick_transfer_file"
},
{
"id": "execute_script"
},
{
"id": "view_script"
},
{
"id": "create_script"
},
{
"id": "manage_script"
},
{
"id": "create_job_template"
},
{
"id": "view_job_template"
},
{
"id": "edit_job_template"
},
{
"id": "delete_job_template"
},
{
"id": "debug_job_template"
},
{
"id": "launch_job_plan"
},
{
"id": "create_job_plan"
},
{
"id": "view_job_plan"
},
{
"id": "edit_job_plan"
},
{
"id": "delete_job_plan"
},
{
"id": "sync_job_plan"
},
{
"id": "create_tag"
},
{
"id": "manage_tag"
},
{
"id": "create_cron"
},
{
"id": "manage_cron"
},
{
"id": "view_history"
},
{
"id": "notification_setting"
},
{
"id": "use_account"
},
{
"id": "create_account"
},
{
"id": "manage_account"
},
{
"id": "view_file_source"
},
{
"id": "create_file_source"
},
{
"id": "manage_file_source"
},
{
"id": "use_ticket"
},
{
"id": "create_ticket"
},
{
"id": "manage_ticket"
},
{
"id": "execute_public_script"
}
]
},
{
"name": "业务只读",
"name_en": "Visitor",
"actions": [
{
"id": "access_business"
},
{
"id": "view_script"
},
{
"id": "view_job_template"
},
{
"id": "view_job_plan"
},
{
"id": "view_history"
},
{
"id": "view_file_source"
}
]
},
{
"name": "平台管理员",
"name_en": "Administrator",
"actions": [
{
"id": "dashboard_view"
},
{
"id": "service_state_access"
},
{
"id": "create_whitelist"
},
{
"id": "manage_whitelist"
},
{
"id": "execute_public_script"
},
{
"id": "create_public_script"
},
{
"id": "manage_public_script_instance"
},
{
"id": "global_settings"
},
{
"id": "high-risk_detect_rule"
},
{
"id": "high-risk_detect_record"
}
]
}
]
}
]
}