Skip to content

Commit 6ca272e

Browse files
feat(rbac): whitelist createPipeline/deletePipeline for applications
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 2a2d703 commit 6ca272e

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
UPDATE rbac_policy_resource_detail
2+
SET allowed_actions = array_remove(array_remove(allowed_actions, 'createPipeline'), 'deletePipeline'),
3+
updated_on = now()
4+
WHERE resource = 'applications';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Increment 2: add createPipeline / deletePipeline to the applications resource whitelist so custom
2+
-- roles can grant/withhold pipeline lifecycle independently of config actions. dev-admin omits them.
3+
UPDATE rbac_policy_resource_detail
4+
SET allowed_actions = array_cat(allowed_actions, ARRAY ['createPipeline','deletePipeline']),
5+
updated_on = now()
6+
WHERE resource = 'applications'
7+
AND allowed_actions IS NOT NULL
8+
AND NOT ('createPipeline' = ANY (allowed_actions));

0 commit comments

Comments
 (0)