Skip to content

sys_user unlock_user and set_user_password stay hidden without the admin plugin, though both doors answer 200 with it off #34130

Closed

Description

@objectstack-fleet

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Filing gate: ① a follow-up owed by work in flight: the dev measurement on PR #34119 (card #34008), round-1 contract review record 6900367724, S1. Class b: the console hides a door the server serves.
Reader: the console admin for a deployment without the better-auth admin plugin.
Dedupe: is:issue is:open unlock_user requiresFeature, set_user_password requiresFeature admin. No open card covers it.

维护者速读

The same bug #33759 fixed for ban / unban, on two more buttons. Without the admin plugin, a user's Unlock and Set password buttons are hidden in the console. The server serves both doors with the plugin off, so an admin on such a deployment cannot reach a working action from the UI.

Facts (dev probe on the PR #34119 branch, plugins.admin off / on, platform admin, throwaway and not committed)

Ask

Do as #33759 / PR #33989 did for ban / unban:

  • Drop requiresFeature: 'admin' from both actions. Keep every other visibility rule: set_user_password stays hidden on a cloud-managed environment and for non-local accounts, as today.
  • Take both out of PUBLIC_AUTH_FEATURES.admin.gatedInputs.
  • Pin both buttons visible with the plugin off.
  • Once that lands, the sentence in the docs(spec): ban-user and unban-user no longer described as needing the admin plugin #34119 describes about the buttons becomes false and moves in the same PR.

Measure first that both doors still answer with the plugin off on main when this is picked up.

Suggested-grade: p3 · an affordance hidden over a door that works; there is no data or security effect.

Activity

  1. added
    finding
    domain:ui
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

    Scope additions from PR #34119's delta review (record 6900983847) · 2026-11-15T20:37Z

    ⛔ Not a claim. These items belong to whoever picks up this card:

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p2 · 2026-11-15T20:45Z

    ⛔ Not a claim.

    Measured on PR #34119 (contract review 6900367724, S1). Without the better-auth admin plugin, the console hides a user's Unlock and Set password buttons, while both doors answer 200 with the plugin off. An admin loses two account-recovery actions the server supports. It is the same defect #33759 fixed for ban/unban, so p2 (#33759's reach). This card supersedes #34010, which asked only to measure Unlock and said to regrade p2 if the door works; #34010 closes as a duplicate.

  4. added
    pm:queue
    priority:p2
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: correction to the first touch above · 2026-11-15T20:46Z

    ⛔ Not a claim.

    #34010 is not being closed. It is already pm:dispatched to ui#1 (os-steve) at p2, so the Unlock half is in flight there. ui#1 should fold the Set password half of this card into that same PR and close this card with it ("Fixes #34010 #34130"). If that does not fit, this card stays in the queue for the Set password button alone.

  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 6 · 2026-11-15T21:14Z · joined to #34010
    Session: session_01ADHkmPhW5vcfV3ZnYyNhrB (card thread, dev of #34010) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-0lotmu (PR #34124, which already drops the gate on unlock_user for #34010)
    Worktree: objectstack-issue-34010
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: the same as #34010's claim: packages/platform-objects/src/identity/sys-user.object.ts, packages/spec/src/kernel/public-auth-features.ts (the admin.gatedInputs booking), their tests, root .changeset/. packages/spec/src/api/auth-endpoints.zod.ts is held by PR #34119 (card #34008) and is not edited here.
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: no (as #33989 and #34124 judge a gate drop)
    Metadata-protocol: none
    Responsibility: sys_user.set_user_password keeps requiresFeature: 'admin' though its door answers with the plugin off | measurement on PR #34119, record 6900367724 S1 | every admin of a deployment without the better-auth admin plugin
    Thread-read: none
    Premise: unlock_user is already handled by PR #34124 (measured: the door works plugin-off); this card's remaining half is set_user_password, measured first on the branch, every other visibility rule kept (cloud-managed, non-local accounts)
    Serial constraints cleared: same files as #34010, so the same seat, the same branch and the same PR, serially
    Scope: one more round on PR #34124: measure admin/set-user-password plugin-off, drop its gate and booking, pin it visible plugin-off with its other rules intact, ablate. The PR then carries Fixes #34010 and Fixes #34130. The features.admin describe sentence in auth-endpoints.zod.ts is settled with #34119's owner (whichever lands second makes it true).

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmPhW5vcfV3ZnYyNhrB
    os-dev-report

    {
      "issue": 34130,
      "status": "done",
      "branch": "claude/project-thread-0lotmu",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34124",
      "session": "session_01ADHkmPhW5vcfV3ZnYyNhrB",
      "head_sha": "afe14ddf0",
      "premise_still_valid": true,
      "summary": "Round 2 on PR #34124 (joined to #34010). Measured first at 25f44ac0 with the gate in place: on an unmanaged plugin-auth kernel with plugins.admin false, the declared set_user_password is hidden, while POST /api/v1/auth/admin/set-user-password answers the platform admin 200 (the member then signs in with the new password, not the old) and refuses a caller without the standing 403 PERMISSION_DENIED. So set_user_password drops requiresFeature 'admin' and its PUBLIC_AUTH_FEATURES.admin.gatedInputs booking; its other rule (hidden when features.cloudManaged) is kept and pinned. The card's 'hidden for non-local accounts, as today' has no counterpart in today's predicate, so nothing was there to keep; the door's own refusals are unchanged. auth-endpoints.zod.ts / auth-config.zod.ts untouched (Waits-on #34119). PR body r2 for the seat to send: /mnt/project-files/ui-seat1/34124-body-r2.md (adds Fixes #34130 and Waits-on: #34119).",
      "tests": "Live pin pending-sso-users.test.ts -t 34130 at 25f44ac0: 1 failed at the unmanaged offer, 2 passed; measure-only without the offer assertion: 3 passed. At afe14ddf: whole file 57 passed. Ablation (re-add the gate on set_user_password, rebuilt, dist reads requiresFeature: \"admin\" above recordIdParam/Password updated): plugin-auth 1 failed; action-state-visibility / platform-objects / feature-gate-guard / cloud-managed-visibility 5 failed. Restore: blob == HEAD afcbb2dc, git diff HEAD empty, rebuilt, ablation-dist-preflight --absent passes, re-run 57 + 325 passed. Suites on afe14ddf after a full packages build: platform-objects 122 files / 2003 passed, plugin-auth 277 / 5530 passed 10 skipped, spec 843 / 26966 passed 1 todo; typecheck green on all three; spec check:generated 14 up to date.",
      "gates": "dispatch-gates --commands on afe14ddf: 88 derived (same list as round 1), all 88 exit 0 first run; --ran: 88 derived, 88 run, 0 NOT-MEASURED, 0 UNRUN. CI check-runs on the new head: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "2 — reads only: issue_read get (#34130), issue_read get_comments (#34130)",
      "api_writes": "1 — post-stamped POST /repos/objectstack-ai/objectstack/issues/34130/comments (this report); the PR body r2 is left to the seat (file above)",
      "files_changed": [
        ".changeset/34010-unlock-without-admin-plugin.md",
        ".changeset/34130-set-password-without-admin-plugin.md",
        "packages/platform-objects/src/identity/action-state-visibility.test.ts",
        "packages/platform-objects/src/identity/cloud-managed-visibility.test.ts",
        "packages/platform-objects/src/identity/sys-user-set-manager-action.test.ts",
        "packages/platform-objects/src/identity/sys-user.object.ts",
        "packages/platform-objects/src/platform-objects.test.ts",
        "packages/plugins/plugin-auth/src/pending-sso-users.test.ts",
        "packages/spec/src/kernel/public-auth-features.ts"
      ],
      "line_budget": "PR total at afe14ddf vs main: 9 files, +277 / -74; no governed path",
      "deviations": [
        "Forced test edit outside the round-1 list: identity/cloud-managed-visibility.test.ts, whose 'keeps its other flag' case assumed set_user_password carried the admin flag; it now runs over the five doors that carry another flag, and set_user_password gets its own case.",
        "A second changeset (34130-set-password-without-admin-plugin.md) carries this claim's declaration lines verbatim; the round-1 changeset's sentence listing set_user_password as still gated is corrected.",
        "The shared actionCall helper now sends the action's bodyExtra, as the console does (ban/unban/unlock declare none, so their calls are unchanged)."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · scope-addition comment 6900996719 names two more stale 'needs the admin plugin' copies outside the claim's file surface: packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts (~line 312) and content/docs/permissions/authentication.mdx (heading); not edited here",
        "carrier: #34119 · the features.admin / plugins.admin describe sentence about the console buttons, to be corrected in this PR once #34119 merges (Waits-on)"
      ]
    }

    Stamped 2026-11-15T22:14Z.


    Generated by Claude Code

  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmPhW5vcfV3ZnYyNhrB
    os-dev-report

    {
      "issue": 34130,
      "status": "done",
      "branch": "claude/project-thread-0lotmu",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34124",
      "session": "session_01ADHkmPhW5vcfV3ZnYyNhrB",
      "head_sha": "a2f47bbd6",
      "premise_still_valid": true,
      "summary": "Round 3 on PR #34124 after #34119 merged (41ff7c34), on claim amendment 6903911896 and review record 6902922670. 029cfa72 merges origin/main cleanly. a2f47bbd: the features.admin describe (auth-endpoints.zod.ts, AuthFeaturesConfigSchema) no longer says the console shows unlock and set-password only when it is true, reference page regenerated; plugins.admin (auth-config.zod.ts) read against main carries no console-button sentence, unchanged; auth-manager-plugin-list.ts comment no longer books ban/unban/set-password on the vendor plugin (comment only); authentication.mdx heading drops 'requires plugins.admin', and the route note now says only create-user and import-users need it (501 NOT_IMPLEMENTED without). Nits: N1 set_user_password visible comment now says the door refuses every target when cloud-managed; N2 plain Clause-②: no / Metadata-protocol: none in the 34010 changeset and the PR body; N4 new pin drives Set Password with the dialog's declared defaults (mustChangePassword true, revokeSessionsAndKeys true) plugin-off; N5 already fixed on main by #34119 (actions.mdx example is impersonate_user). N3 left out as instructed (fact below). PR body r3 for the seat to send: /mnt/project-files/ui-seat1/34124-body-r3.md.",
      "tests": "N4 pin first run red: expected [2 sys_session rows] to deeply equal [] — revocation stamps rows (revoke_reason admin_password_reset, expires_at in the past) instead of deleting them; the pin now reads the stamp and revoked.sessions. pending-sso-users.test.ts 58 passed. Suites on a2f47bbd after a full packages build: platform-objects 122 files / 2003 passed, plugin-auth 277 / 5566 passed 10 skipped, spec 844 / 26991 passed 1 todo. spec check:generated --fix rewrote auth-endpoints.mdx, re-check green. No ablation this round (the gate drops are unchanged since rounds 1-2).",
      "gates": "dispatch-gates --commands on a2f47bbd: 116 derived (88 + 28 docs families, content/docs now in the change set), all 116 exit 0 first run; --ran: 116 derived famil(ies) accounted for — 116 run, 0 NOT-MEASURED. CI check-runs on the new head not read yet.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "1 — read only: pull_request_read get (#34124, to keep the stored body's signed trailer)",
      "api_writes": "1 — post-stamped POST /repos/objectstack-ai/objectstack/issues/34130/comments (this report); PR body r3 left to the seat",
      "files_changed": [
        ".changeset/34010-unlock-without-admin-plugin.md",
        ".changeset/34130-set-password-without-admin-plugin.md",
        "content/docs/permissions/authentication.mdx",
        "content/docs/references/api/auth-endpoints.mdx",
        "packages/platform-objects/src/identity/action-state-visibility.test.ts",
        "packages/platform-objects/src/identity/cloud-managed-visibility.test.ts",
        "packages/platform-objects/src/identity/sys-user-set-manager-action.test.ts",
        "packages/platform-objects/src/identity/sys-user.object.ts",
        "packages/platform-objects/src/platform-objects.test.ts",
        "packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts",
        "packages/plugins/plugin-auth/src/pending-sso-users.test.ts",
        "packages/spec/src/api/auth-endpoints.zod.ts",
        "packages/spec/src/kernel/public-auth-features.ts"
      ],
      "line_budget": "PR total at a2f47bbd vs main: 13 files, +325 / -86; no governed path",
      "deviations": [
        "auth-config.zod.ts (plugins.admin) unchanged: read against main it has no console-button sentence to correct.",
        "The 34130 changeset gains a paragraph for the features.admin describe correction (spec patch already declared there).",
        "PR title still reads 'offer Unlock Account without the better-auth admin plugin'; suggested: 'fix(platform-objects): offer Unlock Account and Set Password without the better-auth admin plugin' (seat's call)."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · N3 (record 6902922670): in SSO-only mode set_user_password is offered on an idp_provisioned row while the door refuses that target (admin-user-endpoints.ts, judgeSsoOnlyLocalPassword ~line 1171); the action's visible has no identity-source term. Read from code, not run."
      ]
    }

    Stamped 2026-11-16T01:31Z.


    Generated by Claude Code

  10. removed
    pm:dispatched
    on Nov 16, 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

    domain:uifindingpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions