mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add tasks rbac object (#20234)
This change adds RBAC for tasks. Updates coder/internal#948 Supersedes coder/coder#20212
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- Revert Tasks RBAC.
|
||||
-- No-op: enum values remain to avoid churn. Removing enum values requires
|
||||
-- doing a create/cast/drop cycle which is intentionally omitted here.
|
||||
@@ -0,0 +1,6 @@
|
||||
-- Tasks RBAC.
|
||||
ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'task:create';
|
||||
ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'task:read';
|
||||
ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'task:update';
|
||||
ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'task:delete';
|
||||
ALTER TYPE api_key_scope ADD VALUE IF NOT EXISTS 'task:*';
|
||||
Reference in New Issue
Block a user