Commit 31c6b70
feat(serve): thread api.enforceProjectMembership to the dispatcher (ADR-0024 D9)
serve.ts built the dispatcher with `scoping` but never threaded
`enforceProjectMembership`, so per-project membership (the `sys_environment_member`
403 gate) was always forced ON whenever project-scoping was on. Read it from the
app's `api` config and pass it through, so a host can opt OUT — env-native auth
IS the membership (ADR-0024 D9) — via `api.enforceProjectMembership: false`.
Undefined keeps the existing default (= `enableProjectScoping`): backward-compatible.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8bb026b commit 31c6b70
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
1357 | 1362 | | |
1358 | 1363 | | |
1359 | 1364 | | |
| |||
1383 | 1388 | | |
1384 | 1389 | | |
1385 | 1390 | | |
| 1391 | + | |
1386 | 1392 | | |
1387 | 1393 | | |
1388 | 1394 | | |
| |||
0 commit comments