Skip to content

Setup Users: with SSO-only mode on, Set Password is offered on an IdP-provisioned user and then refused #34225

Done
0 of 1 issue completed

Description

@objectstack-fleet

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Filing gate: ③ review#2's nit N3 on PR #34124 (record 6902922670), carried as out of scope by the #34010/#34130 dev (os-dev-report 6904842273, carrier: seat). Class a: read in code, not run.
Reader: domain:ui (packages/platform-objects/src/identity/sys-user.object.ts, the set_user_password action's visible), reading the server's identity-source rule in packages/plugins/plugin-auth/src/sso-only-local-password.ts. Grade suggestion: p3. Only SSO-only deployments see it, and the server already refuses the write.
Dedupe: is:issue is:open set_user_password sso, SSO-only Set Password offered: none.
Related: #34130 (PR #34124 removed set_user_password's admin-plugin gate).

维护者速读

开启「仅 SSO 登录」模式后,Setup 用户列表里由身份提供方预置(IdP-provisioned)的用户行仍会显示「设置密码」按钮,但服务端会拒绝这个操作。按钮显示与否没有考虑用户的身份来源,管理员点了只会得到一个拒绝提示。

Facts (read on main after #34119, and on PR #34124 head a2f47bbd)

  • admin-user-endpoints.ts (about line 1166, judgeSsoOnlyLocalPassword): with SSO-only mode on, setting a password for an IdP-provisioned target is refused. Only the narrow break-glass case in sso-only-local-password.ts passes.
  • sys_user.set_user_password's visible has no identity-source term, so the action is offered on those rows.
  • A pending SSO user (pending-sso-marker.ts) is refused the same way. Check whether visible already hides that case.

Ask

  1. Offer Set Password only where the server would accept it: hide it on a row the SSO-only rule refuses, using the same facts the door reads (SSO-only mode, the row's identity source), not a re-derived copy of the rule. If the facts are not visible to the action predicate today, say so and propose the smallest way to expose them.
  2. Pins: with SSO-only mode on, an IdP-provisioned row does not offer the action; CONTROL: a local-password row still offers it, and with SSO-only mode off every row keeps today's offer. Ablate red.

⛔ Not a claim.

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    bug
    pm:queue
    domain:ui
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p3 · 2026-11-16T01:50Z

    ⛔ Not a claim.

    With SSO-only mode on, Setup offers Set Password on an IdP-provisioned user and then refuses it. An offered action that always fails, for admins only, so p3. Gate the action on the same condition the door uses.

  3. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq

    Claim: PM loop round 2 · 2026-12-03T14:32Z
    Session: session_01Utp6CaJjkQx5fPE4Fbmoeq
    Thread session: session_01Utp6CbZLcNVF5cbbuDifLD
    Account: os-bill
    Branch: claude/project-thread-a6qxbo
    Worktree: objectstack (card thread container)
    Domain: domain:server
    Seat: repo:objectstack@os-bill
    Area: data-1203
    File surface: packages/platform-objects/src/identity/sys-user.object.ts, packages/platform-objects/src/feature-gate-guard.test.ts, a new packages/platform-objects/src/identity/sso-only-set-password-visibility.test.ts, packages/spec/src/kernel/public-auth-features.ts (the ssoEnforced exempt reason text only), a patch changeset. Stop on any other breach and explain in the report.
    Container & model: S, mode:thread, model: default (dispatch-gates --tier: no path-derived mandate), effort: high (reason: an action visibility predicate that must match the door's refusal exactly, plus the feature-gate guard's booking)
    Clause-②: no
    Clause-② note: one action's visible narrows to match a refusal the door already makes; the spec edit is reason text of an exempt row, no served key changes. The spec text owes a contract-tier review.
    Metadata-protocol: none
    Responsibility: sys-user.object.ts:642 set_user_password visibility has no identity-source term, in objectstack platform-objects; the door refuses it (sso-only-local-password.ts:212); every platform admin on an SSO-only deployment opening an IdP-provisioned user, today.
    Thread-read: 6905104316
    Premise: holds — read by the card thread at origin/main 850d240: visible = current_user.isPlatformAdmin == true && features.cloudManaged != true at sys-user.object.ts:642; the door refuses at admin-user-endpoints.ts:1246.
    Pre-claim lane: domain:server (platform-objects) plus one spec reason string; the seat keeps it.
    Pre-claim deps: none open.
    Prior rulings read: thread read by the card thread; no ruling on the card.
    Serial constraints cleared: check-handover.mjs --inflight on the three existing files → no overlap read (#38415, #35238 name no path).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq

    Claim amendment: 2026-12-03T15:03Z · claim 7381634042 widens by one file the card thread named in its report: the lowering matrix pins set_user_password's exact predicate, so its row changes with the predicate. Work resumes on the maintainer's 15:02Z approval to carry PR #39360 to merge.
    File surface: packages/platform-objects/src/platform-objects.test.ts (the set_user_password row of the feature-gate lowering matrix only)

  6. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

    Close-out: 2026-12-03T16:57Z · PR #39360 merged at 2026-12-03T16:13Z as 1cbcf467; it closed this card. Zone ACCEPT 7383619424; contract review PASS 7383603252. Follow-up #39384. The state label leaves with this note.

  7. removed
    pm:dispatched
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:databugdomain:uipriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions