GeezerVison is showing github.com — defect(pm-stack): SSO gate relaxation enrolls into the single owner account — no read-only-on-no-tenant default (#14265 H7 finding) · Issue #15249 · developing-today/code
defect(pm-stack): SSO gate relaxation enrolls into the single owner account — no read-only-on-no-tenant default (#14265 H7 finding) #15249Labels app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitive DescriptionFound by the H7 gate-relaxation drill on #14265 (runbook: doc/2026-11-25T20-55-00Z_runbook_h7-gate-relaxation-drill/).
Defect
Design #9086 §4.4's safety argument for relaxing the Drew-only gate is that a newly enrolled account holds only read-only on no tenant and "can do nothing until granted". That default does not exist in the current provider (pkgs/idp-provider):
src/registry.rs: the config holds the single account row; the allowlist is documented as "holding only the owner's account IDs".
src/doors.rs: a never-seen allowlisted door identity is auto-linked to registry.account (the single account) by its first login.
src/flow.rs: issued tokens carry that account's roles verbatim.
So adding an allowlist entry for a different person's identity would link them to the owner account and issue the owner's role set — the opposite of the §4.4 default. The drill test (h7_gate_relaxation_drill_add_verify_remove, PR for #14265) asserts and records this observed behaviour.
Safe until fixed
Allowlist relaxation is safe only for the owner's own new door identities (the other §4.4 mode: "add allowlist entries" for Drew's doors). No third-party enrollment until this lands.
Fix shape (not prescribed)
Multi-account enrollment: an allowlist entry (or open enrollment) creates/links to a new account whose only grant is read-only on no tenant; role grants are added explicitly afterwards, audited. Tokens for such an account must carry only that account's roles.
Filing note
Filed outside a creator run per doc/agents/one-queue-claiming-work.md: not enqueued in this pass because the repo-queue broker leg is down (tunnel to 100.99.113.103:4801, os error 11, 2026-11-25 ~15:00 CST); enqueue when the queue leg recovers.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-25T21:00:26Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "bbfc8aa3a3b4f3e3d399b7e76beb6962c0daa5b9"
},
"auth_subject": "xaltha",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Acceptance criteria
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) effort/mMedium: expected under 1 day of work meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 25, 2026developing-today-fleet commented on Nov 25, 2026 Intake review
Related: #14265 (H7 gate-relaxation drill that found this), design #9086 §4.4 (the safety argument this contradicts), #14260 (SSO relying-party H2 sibling — its PR #14418 merged; that issue is still open on a separate gate question).
Notes: verified from the issue body against pkgs/idp-provider: src/registry.rs holds the single owner account row, src/doors.rs auto-links a never-seen allowlisted door identity to registry.account on first login, and src/flow.rs issues tokens carrying that account's roles verbatim. The §4.4 "read-only on no tenant" default does not exist in code today.
Risks: security-sensitive. Until fixed, allowlist relaxation is safe only for the owner's own new door identities — no third-party enrollment. Priority set to high (not critical: the unsafe path is not reachable without an operator adding an allowlist entry).
Suggested approach: give first-login linking a least-privilege default (new account row, read-only, no tenant) plus an explicit grant step; add the regression test named in the acceptance criteria; then update the #14265 drill assertion.
developing-today-fleet commented on Nov 25, 2026 Claim: felix lane (muse seat) picking this up 2026-11-25. Plan: multi-account enrollment in pkgs/idp-provider — a never-seen allowlisted identity creates/links to a new account holding only read-only on no tenant instead of auto-linking to the single owner account; regression test for first-login linking of a non-owner identity asserting the issued token's account and roles; H7 drill assertion updated if the drill is on main. PR left unmerged for Felix review. developing-today-fleet commented on Nov 25, 2026 Design decision (felix lane, recorded per FDR-0013 — proceeding, not parking):
Distinguishing the owner's doors from a third party's: the config account row's identities list is the owner's declared identity set — those rows are seeded active under the owner account at startup and keep today's behaviour exactly. The allowlist becomes what §4.4 says it is: permission to enroll, not a link to the owner.
Fix shape:
- A never-seen allowlisted identity that is NOT declared in the account row enrolls at first door login into a fresh account of its own (deterministic id
acct-<hash of identity key>, display name = the identity key) whose only role is read-only — the §4.4 default, read-only on no tenant. The link event and audit record carry the new account id.
- Enrolled accounts live in the identity store (new
accounts table), seeded with the config account; token issuance and userinfo resolve the account by the code's/token's account id instead of always reading the single config row, so an enrolled account's tokens carry only its own roles.
- The local door still serves only the config account (its credential hash is the owner's).
- Operator
link now also moves the identity row's account_id, so linking an enrolled identity onto the owner account afterwards is a real, audited grant — the 'added explicitly afterwards' path.
- Pending-claim flow (SSO (#9077): pending-link registration — new provider sign-ins register without trust until approved from an established session #13972) is untouched.
Acceptance mapping: (1) covered by the enrollment path; (2) new regression test in tests/doors.rs driving a non-owner allowlisted identity through the Google door, asserting the token's sub/roles and userinfo; (3) the H7 drill test exists only on PR #15250's branch (not on main), so its step-1 assertion update rides with that PR — I will post the exact replacement assertions on #14265. The drill harness's owner identities will also need declaring in its account row, same as the main harness here. developing-today-fleet commented on Nov 25, 2026 Progress (felix lane): PR #15313 opened (unmerged, for Felix review) — enrollment fix + regression tests as designed in the decision comment above. Remote verification dispatched: fleet-command run 45713402047 (cargo test for pkgs/idp-provider); results will be appended to the PR. Criterion 3 (H7 drill assertion) rides with PR #15250 — exact replacement assertions posted on #14265, pointer on PR #15250. dezren39 commented on Nov 25, 2026 agent-note:v1 — #14863 graph-hygiene audit, slice N1 (xaltha, 2026-11-25)
State correction (comment-only): this issue still reads status/needs-triage, but a fix is already in flight — PR #15313 "fix(idp-provider): enroll non-owner allowlisted identities into their own read-only account (#15249)" (Felix lane) is open. The needs-triage label no longer matches reality; the owning lane should move it to the in-flight/in-review status per its convention when it next touches this issue. No blocker is stated or needed. Refs #14863 developing-today-fleet commented on Nov 25, 2026 Verification complete (felix lane): PR #15313 head cbbc8a7 passes the full pkgs/idp-provider suite remotely — run 45720216348, 29 passed / 0 failed, including the new regression test non_owner_allowlisted_identity_enrolls_into_its_own_read_only_account. (First run 45713402047 caught a one-character compile error, fixed in the second commit.) PR left unmerged for Felix; criterion 3 (drill assertion) rides with PR #15250 per the note on #14265. developing-today-fleet commented on Nov 25, 2026 Status after PR #15313 merged (2026-11-25T23:48:06Z, merge 5604867):
This issue stays open until PR #15250 lands criterion 3. dezren39 commented on Nov 26, 2026
All acceptance criteria met — closing (triage lane RL, queue task 23874, 2026-11-26)
Verification note: the drill's post-fix verification appeared to fail three times (runs 45801023113, 45802811267, 45804193651), but those runs never executed the test — the fleet-command checkout fetches pull/15250/merge as refs/heads/pull/..., which does not exist (GitHub's merge ref is refs/pull/15250/merge), so checkout exited 1 and the command never ran. That defect is filed as #15592. Re-verification against the exact merge-result tree (fe6053bba00e614122542c6524580b0226dc1cc6) with the full doors suite — run https://github.com/developing-today/fleet/actions/runs/45821953891, command cd pkgs/idp-provider && cargo test --test doors — "Execute target command" step: success. Detail on PR #15250 (comment 7192736174).
Also removing the stale status/needs-triage label (fix has been in flight since 2026-11-25, per the #14863 audit note).
MetadataMetadataapp/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitive DevelopmentNo branches or pull requestsIssue actions
|