mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
fix(security): restrict task environment controls and app scopes (#3121)
* fix(security): restrict task environment controls and app scopes * fix(security): preserve legacy scopes and add read-only access * feat(security): add read-only scopes for remaining resources * fix(security): reject apps scope grants in app API * fix(security): protect system app and task file boundaries * fix: block case-variant secret paths and task runner env overrides
This commit is contained in:
1 parent
a5f22f8d44
commit
442ab2c616
28 files changed
+782
-28
No files matched your search
@@ -20,30 +20,58 @@ export default {
|
||||
name: intl.get('定时任务'),
|
||||
value: 'crons',
|
||||
},
|
||||
{
|
||||
name: intl.get('定时任务(只读)'),
|
||||
value: 'crons:read',
|
||||
},
|
||||
{
|
||||
name: intl.get('环境变量'),
|
||||
value: 'envs',
|
||||
},
|
||||
{
|
||||
name: intl.get('环境变量(只读)'),
|
||||
value: 'envs:read',
|
||||
},
|
||||
{
|
||||
name: intl.get('订阅管理'),
|
||||
value: 'subscriptions',
|
||||
},
|
||||
{
|
||||
name: intl.get('订阅管理(只读)'),
|
||||
value: 'subscriptions:read',
|
||||
},
|
||||
{
|
||||
name: intl.get('配置文件'),
|
||||
value: 'configs',
|
||||
},
|
||||
{
|
||||
name: intl.get('配置文件(只读)'),
|
||||
value: 'configs:read',
|
||||
},
|
||||
{
|
||||
name: intl.get('脚本管理'),
|
||||
value: 'scripts',
|
||||
},
|
||||
{
|
||||
name: intl.get('脚本(只读)'),
|
||||
value: 'scripts:read',
|
||||
},
|
||||
{
|
||||
name: intl.get('日志管理'),
|
||||
value: 'logs',
|
||||
},
|
||||
{
|
||||
name: intl.get('日志管理(只读)'),
|
||||
value: 'logs:read',
|
||||
},
|
||||
{
|
||||
name: intl.get('依赖管理'),
|
||||
value: 'dependencies',
|
||||
},
|
||||
{
|
||||
name: intl.get('依赖管理(只读)'),
|
||||
value: 'dependencies:read',
|
||||
},
|
||||
{
|
||||
name: intl.get('系统信息'),
|
||||
value: 'system',
|
||||
@@ -52,17 +80,29 @@ export default {
|
||||
name: intl.get('仪表盘'),
|
||||
value: 'dashboard',
|
||||
},
|
||||
{
|
||||
name: intl.get('仪表盘(只读)'),
|
||||
value: 'dashboard:read',
|
||||
},
|
||||
],
|
||||
scopesMap: {
|
||||
crons: intl.get('定时任务'),
|
||||
'crons:read': intl.get('定时任务(只读)'),
|
||||
envs: intl.get('环境变量'),
|
||||
'envs:read': intl.get('环境变量(只读)'),
|
||||
subscriptions: intl.get('订阅管理'),
|
||||
'subscriptions:read': intl.get('订阅管理(只读)'),
|
||||
configs: intl.get('配置文件'),
|
||||
'configs:read': intl.get('配置文件(只读)'),
|
||||
scripts: intl.get('脚本管理'),
|
||||
'scripts:read': intl.get('脚本(只读)'),
|
||||
logs: intl.get('日志管理'),
|
||||
'logs:read': intl.get('日志管理(只读)'),
|
||||
dependencies: intl.get('依赖管理'),
|
||||
'dependencies:read': intl.get('依赖管理(只读)'),
|
||||
system: intl.get('系统信息'),
|
||||
dashboard: intl.get('仪表盘'),
|
||||
'dashboard:read': intl.get('仪表盘(只读)'),
|
||||
},
|
||||
notificationModes: [
|
||||
{ value: 'gotify', label: 'Gotify' },
|
||||
|
||||
Reference in new issue
Block a user