@quickback-dev/cli 0.47.13 → 0.47.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/content.js +3 -3
- package/dist/docs/content.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/skill/docs/changelog.md +47 -0
- package/dist/skill/docs/compiler/definitions/access.md +2 -0
- package/dist/skill/docs/compiler/definitions/scopes.md +134 -0
- package/package.json +1 -1
- package/src/skill/docs/changelog.md +47 -0
- package/src/skill/docs/compiler/definitions/access.md +2 -0
- package/src/skill/docs/compiler/definitions/scopes.md +134 -0
package/dist/docs/content.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/docs/content.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,0DAA0D;AAO1D,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,WAAW,EAAE;QACX,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,qimEAAqimE;KACjjmE;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,giRAAgiR;KAC5iR;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,kmEAAkmE;KAC9mE;IACD,6BAA6B,EAAE;QAC7B,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,8tSAA8tS;KAC1uS;IACD,mCAAmC,EAAE;QACnC,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,iuGAAiuG;KAC7uG;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,4kFAA4kF;KACxlF;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,+tFAA+tF;KAC3uF;IACD,yCAAyC,EAAE;QACzC,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,k/DAAk/D;KAC9/D;I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gBAAgB;IAChB,2BAA2B;IAC3B,kCAAkC;IAClC,+BAA+B;IAC/B,iBAAiB;IACjB,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,yBAAyB;IACzB,cAAc;IACd,+BAA+B;IAC/B,wBAAwB;IACxB,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/docs/content.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,0DAA0D;AAO1D,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,WAAW,EAAE;QACX,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,oqsEAAoqsE;KAChrsE;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,giRAAgiR;KAC5iR;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,kmEAAkmE;KAC9mE;IACD,6BAA6B,EAAE;QAC7B,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,8tSAA8tS;KAC1uS;IACD,mCAAmC,EAAE;QACnC,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,iuGAAiuG;KAC7uG;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,4kFAA4kF;KACxlF;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,+tFAA+tF;KAC3uF;IACD,yCAAyC,EAAE;QACzC,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,k/DAAk/D;KAC9/D;IACD,wBAAwB,EAAE;QACxB,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,28WAA28W;KACv9W;IACD,sBAAsB,EAAE;QACtB,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,0jTAA0jT;KACtkT;IACD,0BAA0B,EAAE;QAC1B,OAAO,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IACxB,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
### `acceptScope`: one namespaced handler for the user AND the sessionless principal
|
|
6
|
+
|
|
7
|
+
A project-level namespace can now **accept an already-minted scope claim as
|
|
8
|
+
proof of entry** — the inverse of `mintScope`. Set
|
|
9
|
+
**`authz.namespaces.<ns>.acceptScope: '<kind>'`** and the hoisted resolver gains
|
|
10
|
+
a fast-path: a scope-only principal (`ctx.scopePrincipal`, no `ctx.userId`)
|
|
11
|
+
carrying a verified `ctx.scope.<kind>` claim proves entry by that claim, without
|
|
12
|
+
a DB relationship probe. One `/event/:eventId/*` handler then serves **both** the
|
|
13
|
+
Better-Auth user and the sessionless invite-principal — retiring the parallel
|
|
14
|
+
PUBLIC `/attendee/*` twin.
|
|
15
|
+
|
|
16
|
+
- **Named-string only** — the kind is always explicit; a bare `true` is a type
|
|
17
|
+
error. Default absent → the resolver never admits a scope principal (fail-closed).
|
|
18
|
+
- **Two locks, compile-enforced** — `acceptScope` opts the namespace in, **and**
|
|
19
|
+
at least one relationship lane must confer a `<kind>` role declared
|
|
20
|
+
`subject: 'supplied' \| 'both'`. A `subject: 'user'` role emits no accept arm;
|
|
21
|
+
a kind whose every conferring lane is user-only is a **compile error**, not a
|
|
22
|
+
dead fast-path. The kind must be declared and its `requestField` must equal the
|
|
23
|
+
prefix's first `:param`.
|
|
24
|
+
- **Forging-safe** — the claim is verified (never caller-asserted), the kind is
|
|
25
|
+
read by name (not an any-key loop), the instance is pinned twice
|
|
26
|
+
(`entry.id === :param` in the gate + `eq(loads.pk, :param)` in hydration), and
|
|
27
|
+
each accept arm is one exact `(role, lane)` pair. New proof source, zero new
|
|
28
|
+
enforcement surface — firewall, masking, `access`, and scoped-db read the same
|
|
29
|
+
`ctx.scope` they read for a userId caller.
|
|
30
|
+
- **Composes with `mintScope`** — a userId caller still gets a rolling re-mint;
|
|
31
|
+
a scope principal's verified claim is preserved (not re-stamped) so its
|
|
32
|
+
`subjectId` / sub-keys survive.
|
|
33
|
+
- **Realtime shares the same acceptance** — the `ws-ticket` route now proves a
|
|
34
|
+
scope principal through the *same* emitter as the REST gate
|
|
35
|
+
(`emitScopeAcceptance`), so the two surfaces can't drift. Bringing the ws-ticket
|
|
36
|
+
path onto it tightened it to the named-kind read + supplied-reachable role
|
|
37
|
+
filter, closing an any-kind cross-kind match. `q-events` ships a `vendor` scope
|
|
38
|
+
role (`subject: 'both'`) + logistics-only view demonstrating the sessionless
|
|
39
|
+
supplier end-to-end.
|
|
40
|
+
- **Writes work too** — the scoped-db audit wrapper no longer throws when the
|
|
41
|
+
caller is a verified scope principal (`ctx.scopePrincipal`, no `ctx.userId`).
|
|
42
|
+
Instead of failing on the missing user, it stamps the synthetic, audit-only
|
|
43
|
+
principal id (`scope:<kind>:<subjectId>`, the token's `sub`) into
|
|
44
|
+
`created_by` / `modified_by`. So the SAME `/event/:eventId/*` handler body
|
|
45
|
+
serves both a Better-Auth user and the sessionless principal on **reads AND
|
|
46
|
+
writes** — no parallel raw-`db` write path. Still fail-closed: a genuine
|
|
47
|
+
no-user write (no scope principal) throws exactly as before. `q-events` adds a
|
|
48
|
+
`vendorCheckin` write under the acceptScope namespace exercising it end-to-end.
|
|
49
|
+
|
|
50
|
+
See [Scopes → `acceptScope`](/compiler/definitions/scopes#acceptscope--accept-an-incoming-scope-claim-as-proof-of-entry).
|
|
51
|
+
|
|
5
52
|
### Sessionless scope mint: `ctx.mintScope` + `subject: 'supplied' \| 'both'`
|
|
6
53
|
|
|
7
54
|
A scope can now be minted for a principal who has **no Better Auth account** — an
|
|
@@ -723,6 +723,8 @@ Both bulk-grant lanes piggyback on the namespace's relationship lane(s) for hydr
|
|
|
723
723
|
|
|
724
724
|
When a request misses every lane, the 403 deny payload lists every authorization path the caller could have taken — relationship names, role names, and `"team-membership"` for `{ team: true }` lanes — so a developer debugging an unexpected 403 sees the full surface they need to satisfy.
|
|
725
725
|
|
|
726
|
+
A namespace can also fold the scope machinery into this same gate: `mintScope: true` **mints** a scope token on a matched userId lane, and `acceptScope: '<kind>'` **accepts** an already-minted scope claim as proof of entry — one handler under the prefix serves both a Better-Auth user and a sessionless scope principal. See [Scopes → `acceptScope`](/compiler/definitions/scopes#acceptscope--accept-an-incoming-scope-claim-as-proof-of-entry).
|
|
727
|
+
|
|
726
728
|
### Discovery is path-prefix-only
|
|
727
729
|
|
|
728
730
|
Actions opt in by matching `path:` against a declared namespace prefix. There's no `namespace: 'foo'` field on `defineAction` — the path string is the discoverable surface, consistent with how `path:` already determines an action's URL.
|
|
@@ -317,6 +317,140 @@ forge a scope role — the guard, not the flag, is the gate.
|
|
|
317
317
|
- **The mint is gated by the same proven-relationship guard as the in-memory stamp.** It runs *after* the gate has granted access, reading the instance id from the proven path param (`:eventId`) — never from request input — so the minted `scope:<kind>:<role>` is backed by exactly the proof `/scope/v1/enter` requires. The token is **byte-identical** to one `/scope/v1/enter` would produce: same shared mint helper, same carry-forward of any *other* verified scope kinds already on the incoming token (the freshly-proven kind takes precedence; siblings survive the re-mint).
|
|
318
318
|
- **The mint is best-effort.** A mint failure (e.g. a missing signing secret) **never fails the request** — the in-memory stamp already authorized it; the caller simply doesn't receive a refreshed token on that response and can fall back to `/scope/v1/enter`.
|
|
319
319
|
|
|
320
|
+
## `acceptScope` — accept an incoming scope claim as proof of entry
|
|
321
|
+
|
|
322
|
+
`mintScope` is the resolver *minting* a scope claim after a `ctx.userId` lane
|
|
323
|
+
matches. **`acceptScope: '<kind>'` is the inverse: it lets the same resolver
|
|
324
|
+
*accept* an already-minted `ctx.scope.<kind>` claim as its own proof** — so one
|
|
325
|
+
`/event/:eventId/*` handler serves **both** the Better-Auth user (userId
|
|
326
|
+
relationship probe) **and** the sessionless scope principal (verified scope
|
|
327
|
+
JWT, no account). It's the exact fast-path the realtime
|
|
328
|
+
[ws-ticket](/stack/realtime/durable-objects) already has, ported to REST.
|
|
329
|
+
|
|
330
|
+
Without it, every scope-principal-facing namespaced action needs a **parallel
|
|
331
|
+
PUBLIC twin** (a separate handler with a hand-rolled `requireScope` check and
|
|
332
|
+
raw DB writes that bypass scoped-db) — double the surface, and "someone forgot
|
|
333
|
+
the twin" becomes a standing bug class. `acceptScope` retires the twin.
|
|
334
|
+
|
|
335
|
+
```typescript
|
|
336
|
+
// quickback.config.ts
|
|
337
|
+
authz: {
|
|
338
|
+
relationships: {
|
|
339
|
+
inspectorOf: {
|
|
340
|
+
from: 'site_inspectors',
|
|
341
|
+
subject: { column: 'inspectorUserId', equals: 'ctx.userId' },
|
|
342
|
+
resource: { column: 'locationId' },
|
|
343
|
+
where: { status: 'active' },
|
|
344
|
+
loads: 'locations',
|
|
345
|
+
exposeAs: 'location',
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
scopes: {
|
|
349
|
+
location: {
|
|
350
|
+
requestField: 'locationId',
|
|
351
|
+
roles: {
|
|
352
|
+
// supplied-reachable: a signed-in user AND a sessionless principal
|
|
353
|
+
// converge on ONE scope:location:inspector.
|
|
354
|
+
inspector: { via: 'inspectorOf', subKeys: ['inspectorId'], subject: 'both' },
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
namespaces: {
|
|
359
|
+
locationScope: {
|
|
360
|
+
prefix: '/location/:locationId',
|
|
361
|
+
via: ['inspectorOf'],
|
|
362
|
+
acceptScope: 'location', // ← honor an incoming ctx.scope.location claim
|
|
363
|
+
// mintScope: true, // ← compose freely: a userId caller also re-mints
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
}
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
A sessionless principal that already minted a token (via
|
|
370
|
+
[`ctx.mintScope`](#sessionless-scope-mint--ctxmintscope) or `/scope/v1/enter`)
|
|
371
|
+
then hits the namespaced action directly, no second round-trip:
|
|
372
|
+
|
|
373
|
+
```http
|
|
374
|
+
GET /api/v1/location/loc_42/summary
|
|
375
|
+
Authorization: Bearer <scope-only-jwt carrying scope.location = { id: 'loc_42', roles: ['inspector'] }>
|
|
376
|
+
|
|
377
|
+
200 OK
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
The resolver reads `ctx.scope.location`, confirms its `id` equals the `:locationId`
|
|
381
|
+
param, sees the `inspector` role a supplied-reachable lane confers, and admits
|
|
382
|
+
the request — no `ctx.userId`, no DB relationship probe. `ctx.location` is
|
|
383
|
+
hydrated through its own firewall exactly as it is for the userId caller.
|
|
384
|
+
|
|
385
|
+
### Two locks (both required, fail-closed)
|
|
386
|
+
|
|
387
|
+
`acceptScope` is **named-string only** — always the explicit kind, never a bare
|
|
388
|
+
`true` (there's no inference from the `:param`). Default absent → the resolver
|
|
389
|
+
**never** admits a scope principal (unchanged behavior). Beyond naming the kind,
|
|
390
|
+
the compiler enforces a second lock:
|
|
391
|
+
|
|
392
|
+
1. **`acceptScope: '<kind>'`** opts *this namespace's* REST surface in, **and**
|
|
393
|
+
2. at least one relationship lane of the namespace confers a `<kind>` role
|
|
394
|
+
declared **`subject: 'supplied' | 'both'`** (supplied-reachable).
|
|
395
|
+
|
|
396
|
+
A `subject: 'user'` role can be *minted* or *refreshed* by the namespace but can
|
|
397
|
+
**never be accepted** from a token — a user-only role must be proven by a live
|
|
398
|
+
`ctx.userId` probe. If `acceptScope` names a kind whose every conferring lane is
|
|
399
|
+
`subject: 'user'`, the **compiler errors** rather than emit a dead fast-path.
|
|
400
|
+
The compiler also checks the kind is declared and its `requestField` equals the
|
|
401
|
+
prefix's first `:param`.
|
|
402
|
+
|
|
403
|
+
### Forging safety
|
|
404
|
+
|
|
405
|
+
A scope principal can't use `acceptScope` to reach anything its token doesn't
|
|
406
|
+
already authorize:
|
|
407
|
+
|
|
408
|
+
- **The claim is verified, not asserted** — `ctx.scope` is populated only from a
|
|
409
|
+
JWT the auth middleware verified; the action can't write it.
|
|
410
|
+
- **Named kind, not any-kind** — the fast-path reads `ctx.scope['<kind>']` for
|
|
411
|
+
the declared kind (stricter than the ws-ticket's any-key loop); a colliding
|
|
412
|
+
foreign-kind id can't open the gate.
|
|
413
|
+
- **Instance pinned twice** — `entry.id === :param` in the gate, *and*
|
|
414
|
+
`eq(loads.pk, :param)` in hydration. The principal enters exactly the instance
|
|
415
|
+
its claim proved.
|
|
416
|
+
- **Role → lane is exact and supplied-restricted** — each accept arm is one
|
|
417
|
+
`(role, lane)` pair with `subject !== 'user'`; an `inspector` claim matches
|
|
418
|
+
`inspectorOf`, never a sibling lane.
|
|
419
|
+
- **No new enforcement surface** — firewall, masking, `access` arms, and
|
|
420
|
+
scoped-db all read the same `ctx.scope` / `ctx.activeOrgId` they read for a
|
|
421
|
+
userId caller. New proof source, zero new enforcement surface.
|
|
422
|
+
|
|
423
|
+
The tenant (`ctx.activeOrgId`) is sourced from the pinned-loaded resource
|
|
424
|
+
(`ctx.<exposeAs>.organizationId`) — parity with the userId caller, not a new
|
|
425
|
+
grant. Fine-grained "own rows only" stays the resource author's job via a
|
|
426
|
+
firewall arm on `ctx.scope.<kind>.subjectId`, the **same** arm that already
|
|
427
|
+
serves the userId principal.
|
|
428
|
+
|
|
429
|
+
### Writes: audit fields for a userless principal
|
|
430
|
+
|
|
431
|
+
A scope principal has no `ctx.userId`, so the scoped-db **audit wrapper** — which
|
|
432
|
+
stamps `created_by` / `modified_by` — can't record a user. Rather than force a
|
|
433
|
+
parallel raw-`db` write path (which would re-scatter the exact duplication
|
|
434
|
+
`acceptScope` removes), the wrapper stamps the principal's synthetic, audit-only
|
|
435
|
+
id — the token's `sub`, `scope:<kind>:<subjectId>` — into those columns:
|
|
436
|
+
|
|
437
|
+
```ts
|
|
438
|
+
// A verified scope principal's write, through the normal scoped db:
|
|
439
|
+
await db.insert(vendorCheckins).values({ eventId, note });
|
|
440
|
+
// → created_by = modified_by = "scope:event:guest_abc123"
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
The `scope:` prefix self-describes the actor (which kind, which subject), so no
|
|
444
|
+
separate "actor type" column is needed. This is the write-side companion to the
|
|
445
|
+
read fast-path: **one handler body serves both a Better-Auth user and the
|
|
446
|
+
sessionless principal, on reads and writes alike.**
|
|
447
|
+
|
|
448
|
+
It stays **fail-closed**: the relaxation fires *only* for `ctx.scopePrincipal
|
|
449
|
+
=== true`. A write that reaches the wrapper with no `userId` and no scope
|
|
450
|
+
principal (genuine auth-context loss) still throws — the audit layer never
|
|
451
|
+
silently logs an unauthenticated write. For a real system-side write outside any
|
|
452
|
+
request, use the unwrapped `db` (`createDb`) directly, as before.
|
|
453
|
+
|
|
320
454
|
## Sessionless scope mint — `ctx.mintScope`
|
|
321
455
|
|
|
322
456
|
`POST /scope/v1/enter` and the namespace resolver both prove the relationship by
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickback-dev/cli",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.15",
|
|
4
4
|
"description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
|
|
5
5
|
"author": "Kardoe Incorporated <paul@kardoe.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -2,6 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
### `acceptScope`: one namespaced handler for the user AND the sessionless principal
|
|
6
|
+
|
|
7
|
+
A project-level namespace can now **accept an already-minted scope claim as
|
|
8
|
+
proof of entry** — the inverse of `mintScope`. Set
|
|
9
|
+
**`authz.namespaces.<ns>.acceptScope: '<kind>'`** and the hoisted resolver gains
|
|
10
|
+
a fast-path: a scope-only principal (`ctx.scopePrincipal`, no `ctx.userId`)
|
|
11
|
+
carrying a verified `ctx.scope.<kind>` claim proves entry by that claim, without
|
|
12
|
+
a DB relationship probe. One `/event/:eventId/*` handler then serves **both** the
|
|
13
|
+
Better-Auth user and the sessionless invite-principal — retiring the parallel
|
|
14
|
+
PUBLIC `/attendee/*` twin.
|
|
15
|
+
|
|
16
|
+
- **Named-string only** — the kind is always explicit; a bare `true` is a type
|
|
17
|
+
error. Default absent → the resolver never admits a scope principal (fail-closed).
|
|
18
|
+
- **Two locks, compile-enforced** — `acceptScope` opts the namespace in, **and**
|
|
19
|
+
at least one relationship lane must confer a `<kind>` role declared
|
|
20
|
+
`subject: 'supplied' \| 'both'`. A `subject: 'user'` role emits no accept arm;
|
|
21
|
+
a kind whose every conferring lane is user-only is a **compile error**, not a
|
|
22
|
+
dead fast-path. The kind must be declared and its `requestField` must equal the
|
|
23
|
+
prefix's first `:param`.
|
|
24
|
+
- **Forging-safe** — the claim is verified (never caller-asserted), the kind is
|
|
25
|
+
read by name (not an any-key loop), the instance is pinned twice
|
|
26
|
+
(`entry.id === :param` in the gate + `eq(loads.pk, :param)` in hydration), and
|
|
27
|
+
each accept arm is one exact `(role, lane)` pair. New proof source, zero new
|
|
28
|
+
enforcement surface — firewall, masking, `access`, and scoped-db read the same
|
|
29
|
+
`ctx.scope` they read for a userId caller.
|
|
30
|
+
- **Composes with `mintScope`** — a userId caller still gets a rolling re-mint;
|
|
31
|
+
a scope principal's verified claim is preserved (not re-stamped) so its
|
|
32
|
+
`subjectId` / sub-keys survive.
|
|
33
|
+
- **Realtime shares the same acceptance** — the `ws-ticket` route now proves a
|
|
34
|
+
scope principal through the *same* emitter as the REST gate
|
|
35
|
+
(`emitScopeAcceptance`), so the two surfaces can't drift. Bringing the ws-ticket
|
|
36
|
+
path onto it tightened it to the named-kind read + supplied-reachable role
|
|
37
|
+
filter, closing an any-kind cross-kind match. `q-events` ships a `vendor` scope
|
|
38
|
+
role (`subject: 'both'`) + logistics-only view demonstrating the sessionless
|
|
39
|
+
supplier end-to-end.
|
|
40
|
+
- **Writes work too** — the scoped-db audit wrapper no longer throws when the
|
|
41
|
+
caller is a verified scope principal (`ctx.scopePrincipal`, no `ctx.userId`).
|
|
42
|
+
Instead of failing on the missing user, it stamps the synthetic, audit-only
|
|
43
|
+
principal id (`scope:<kind>:<subjectId>`, the token's `sub`) into
|
|
44
|
+
`created_by` / `modified_by`. So the SAME `/event/:eventId/*` handler body
|
|
45
|
+
serves both a Better-Auth user and the sessionless principal on **reads AND
|
|
46
|
+
writes** — no parallel raw-`db` write path. Still fail-closed: a genuine
|
|
47
|
+
no-user write (no scope principal) throws exactly as before. `q-events` adds a
|
|
48
|
+
`vendorCheckin` write under the acceptScope namespace exercising it end-to-end.
|
|
49
|
+
|
|
50
|
+
See [Scopes → `acceptScope`](/compiler/definitions/scopes#acceptscope--accept-an-incoming-scope-claim-as-proof-of-entry).
|
|
51
|
+
|
|
5
52
|
### Sessionless scope mint: `ctx.mintScope` + `subject: 'supplied' \| 'both'`
|
|
6
53
|
|
|
7
54
|
A scope can now be minted for a principal who has **no Better Auth account** — an
|
|
@@ -723,6 +723,8 @@ Both bulk-grant lanes piggyback on the namespace's relationship lane(s) for hydr
|
|
|
723
723
|
|
|
724
724
|
When a request misses every lane, the 403 deny payload lists every authorization path the caller could have taken — relationship names, role names, and `"team-membership"` for `{ team: true }` lanes — so a developer debugging an unexpected 403 sees the full surface they need to satisfy.
|
|
725
725
|
|
|
726
|
+
A namespace can also fold the scope machinery into this same gate: `mintScope: true` **mints** a scope token on a matched userId lane, and `acceptScope: '<kind>'` **accepts** an already-minted scope claim as proof of entry — one handler under the prefix serves both a Better-Auth user and a sessionless scope principal. See [Scopes → `acceptScope`](/compiler/definitions/scopes#acceptscope--accept-an-incoming-scope-claim-as-proof-of-entry).
|
|
727
|
+
|
|
726
728
|
### Discovery is path-prefix-only
|
|
727
729
|
|
|
728
730
|
Actions opt in by matching `path:` against a declared namespace prefix. There's no `namespace: 'foo'` field on `defineAction` — the path string is the discoverable surface, consistent with how `path:` already determines an action's URL.
|
|
@@ -317,6 +317,140 @@ forge a scope role — the guard, not the flag, is the gate.
|
|
|
317
317
|
- **The mint is gated by the same proven-relationship guard as the in-memory stamp.** It runs *after* the gate has granted access, reading the instance id from the proven path param (`:eventId`) — never from request input — so the minted `scope:<kind>:<role>` is backed by exactly the proof `/scope/v1/enter` requires. The token is **byte-identical** to one `/scope/v1/enter` would produce: same shared mint helper, same carry-forward of any *other* verified scope kinds already on the incoming token (the freshly-proven kind takes precedence; siblings survive the re-mint).
|
|
318
318
|
- **The mint is best-effort.** A mint failure (e.g. a missing signing secret) **never fails the request** — the in-memory stamp already authorized it; the caller simply doesn't receive a refreshed token on that response and can fall back to `/scope/v1/enter`.
|
|
319
319
|
|
|
320
|
+
## `acceptScope` — accept an incoming scope claim as proof of entry
|
|
321
|
+
|
|
322
|
+
`mintScope` is the resolver *minting* a scope claim after a `ctx.userId` lane
|
|
323
|
+
matches. **`acceptScope: '<kind>'` is the inverse: it lets the same resolver
|
|
324
|
+
*accept* an already-minted `ctx.scope.<kind>` claim as its own proof** — so one
|
|
325
|
+
`/event/:eventId/*` handler serves **both** the Better-Auth user (userId
|
|
326
|
+
relationship probe) **and** the sessionless scope principal (verified scope
|
|
327
|
+
JWT, no account). It's the exact fast-path the realtime
|
|
328
|
+
[ws-ticket](/stack/realtime/durable-objects) already has, ported to REST.
|
|
329
|
+
|
|
330
|
+
Without it, every scope-principal-facing namespaced action needs a **parallel
|
|
331
|
+
PUBLIC twin** (a separate handler with a hand-rolled `requireScope` check and
|
|
332
|
+
raw DB writes that bypass scoped-db) — double the surface, and "someone forgot
|
|
333
|
+
the twin" becomes a standing bug class. `acceptScope` retires the twin.
|
|
334
|
+
|
|
335
|
+
```typescript
|
|
336
|
+
// quickback.config.ts
|
|
337
|
+
authz: {
|
|
338
|
+
relationships: {
|
|
339
|
+
inspectorOf: {
|
|
340
|
+
from: 'site_inspectors',
|
|
341
|
+
subject: { column: 'inspectorUserId', equals: 'ctx.userId' },
|
|
342
|
+
resource: { column: 'locationId' },
|
|
343
|
+
where: { status: 'active' },
|
|
344
|
+
loads: 'locations',
|
|
345
|
+
exposeAs: 'location',
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
scopes: {
|
|
349
|
+
location: {
|
|
350
|
+
requestField: 'locationId',
|
|
351
|
+
roles: {
|
|
352
|
+
// supplied-reachable: a signed-in user AND a sessionless principal
|
|
353
|
+
// converge on ONE scope:location:inspector.
|
|
354
|
+
inspector: { via: 'inspectorOf', subKeys: ['inspectorId'], subject: 'both' },
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
namespaces: {
|
|
359
|
+
locationScope: {
|
|
360
|
+
prefix: '/location/:locationId',
|
|
361
|
+
via: ['inspectorOf'],
|
|
362
|
+
acceptScope: 'location', // ← honor an incoming ctx.scope.location claim
|
|
363
|
+
// mintScope: true, // ← compose freely: a userId caller also re-mints
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
}
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
A sessionless principal that already minted a token (via
|
|
370
|
+
[`ctx.mintScope`](#sessionless-scope-mint--ctxmintscope) or `/scope/v1/enter`)
|
|
371
|
+
then hits the namespaced action directly, no second round-trip:
|
|
372
|
+
|
|
373
|
+
```http
|
|
374
|
+
GET /api/v1/location/loc_42/summary
|
|
375
|
+
Authorization: Bearer <scope-only-jwt carrying scope.location = { id: 'loc_42', roles: ['inspector'] }>
|
|
376
|
+
|
|
377
|
+
200 OK
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
The resolver reads `ctx.scope.location`, confirms its `id` equals the `:locationId`
|
|
381
|
+
param, sees the `inspector` role a supplied-reachable lane confers, and admits
|
|
382
|
+
the request — no `ctx.userId`, no DB relationship probe. `ctx.location` is
|
|
383
|
+
hydrated through its own firewall exactly as it is for the userId caller.
|
|
384
|
+
|
|
385
|
+
### Two locks (both required, fail-closed)
|
|
386
|
+
|
|
387
|
+
`acceptScope` is **named-string only** — always the explicit kind, never a bare
|
|
388
|
+
`true` (there's no inference from the `:param`). Default absent → the resolver
|
|
389
|
+
**never** admits a scope principal (unchanged behavior). Beyond naming the kind,
|
|
390
|
+
the compiler enforces a second lock:
|
|
391
|
+
|
|
392
|
+
1. **`acceptScope: '<kind>'`** opts *this namespace's* REST surface in, **and**
|
|
393
|
+
2. at least one relationship lane of the namespace confers a `<kind>` role
|
|
394
|
+
declared **`subject: 'supplied' | 'both'`** (supplied-reachable).
|
|
395
|
+
|
|
396
|
+
A `subject: 'user'` role can be *minted* or *refreshed* by the namespace but can
|
|
397
|
+
**never be accepted** from a token — a user-only role must be proven by a live
|
|
398
|
+
`ctx.userId` probe. If `acceptScope` names a kind whose every conferring lane is
|
|
399
|
+
`subject: 'user'`, the **compiler errors** rather than emit a dead fast-path.
|
|
400
|
+
The compiler also checks the kind is declared and its `requestField` equals the
|
|
401
|
+
prefix's first `:param`.
|
|
402
|
+
|
|
403
|
+
### Forging safety
|
|
404
|
+
|
|
405
|
+
A scope principal can't use `acceptScope` to reach anything its token doesn't
|
|
406
|
+
already authorize:
|
|
407
|
+
|
|
408
|
+
- **The claim is verified, not asserted** — `ctx.scope` is populated only from a
|
|
409
|
+
JWT the auth middleware verified; the action can't write it.
|
|
410
|
+
- **Named kind, not any-kind** — the fast-path reads `ctx.scope['<kind>']` for
|
|
411
|
+
the declared kind (stricter than the ws-ticket's any-key loop); a colliding
|
|
412
|
+
foreign-kind id can't open the gate.
|
|
413
|
+
- **Instance pinned twice** — `entry.id === :param` in the gate, *and*
|
|
414
|
+
`eq(loads.pk, :param)` in hydration. The principal enters exactly the instance
|
|
415
|
+
its claim proved.
|
|
416
|
+
- **Role → lane is exact and supplied-restricted** — each accept arm is one
|
|
417
|
+
`(role, lane)` pair with `subject !== 'user'`; an `inspector` claim matches
|
|
418
|
+
`inspectorOf`, never a sibling lane.
|
|
419
|
+
- **No new enforcement surface** — firewall, masking, `access` arms, and
|
|
420
|
+
scoped-db all read the same `ctx.scope` / `ctx.activeOrgId` they read for a
|
|
421
|
+
userId caller. New proof source, zero new enforcement surface.
|
|
422
|
+
|
|
423
|
+
The tenant (`ctx.activeOrgId`) is sourced from the pinned-loaded resource
|
|
424
|
+
(`ctx.<exposeAs>.organizationId`) — parity with the userId caller, not a new
|
|
425
|
+
grant. Fine-grained "own rows only" stays the resource author's job via a
|
|
426
|
+
firewall arm on `ctx.scope.<kind>.subjectId`, the **same** arm that already
|
|
427
|
+
serves the userId principal.
|
|
428
|
+
|
|
429
|
+
### Writes: audit fields for a userless principal
|
|
430
|
+
|
|
431
|
+
A scope principal has no `ctx.userId`, so the scoped-db **audit wrapper** — which
|
|
432
|
+
stamps `created_by` / `modified_by` — can't record a user. Rather than force a
|
|
433
|
+
parallel raw-`db` write path (which would re-scatter the exact duplication
|
|
434
|
+
`acceptScope` removes), the wrapper stamps the principal's synthetic, audit-only
|
|
435
|
+
id — the token's `sub`, `scope:<kind>:<subjectId>` — into those columns:
|
|
436
|
+
|
|
437
|
+
```ts
|
|
438
|
+
// A verified scope principal's write, through the normal scoped db:
|
|
439
|
+
await db.insert(vendorCheckins).values({ eventId, note });
|
|
440
|
+
// → created_by = modified_by = "scope:event:guest_abc123"
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
The `scope:` prefix self-describes the actor (which kind, which subject), so no
|
|
444
|
+
separate "actor type" column is needed. This is the write-side companion to the
|
|
445
|
+
read fast-path: **one handler body serves both a Better-Auth user and the
|
|
446
|
+
sessionless principal, on reads and writes alike.**
|
|
447
|
+
|
|
448
|
+
It stays **fail-closed**: the relaxation fires *only* for `ctx.scopePrincipal
|
|
449
|
+
=== true`. A write that reaches the wrapper with no `userId` and no scope
|
|
450
|
+
principal (genuine auth-context loss) still throws — the audit layer never
|
|
451
|
+
silently logs an unauthenticated write. For a real system-side write outside any
|
|
452
|
+
request, use the unwrapped `db` (`createDb`) directly, as before.
|
|
453
|
+
|
|
320
454
|
## Sessionless scope mint — `ctx.mintScope`
|
|
321
455
|
|
|
322
456
|
`POST /scope/v1/enter` and the namespace resolver both prove the relationship by
|