Skip to content

Commit ce400df

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-13900-rest-channel-prescriptions
2 parents b7c2e84 + 66ecc50 commit ce400df

5 files changed

Lines changed: 399 additions & 15 deletions

File tree

‎packages/core/src/security/platform-admin.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
*
1818
* - **Choice 1A — one variable.** `OS_PLATFORM_OWNER_EMAIL`
1919
* ({@link PLATFORM_OWNER_EMAIL_ENV}), the name plugin-auth's walled boot
20-
* refusal and plugin-security's elevation refusal already quote. A second
21-
* spelling is a second door: generated configs and docs would carry both and
22-
* one of them would silently do nothing.
20+
* refusal and plugin-security's `bootstrapPlatformAdmin` already quote — the
21+
* latter in its fail-closed backstop for an undeclared or refused config, and
22+
* in the config-derived standing it logs beside it. ⚠️ That second site is no
23+
* longer an ELEVATION refusal: since the #11663 platform-admin re-anchor
24+
* (leg L4) the walled `bootstrapPlatformAdmin` writes no grant row and
25+
* elevates nobody — it reports. A second spelling is a second door: generated
26+
* configs and docs would carry both and one of them would silently do nothing.
2327
* - **Choice 2B — a comma-separated LIST**, because a single configured address
2428
* is a single point of human failure and losing that mailbox leaves a
2529
* deployment with no administrator and no in-product recovery. One separator,

‎packages/plugins/plugin-auth/src/walled-owner-operator-stamp.test.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
* Standing is derived PER REQUEST instead, and the implementation this file
3333
* covers says the same ([#11973] note in `walled-owner-operator-stamp.ts`:
3434
* "the invariant is enforced at the derivation site … rather than by an
35-
* elevation write; the stamp's value is unchanged"). One `it()` title below
36-
* still names the gate; correcting a title is an executable change, not a
37-
* comment fix, so it is left for the card that can price it.
35+
* elevation write; the stamp's value is unchanged"). The one `it()` title that
36+
* still named the gate now names the platform-admin derivation it actually
37+
* mirrors — a title is a string literal, so correcting it was an executable
38+
* change rather than a comment fix, and it was priced as one.
3839
*/
3940

4041
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
@@ -267,7 +268,7 @@ describe('#12751 — shouldStampOwnerVerifiedAtCreation, the contract as a matri
267268
).toBe(false);
268269
});
269270

270-
it('the email comparison MIRRORS the elevation gate: trimmed, case-insensitive, both sides', () => {
271+
it('the email comparison MIRRORS the platform-admin derivation: trimmed, case-insensitive, both sides', () => {
271272
// The env declaration arrives padded and cased however the operator typed
272273
// it; `resolvePlatformOwnerEmail` trims, the comparison lowercases — the
273274
// exact treatment `bootstrapPlatformAdmin` gives the same pair.

‎packages/plugins/plugin-security/src/platform-owner-wall-bypass.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ describe('[#12974] audit — the ruled floor', () => {
317317
});
318318
});
319319

320-
describe('[#12974] the shared row predicate (the elevation gate’s twin)', () => {
320+
describe('[#12974] the shared row predicate (the per-request derivation’s twin)', () => {
321321
it('matchesDeclaredOwnerEmail — canonical comparison: trimmed, case-insensitive', () => {
322322
expect(matchesDeclaredOwnerEmail({ email: 'Operator@Corp.Example' }, SOLO)).toBe(true);
323323
expect(matchesDeclaredOwnerEmail({ email: ' operator@corp.example ' }, SOLO)).toBe(true);

‎packages/plugins/plugin-security/src/walled-platform-bucket-diagnostic.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function recordingLogger() {
102102
logger: {
103103
info: (message: string, meta?: any) => { infos.push({ message, meta }); },
104104
warn: (message: string, meta?: any) => { warns.push({ message, meta }); },
105-
error: (_m: string, _meta?: any) => { /* the walled elevation refusal; not this card's subject */ },
105+
error: (_m: string, _meta?: any) => { /* the walled "ZERO config-derived platform administrators" backstop — over CONFIGURATION, not elevation; not this card's subject */ },
106106
},
107107
};
108108
}

0 commit comments

Comments
 (0)