Repository navigation
fix(platform-objects): with SSO-only mode on, Set Password is not offered on an IdP-provisioned user - #39360
Conversation
…ered on an IdP-provisioned user Set Password's visible predicate gains a negated row group reading the two facts its door reads: features.ssoEnforced (served from the same SSO-only accessor) and the row's source. The caller's own row stays offered (break-glass). The feature-gate guard books the row-scoped read in ROW_SCOPED_HIDES; pins and CONTROLs in identity/sso-only-set-password-visibility.test.ts. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbZLcNVF5cbbuDifLD
📓 Docs Drift CheckThis PR changes 2 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin ea13c6d386fd91b9cd00cec5db4b76be831c37b9 && git checkout ea13c6d386fd91b9cd00cec5db4b76be831c37b9
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 779ff419cff5f92ff056e6911abd74eb0b24d697 7035cc676eba464dfc7359d18d375b0cea3c02de && git checkout -B drift-repro 779ff419cff5f92ff056e6911abd74eb0b24d697 && git merge --no-ff 7035cc676eba464dfc7359d18d375b0cea3c02de
node scripts/docs-audit/affected-docs.mjs --json 779ff419cff5f92ff056e6911abd74eb0b24d697
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbZLcNVF5cbbuDifLD
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq Contract reviewServed-tier: Inputs read: card #34225 (body, triage 6905104316, claim 7381634042, amendment 7382503624; no ruling, no earlier record), PR #39360 (body, 6 files, net diff against merge base ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix.
Check-runs on the head, all Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaJjkQx5fPE4Fbmoeq 席位核对ACCEPT (zone data-1203 L1) · Head-sha:
|
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Landing: 2026-12-03T15:43Z · head |
Requested by Bill · project thread
Fixes #34225
Thread session:
session_01Utp6CbZLcNVF5cbbuDifLD(card thread of zone data-1203, claim 7381634042)What changes
sys_user.set_user_password'svisiblegains one&&conjunct,!(SSO_ONLY_REFUSED_ROW): with SSO-only mode on, Set Password is not offered on an IdP-provisioned row (source == 'idp_provisioned') unless it is the caller's own row (the break-glass password a platform administrator may set for themselves).features.ssoEnforcedis served fromresolveSsoOnly()(auth-manager.ts:6187), the same accessor the door'sisSsoOnlyMode()returns (auth-manager.ts:5847, read atadmin-user-endpoints.ts:1246), and the row's storedsource, whichjudgeSsoOnlyLocalPasswordreads (sso-only-local-password.ts:212).has()on the flag and onsourcekeeps today's offer when the console holds neither; the door still judges.idp_pendingis not refused by this rule (only by the cloud-managed one, where the action is already hidden), so it keeps the offer.feature-gate-guard.test.ts: the registry books only whole-input conjunct gates, so a row-scoped read gets a guard-local list,ROW_SCOPED_HIDES(besideSHOWN_WHEN_ON). The reverse walk accepts it, and a new row asserts the input carries!(has(features.F) && features.F == true && <row terms>)and is not also booked ingatedInputs.public-auth-features.ts:ssoEnforced'sexempt.reasontext says Set Password reads it to hide those rows. No served key, semantics or surface changes.platform-objects.test.ts: the lowering matrix row forset_user_passwordpins the new predicate.Why
With SSO-only mode on, Setup → Users offered Set Password on an IdP-provisioned user and the door then answered
409 RESOURCE_CONFLICT. The action is now offered only where the door would accept it.Verification
identity/sso-only-set-password-visibility.test.tsevaluates the parsed predicate through@objectstack/formula: hidden on an IdP-provisioned row under SSO-only mode; CONTROLs offered onenv_native,nullsource,idp_pending, the admin's own IdP row, an unprojectedsource; SSO-only off or no flag served keeps every row's offer; non-admin and cloud-managed still hide.ROW_SCOPED_HIDESguard row); restored green.packages/platform-objects: 133 files / 2364 tests pass.packages/specsrc/kernel: 65 files / 1519 pass.Clause-②: no
Metadata-protocol: none
Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed (a reason string only; no generated artifact carries it).content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbZLcNVF5cbbuDifLD