Repository navigation
Commit be9b5a9
test(dogfood): record the #10792 member-arm exception the tightened bucket exposed
The `better-auth-gate` bucket's member-arm vocabulary check was guarded by
`if (member.code !== undefined)`, and on every bodyless refusal the code WAS
undefined — so for those routes the check had never executed. Giving the vendor
lane an envelope made it executable, and it went red on the first run:
`/admin/remove-user` answers a SIGNED-IN member `401 UNAUTHENTICATED`, while
`set-role` and `update-user` answer the same bearer `403 YOU_ARE_NOT_ALLOWED_*`.
Measured on the booted showcase stack and controlled hermetically: the same
three fires against the in-memory engine give the member 403, both with no
`transaction` on the engine and with a pass-through one. So it is the real
erasure transaction (#7724, `SESSION_ERASURE_PATHS`) that the session re-read
inside `adminMiddleware` does not survive. Filed as #10792.
Recorded here as an ADDITIONAL accepted code for that one route, never as a
pin — the same reasoning the platform-admin arm below already carries. Pinning
today's 401 would turn the fix red, pinning the 403 is red today, and widening
the vocabulary for every route would let the next one drift in silence.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PnJHU45vPJj5UQrxe946Bx1 parent e5129bd commit be9b5a9
1 file changed
Lines changed: 22 additions & 1 deletion
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
587 | 608 | | |
588 | 609 | | |
589 | 610 | | |
590 | 611 | | |
591 | 612 | | |
592 | | - | |
| 613 | + | |
593 | 614 | | |
594 | 615 | | |
595 | 616 | | |
| |||
0 commit comments