Skip to content

Commit b12e79a

Browse files
committed
docs(changeset): the effective-access release note names the derived origin kind and the resolver order
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6b1ef34 commit b12e79a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.changeset/31238-security-service-effective-access.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Metadata-protocol: none
99

1010
`@objectstack/spec/contracts` gains three exported types and one optional member of the `security` service contract, beside `DelegableScope` / `describeDelegableScope`:
1111

12-
- `EffectivePermissionSetOrigin`: how a permission set reaches a user, one of `{ kind: 'default' }` (a binding to the `everyone` audience anchor, or the human baseline the resolution adds), `{ kind: 'position'; position }` (a held position's definition names the set) and `{ kind: 'direct' }` (a `sys_user_permission_set` grant row of the user's).
12+
- `EffectivePermissionSetOrigin`: how a permission set reaches a user, one of `{ kind: 'direct' }` (a `sys_user_permission_set` grant row of the user's), `{ kind: 'position'; position }` (a held position's definition names the set, including a built-in identity position's static binding), `{ kind: 'default' }` (a binding to the `everyone` audience anchor, or the human baseline the resolution adds) and `{ kind: 'derived'; source }` (standing the resolver confers without a grant row or a position, from the closed sources `'platform_admin_config'` and `'ai_access'`).
1313
- `EffectivePermissionSet`: `{ name, origins }`, at least one origin; a set reached two ways is listed once with both.
14-
- `EffectiveAccess`: `{ userId, organizationId, positions, permissionSets }`, the sets in resolution order, in the caller's organization.
14+
- `EffectiveAccess`: `{ userId, organizationId, positions, permissionSets }`, in the caller's organization; `positions` and `permissionSets` in the resolver's own order, which the contract spells out.
1515
- `ISecurityService.describeEffectiveAccess?(userId, callerContext?)`: describe a user's effective permission sets and where each comes from, resolved by the resolver enforcement uses, gated as `explain` is (`manage_users`, organization administration of an organization the user belongs to, or a delegated `adminScope` covering the user), with an unknown user refused exactly as one the caller may not manage. Optional: a security service that predates it omits it, and callers feature-detect and answer that the read is not served.
1616

1717
A TypeScript contract only: no schema, authorable key or runtime answer changes here. The reference implementation and its REST door land separately.

0 commit comments

Comments
 (0)