Skip to content

Commit 492018d

Browse files
committed
feat(permission-groups): declare a capability on the unified selector operation
selectors.execute is exempt with its reason on record: credential access is authorized per credential, and per-integration denial is the parameterized allowedIntegrations key, enforced at workflow save and execution. Gating the picker itself needs a selector-key-to-block-type mapping — a follow-up, not something to claim silently here.
1 parent ed1e3ca commit 492018d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { defineWorkspaceOperation } from '@/lib/core/application'
22

33
export const selectorOperations = {
4+
// permission-group-exempt: no static capability names selector browsing — credential access is authorized per credential, and per-integration denial is the parameterized allowedIntegrations key, enforced today at workflow save and execution. Gating the picker itself needs a selector-key-to-block-type mapping and is tracked as a follow-up, not silently covered here.
45
execute: defineWorkspaceOperation({
56
id: 'selectors.execute',
67
minimumRole: 'read',
78
workspaceApiKey: 'deny',
89
principalKinds: ['session'],
10+
capability: 'none',
911
}),
1012
} as const

0 commit comments

Comments
 (0)