You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6602814
Browse filesBrowse the repository at this point in the historyBrowse files
test(plugin-security): suites name users their callers read
The engine's reference check now reads a user or lookup target through the
caller's own read door, so suites whose subject is another predicate on the
same write provision sys_user with a row for each user they name, and give
their callers the org_user_ids the runtime fills from sys_member.
The write-preview parity controls read the related account, and a new block
drives the editor who cannot: both doors answer the lookup's
reference_not_found, never the rule. The tenant-scope suite counts the rule's
related reads alone, and a user the caller cannot read is now answered on the
reference check.
Claude-Session: https://claude.ai/code/session_01Utp6CYQjMkN514R78sCrTT
Co-authored-by: Claude <noreply@anthropic.com>
constNOT_READABLE='reviewer: no sys_user record has id "u_y"';
312
322
313
323
it('CONTROL: the caller’s own read of sys_user returns org X’s users, never org Y’s',async()=>{
314
324
consth=awaitboot('secret','isolated');
@@ -379,12 +389,12 @@ describe('#18682 — a caller with no userId that is not system is bound like a
379
389
expect(secret.readsOfLine).toEqual([]);
380
390
});
381
391
382
-
it('a user only org Y holds, under no wall: every door refuses, whatever its value — the write as not readable, the preview at its write gate',async()=>{
392
+
it('a user only org Y holds, under no wall: every door refuses, whatever its value — the write on the reference check, the preview at its write gate',async()=>{
0 commit comments