Skip to content

Commit 4f75d57

Browse files
committed
docs(spec): manage_connector_connections comments name the organization administrators' default grant
Three packages/spec comments still said the organization administrator holds the connector connection capability only by explicit grant. Ruling B (record 6545223261) made both shipped organization-administrator sets hold it by default; the comments now say so, and the spec test points at the plugin-security case that pins the exact holder list. Comments only. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibyawL9DFnt7gutTH6R
1 parent 776c1d8 commit 4f75d57

3 files changed

Lines changed: 16 additions & 9 deletions

File tree

‎packages/spec/src/identity/eval-user.zod.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ export const ADMIN_FULL_ACCESS_CAPABILITIES: Pick<PermissionSet, 'objects' | 'sy
165165
'manage_mailboxes',
166166
// [ADR-0143 D5] The connector connection capability: its holder connects,
167167
// reconnects and revokes its organization's OAuth2 connector connections.
168-
// Platform administrators hold it by default; every other position, the
169-
// organization administrator included, only by explicit grant.
168+
// Platform administrators hold it by default, and so do organization
169+
// administrators (ruling B, record 6545223261); every other position only
170+
// by explicit grant.
170171
'manage_connector_connections',
171172
],
172173
};

‎packages/spec/src/identity/platform-admin-capabilities.test.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ describe('ADMIN_FULL_ACCESS_CAPABILITIES — the one platform-admin list plugin-
5050
});
5151

5252
it('carries the connector connection capability, declared org-scoped (ADR-0143 D5)', () => {
53-
// Platform administrators hold it by default through this grant; the
54-
// organization administrator's shipped sets withhold it, pinned on the
55-
// seeded sets in plugin-security's `default-permission-sets.test.ts`.
53+
// Platform administrators hold it by default through this grant. The two
54+
// organization-administrator sets hold it by default too (ruling B, record
55+
// 6545223261), and every other shipped set withholds it: the exact holder
56+
// list is pinned by the `[ADR-0143 D5] the connector connection capability
57+
// ships with the platform administrator and both organization-administrator
58+
// sets, and no other` case in plugin-security's
59+
// `default-permission-sets.test.ts`.
5660
expect(ADMIN_FULL_ACCESS_CAPABILITIES.systemPermissions).toContain('manage_connector_connections');
5761
expect(PLATFORM_CAPABILITIES.find((c) => c.name === 'manage_connector_connections')?.scope).toBe('org');
5862
});

‎packages/spec/src/security/capabilities.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ export const PLATFORM_CAPABILITIES: readonly PlatformCapability[] = [
104104
// (`/automation/connectors/:name/connection` and the OAuth callback, in
105105
// `@objectstack/runtime`) asks this capability and nothing else — never the
106106
// platform-scoped `manage_metadata`. Held by default by platform
107-
// administrators (`ADMIN_FULL_ACCESS_CAPABILITIES`); every other position,
108-
// the organization administrator included, only by explicit grant. `org`:
109-
// the door acts on the caller's own organization's connection, and the
110-
// holder never sees a token.
107+
// administrators (`ADMIN_FULL_ACCESS_CAPABILITIES`) and by organization
108+
// administrators (the shipped `organization_admin` and
109+
// `organization_admin_no_bypass` sets, ruling B, record 6545223261); every
110+
// other position only by explicit grant. `org`: the door acts on the
111+
// caller's own organization's connection, and the holder never sees a
112+
// token.
111113
{ name: 'manage_connector_connections', label: 'Manage Connector Connections', description: 'Connect, reconnect and revoke the holder’s organization’s connection of an OAuth2 connector instance, and read its status. A connection authorizes the platform to call the vendor on the organization’s behalf; no token is ever shown to the holder.', scope: 'org' },
112114
];
113115

0 commit comments

Comments
 (0)