Skip to content

plugin-auth: pending, SSO-only users on a managed environment — add and CSV import with position, permission sets and manager, refused by every password door, with a host seam on create, deactivate and reactivate #33181

Closed

Description

@objectstack-fleet

repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

Filing gate: ④ a child of the topic card objectstack-ai/cloud#4465 (the maintainer's rulings 1-10 of 2026-11-13/14 are recorded there; read it first).

维护者速读

托管环境的「设置 → 用户」可以直接加人或导入 CSV,同时填好岗位、权限集和上级。这些人先以「待激活」状态存在,没有密码,只能通过云端登录,种子数据和审批流马上就能指向他们。加人、停用、恢复时,框架会通知宿主(托管时就是云端)。

Work (objectstack-ai/cloud#4465, child 1a; execution terms "Environment")

  • Add a dedicated door that does not depend on the better-auth admin plugin. On Free and Team hosted kernels that plugin mounts only with SCIM (auth-manager-plugin-list.ts:211), and admin/import-users answers 501 there (auth-plugin.ts:4604).
  • The door accepts email, name, position, permission sets and manager; CSV import reports per-row results.
  • Give the pending marker its own value, never env_native: set-user-password admits env_native rows (admin-user-endpoints.ts:1120-1136). Every password door refuses the pending marker.
  • First platform-SSO sign-in binds to the pending row (implicit-account-linking.ts). Confirm by a run whether email_verified is needed; requireLocalEmailVerified is deprecated.
  • Add a host seam on create, deactivate and reactivate, so a host can forward an invitation or a removal. The cloud implements it (cloud card C4).
  • Reword the managed-mode 409 messages from objectstack#25083 ("Invite them from the organisation in the cloud console").
  • The pending marker coexists with idp_provisioned and SCIM adoption (SCIM cannot adopt an account that SSO JIT already created: Entra ID / Okta provisioning fails with 409 for every user who signed in before SCIM was turned on #32148). There is no fan-out.
  • Measure first: does today's deactivation (admin/ban-user) answer on a Free hosted kernel? If not, add a deactivation door here.

Suggested priority:p1 (the maintainer: core onboarding flow). Routing: triage (domain:server).

priority:p1 on the maintainer's word, verbatim (seat session session_01Q4EjjPP1zuWBNq3nBXVei9, 2026-11-14): 「都是p1,车道自己认领就可以」. Triage routes it to its lane; the lane claims it.

Activity

  1. removed
    pm:dispatched
    on Nov 14, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    Maintainer decision recorded · 2026-11-14T14:37Z: the maintainer chose 「用 dev 的文案」 on the seat's decision card, which asked whether to use the dev's wording for the managed-mode 409 sentences or wait for the original text. The sentences in cloud-managed.ts on PR #33227 ("Add them in Setup → Users instead; they sign in through that identity provider") are therefore final, not provisional. A later rewording is its own card.

  3. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    Claim: resume after the 04:35Z sign-off, card thread · 2026-11-14T15:47Z · the seat is back on duty for review and landing only (「你现在可以自己契约复审了。」 2026-11-14T14:17Z; 「车道座位应该使用pm-dispatch 技能审核和落地pr」 2026-11-14T14:32Z); PR #33227
    Session: session_01L9qibvhGW6DCBPjrcAPjvh
    Account: os-tesla
    Branch: claude/project-thread-cl505i
    Worktree: objectstack-issue-33181
    Domain: domain:server
    Seat: domain:server#7
    File surface: unchanged — claim 6869596244 with amendments 6869729952 and 6870557312. Stop on breach.
    Container & model: L, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate; PM default), effort: high
    Clause-②: yes (narrowing), as declared on PR #33227 and reviewed at CONTRACT_REVIEW_TIER (records 6879138774, 6879497274)
    Metadata-protocol: none
    Responsibility: managed environments' add-person and ban doors on Free / Team kernels (plugin-auth), objectstack | every managed-environment admin | 18.4.0 onward
    Thread-read: 6879497274
    Premise: re-measured by the card thread on 84a7069 (dogfood battery green on e1637d8)
    Serial constraints cleared: #33177 merged before code; no other open PR of this seat changes these doors

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 14, 2026
  5. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: H14 · +pm:blocking · 2026-11-14T17:50Z

    ⛔ Not a claim; claim and state unchanged.

    Open cards name this one in Blocked-by:: #33186, #33187 (and #33228 waits on it). A blocker in flight carries pm:blocking.

  6. added
    pm:blocking
    on Nov 14, 2026
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-tesla · session_01L9qibzuZJBQY4wUQFJbkfx

    Done · 2026-11-15T08:07Z

    PR #33227 merged at cbb876c1 (08:07Z) and closed this card. The seat removes pm:dispatched and pm:blocking. Follow-up #33228 (the pending-only remove door and the durable outbox choice) stays its own card.

  8. removed
    pm:dispatched
    pm:blocking
    on Nov 15, 2026
  9. added 4 commits that reference this issue on Nov 16, 2026
    cbb876c
    12a0f09
    99a6ec0
    1c48f6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:serverenhancementpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions