GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #15249

New issue
Copy link
New issue
Copy link
Done
Done
defect(pm-stack): SSO gate relaxation enrolls into the single owner account — no read-only-on-no-tenant default (#14265 H7 finding)#15249
Copy link
Labels
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

Description

@dezren39
dezren39
opened on Nov 25, 2026
Issue body actions

Found 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

  • Enrolling a never-seen allowlisted identity no longer auto-links it to the single owner account with the owner's roles: a newly enrolled account starts with read-only access on no tenant (the design design(pm-stack): SSO relying-party integration — hosted editions consume #9077; tenancy accounts aligned with #1253 roles #9086 §4.4 default) — or the design is amended with the observed behaviour and a new safety argument before any third-party relaxation.
  • A regression test covers first-login linking for a non-owner identity and asserts the issued token's account and roles.
  • The H7 drill assertion on impl(pm-stack): SSO relying-party H7 — gate-relaxation drill (child of #9086) #14265 is updated to the fixed behaviour and passes.

Activity

  1. dezren39
    added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    epic/pm-stackReprioritization program epic (2026-11-12)
    on Nov 25, 2026
  2. developing-today-fleet
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 25, 2026
  3. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  4. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  5. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  7. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    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

  8. dezren39
    added a commit that references this issue on Nov 25, 2026

    fix(idp-provider): borrow ENROLLED_ACCOUNT_ROLES for serde_json::to_s…

    cbbc8a7
  9. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  10. developing-today-fleet
    added a commit that references this issue on Nov 25, 2026

    Merge pull request #15313 from developing-today/felix/15249-multi-acc…

    5604867
  11. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    Status after PR #15313 merged (2026-11-25T23:48:06Z, merge 5604867):

    • Criterion 1 — DONE. A never-seen allowlisted door identity now enrolls into a fresh account of its own holding only read-only (design design(pm-stack): SSO relying-party integration — hosted editions consume #9077; tenancy accounts aligned with #1253 roles #9086 §4.4 default), created and linked in one transaction with the link event in the identity history. Codes bind the resolved account; /token and /userinfo resolve roles by account id and fail closed on unknown accounts. The local door now also requires the identity to be actively linked to the config account specifically.
    • Criterion 2 — DONE. non_owner_allowlisted_identity_enrolls_into_its_own_read_only_account covers the full door loop (token sub/roles, store rows, link event + audit, userinfo, stable second login); enrolled_identity_can_be_relinked_to_another_account_by_an_operator covers the operator grant path. Run 45720216348: 29 passed / 0 failed across all idp-provider suites.
    • Criterion 3 — OPEN, rides on PR test(idp-provider): H7 gate-relaxation drill + runbook (#14265) #15250: the H7 drill assertion update lives only on that PR's branch. The exact replacement assertions plus the harness-declaration change are recorded on impl(pm-stack): SSO relying-party H7 — gate-relaxation drill (child of #9086) #14265 (comment 7176400125) with a pointer on PR test(idp-provider): H7 gate-relaxation drill + runbook (#14265) #15250 (comment 7176400804).

    This issue stays open until PR #15250 lands criterion 3.

  12. developing-today-fleet
    added 2 commits that reference this issue on Nov 26, 2026

    test(idp-provider): H7 drill asserts §4.4 oracle after #15249 fix (#1…

    1f49fc1

    docs: H7 runbook finding updated for #15249 fix (#14265)

    839441d
  13. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    All acceptance criteria met — closing (triage lane RL, queue task 23874, 2026-11-26)

    • Criterion 1 — DONE (PR fix(idp-provider): enroll non-owner allowlisted identities into their own read-only account (#15249) #15313, merged 2026-11-25T23:48:06Z, merge 560486754): a never-seen allowlisted identity enrolls into its own account holding only read-only on no tenant (design design(pm-stack): SSO relying-party integration — hosted editions consume #9077; tenancy accounts aligned with #1253 roles #9086 §4.4 default); tokens/userinfo resolve roles by account id and fail closed on unknown accounts.
    • Criterion 2 — DONE (same PR): non_owner_allowlisted_identity_enrolls_into_its_own_read_only_account + enrolled_identity_can_be_relinked_to_another_account_by_an_operator; run 45720216348: 29 passed / 0 failed.
    • Criterion 3 — DONE: PR test(idp-provider): H7 gate-relaxation drill + runbook (#14265) #15250 merged 2026-11-26T13:00:15Z (merge 23c0c2cb1d021b26380b61e6c638d621b4132bdf) with the H7 drill assertions updated to the §4.4 oracle (own enrolled account via account_id_for, roles ["read-only"]) and the runbook finding updated.

    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).

  14. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 26, 2026
  15. dezren39
    closed this as completedon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.