Skip to content

Commit 1a50789

Browse files
committed
chore(changeset): state the plugin-security remedy as prose; nothing authorable is renamed
Claude-Session: https://claude.ai/code/session_01WkL6Eijt432S1Y7ekb6ovQ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2e81abb commit 1a50789

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎.changeset/22074-security-identity-objects-boot-refusal.md‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,4 @@ Clause-②: yes (narrowing)
1616

1717
**What still boots, unchanged.** A kernel that mounts `AuthPlugin` (`os serve` pairs the two; `@objectstack/verify`'s `bootStack` mounts both); a kernel that registers the two objects any other way; and a boot that composes `SecurityPlugin` for its declarations only (`os migrate`, which suppresses `start()`).
1818

19-
## FROM → TO
20-
21-
| you composed | compose instead |
22-
|:--|:--|
23-
| `ObjectQLPlugin` + `SecurityPlugin`, no `AuthPlugin` (a test kit) | add `createIdentityObjectsPlugin()` from `@objectstack/plugin-auth` |
24-
| a hand-written plugin that registers `SysUser` / `SysMember` | `createIdentityObjectsPlugin()`, which registers plugin-auth's own list (the hand-written one still satisfies the check) |
25-
| `DevPlugin` with `services: { auth: false }` and security on | `services: { security: false }`, or `createIdentityObjectsPlugin()` in `extraPlugins` |
26-
27-
**The one-line fix:** `await kernel.use(createIdentityObjectsPlugin())`, from `@objectstack/plugin-auth`, on a kernel that mounts `SecurityPlugin` without `AuthPlugin`.
19+
**The remedy.** on a kernel that mounts `SecurityPlugin` without `AuthPlugin`, such as a test kit, add `await kernel.use(createIdentityObjectsPlugin())` from `@objectstack/plugin-auth`. It registers plugin-auth's own identity list, so a hand-written plugin that registers `SysUser` and `SysMember` is no longer needed, though it still satisfies the check. A `DevPlugin` stack with `services: { auth: false }` either turns security off as well or passes `createIdentityObjectsPlugin()` in `extraPlugins`. Nothing in an app's metadata changes.

0 commit comments

Comments
 (0)