Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions packages/rest/src/rest-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8205,14 +8205,14 @@ export class RestServer {
// inventing org RESOLUTION here, and this reads
// `tenantId` off the execution context `resolveExecCtx`
// already resolves, exactly as #8803 did for the audit
// read. The raw tenant is right for a READ (the write
// doors run it through `organizationIdForMetaWrite`
// instead): `getMetaItemLayered`'s overlay layer is
// org-scoped-first, THEN env-wide, so this is fail-open
// in the safe direction — an org-less caller reads
// exactly what it reads today, and an org-scoped caller
// still falls back to the env-wide row. Nothing that
// resolves today stops resolving.
// read. [#14907] The CALLEE gates: `getMetaItemLayered`
// resolves `organizationIdForMetaRead` AFTER its canonical
// fold, so the tenant goes over RAW. ⛔ Pre-gating HERE, on
// the unfolded `:type`, would be the #10340 defect. ⛔ And
// the old "fail-open in the safe direction" reading is the
// argument the predicate refutes: an org named on a type
// the registry does not declare overridable resurrects the
// phantoms #6190 stopped minting.
//
// Environment scoping still holds: it comes from WHICH
// protocol `resolveProtocol` hands back, not from the
Expand Down
Loading