Commit 4c46ee0
The /security/suggested-bindings admin surface was the last HTTP seam still
hand-rolling the anonymous check. It now delegates to the shared
shouldDenyAnonymous decision with requireAuth:true hardcoded, preserving its
UNCONDITIONAL semantics (an admin surface denies anonymous even on a
requireAuth:false deployment — pinned by the existing test that constructs the
dispatcher with no options and still expects 401). The 401 body adopts the
shared shape (code: 'unauthenticated'), asserted in the test.
Deliberately NOT migrated: handleNotification's !userId check — a "needs a user
identity" predicate (inbox is keyed by userId; a system context has no inbox),
not an anonymous-posture decision.
Verified: http-dispatcher + http-dispatcher.requireauth suites 185/185, lint
clean, check-single-authz-resolver intact.
Claude-Session: https://claude.ai/code/session_01ShknNUYoSTspJLBiqorD8V
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 23925e9 commit 4c46ee0
3 files changed
Lines changed: 32 additions & 2 deletions
File tree
- .changeset
- packages/runtime/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
561 | 564 | | |
562 | 565 | | |
563 | 566 | | |
564 | 567 | | |
| 568 | + | |
| 569 | + | |
565 | 570 | | |
566 | 571 | | |
567 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2337 | 2337 | | |
2338 | 2338 | | |
2339 | 2339 | | |
2340 | | - | |
2341 | | - | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2342 | 2350 | | |
2343 | 2351 | | |
2344 | 2352 | | |
| |||
0 commit comments