|
18 | 18 | * |
19 | 19 | * - the ADR-0057 D1 access DEPTH the sharing owner-match expands to — |
20 | 20 | * `__readScope` / `__writeScope`, plus the ADR-0090 D10 delegator halves |
21 | | - * `__delegatorReadScope` / `__delegatorWriteScope`, stamped in place by |
22 | | - * `security-plugin.ts` (`sc.__readScope = …`); |
| 21 | + * `__delegatorReadScope` / `__delegatorWriteScope`, stamped by the authz |
| 22 | + * middleware (`security-plugin-authz-middleware.ts`, step 2.6) onto the |
| 23 | + * envelope it hands the rest of ITS operation's chain — since #33051 a copy |
| 24 | + * of the caller's, never the caller's own, because one caller envelope |
| 25 | + * serves concurrent operations on different objects; |
23 | 26 | * - the engine's internal privilege markers on the same channel — |
24 | 27 | * `__expandRead` marks a read as a lookup EXPANSION sub-read (it no longer |
25 | 28 | * relaxes any gate — #7626 removed that waiver — but it still travels with |
@@ -101,10 +104,10 @@ export const OPERATION_PRIVATE_KEY_PREFIX = '__'; |
101 | 104 | * receives (which is exactly what plugin-security does before it calls the |
102 | 105 | * sharing service) can never write back into the operation context the caller |
103 | 106 | * was handed; |
104 | | - * - inbound — the engine's middleware stamps a depth for the object it is about |
105 | | - * to read onto whatever it is handed, so forwarding a caller's envelope BY |
106 | | - * REFERENCE would write that depth back into the request context the route |
107 | | - * goes on using. |
| 107 | + * - inbound — a middleware that stamps a depth for the object it is about to |
| 108 | + * read onto whatever it is handed (plugin-security's did, in place, until |
| 109 | + * #33051) would, through an envelope forwarded BY REFERENCE, write that |
| 110 | + * depth back into the request context the route goes on using. |
108 | 111 | * |
109 | 112 | * ⛔ Never `return exec;` on the "nothing to strip" path. The copy is the point, |
110 | 113 | * not an optimisation to skip when the envelope happens to be clean — the two |
|
0 commit comments