You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plugin-auth: a kernel without SSO answers 503 and logs an error on /sso/register, /sign-in/sso and /sso/callback/* (was 404) since #35781 #35939
area:authbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p1High: required for production / M2
Defect. Since PR #35781 (ecd4b2b1a58), when a kernel is built with SSO off (enabled.sso false), these paths answer 503 SERVICE_UNAVAILABLE and log an error at error level:
POST /api/v1/auth/sso/register
/sign-in/sso
/sso/callback/*
The 503 message is "SSO is unavailable: this server cannot judge its reads of an identity provider". Before #35781 these paths answered the vendor's 404 with no log line.
Cause, read on origin/main:
packages/plugins/plugin-auth/src/auth-manager-request-routing.ts, around line 237, wraps the vendor handler in runSsoDiscoveryEgress whenever isSsoDiscoveryEgressPath(path) holds. That is a check on the path alone.
ssoProviderReadsObserverPlugin is pushed only inside if (enabled.sso), in auth-manager-plugin-list.ts around lines 787-793.
The result: on a kernel without SSO the adapter is never observed, so runSsoDiscoveryEgress refuses with 503 and logs an error (auth-manager.ts, around lines 4403-4425).
Reach. Every deployment that does not mount SSO, which is the default without OS_SSO_ENABLED. Each request to these paths gets a 503 where a 404 belongs, plus one error-log line. The behaviour fails closed, so access is never widened. This is not a security finding.
Measured on cloud. In cloud pin round cloud#4920 (draft PR cloud#4921, pin dea68e93c68d), packages/objectos-runtime/src/environment-external-idp-sso.e2e.test.ts goes red on 3 of 9 cases (expected 503 to be 404) for the free, team and business→team plans. At pin de25d585bbfa the message has 0 hits in the plugin-auth dist.
Fix shape. Open the discovery-egress scope only when SSO is mounted, or have the guard check whether the observer was registered. An unmounted kernel then answers the vendor's 404 again, with no error log. Add a test: SSO off, POST /sso/register answers 404 and logs nothing at error level. Ablation: put the path-only condition back and that test goes red.
Why it matters to cloud. Cloud's pin round cloud#4920 cannot land past ecd4b2b1a58 without carrying this red. Cloud#4920 blocks cloud#4918 (p1), so the p1 grade inherits. Per the standing rule 「平台问题在平台修」, cloud does not adapt its assertions to the 503.
Re-check: git grep -n "isSsoDiscoveryEgressPath(this.betterAuthEndpointPath" -- packages/plugins/plugin-auth/src/auth-manager-request-routing.ts still shows the path-only condition ⇒ the defect is present.
Triage: lands in domain:server (plugin-auth, auth-manager-request-routing.ts) · pm:queue; rationale: area:auth · Bug · since PR #35781, a kernel without SSO (the default without OS_SSO_ENABLED) answers 503 and logs an error on /sso/register, /sign-in/sso and /sso/callback/*, where it answered 404: the discovery-egress scope opens on the path alone while its observer mounts only with SSO; fails closed, so it is not a security finding; measured red on cloud pin round objectstack-ai/cloud#4920 (3 of 9 cases) → p1 (blocker rule: it holds that pin round, which holds objectstack-ai/cloud#4918, p1) · size S (open the scope only when SSO is mounted, or check the observer, plus a pin).
Provenance: the account owner, verbatim, in this seat's session (session_01Q4EjjPP1zuWBNq3nBXVei9), 2026-11-21T11:25Z: 「35939 你直接派发,更新 objectstack 到最新代码」. For this card, that overrides 「objectstack的任务由他们仓库的车队负责派发」, as the owner earlier did for #35455 and #35829. The card blocks cloud's pin round cloud#4920, and that round blocks cloud#4918 (p1).
Claim: PM loop round 25
Session: session_01Q4EjjPP1zuWBNq3nBXVei9
Account: hotlong
Branch: claude/issue-35939-sso-unmounted-404
Worktree: objectstack-issue-35939
Domain: domain:server
Seat: repo:cloud#5
File surface: packages/plugins/plugin-auth/src/** (the request-routing SSO discovery-egress condition and its tests), one changeset (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: plugin-auth's request routing wraps the vendor SSO handler in the discovery-egress scope on the path alone, while the observer it needs is registered only when SSO is mounted (objectstack, this repo) | none | every deployment without SSO (the default) answers 503 plus an error log where 404 belongs; cloud's pin round is red on it
Thread-read: 7051051829
Premise: holds (re-read on origin/main 2026-11-21T11:25Z: auth-manager-request-routing.ts:237 still judges on isSsoDiscoveryEgressPath(this.betterAuthEndpointPath(request)) alone)
Serial constraints cleared: no in-flight claim of this seat declares plugin-auth; #35913 (same package) merged as cf7e44394032
{
"issue": 35939,
"status": "done",
"branch": "claude/issue-35939-sso-unmounted-404",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36072",
"session": "session_01Q4EjjPP1zuWBNq3nBXVei9",
"premise_still_valid": true,
"summary": "Premise reproduced on origin/main 8145424b53d: with plugins.sso false or unset, POST /sso/register, POST /sign-in/sso and GET /sso/callback/x answered 503 SERVICE_UNAVAILABLE with the card's exact message (6 of 6 red at test-only commit a776f672d8c). Fix: the discovery-egress scope in auth-manager-request-routing.ts now opens only when the path matches AND the new mountsSsoEndpoints(auth) holds (sso-discovery-egress.ts). mountsSsoEndpoints reads the built instance's auth.options.plugins for the vendor 'sso' plugin, and returns true when the list is unreadable. It reads the composition, not isSsoWired(), because isSsoWired re-reads OS_SSO_ENABLED at request time against a lazy build. A disagreement there in the off direction would serve SSO with unjudged reads, and a CONTROL case pins this. With SSO mounted, behaviour is unchanged: an unobserved adapter is still answered 503. Card assignee left as set by PM; worktree and node_modules removed without --force.",
"tests": "New describe in packages/plugins/plugin-auth/src/sso-discovery-connect-time.test.ts: 6 cases (2 compositions x 3 doors), each answers 404 with logger.error not called and no 'SSO request refused' warn or info line; plus a CONTROL: built with OS_SSO_ENABLED=true, env unset after the build, adapter rebuilt as a plain object, answers 503 with 1 error line. The existing SSO-on 503 pins (3 doors, plugins.sso true) stay green. Full package suite at 3f7ec3b181e: Test Files 291 passed (291), Tests 6184 passed and 10 skipped (6194), exit 0 (VERDICT command parts sequenced, TEST_EXIT=0 captured). Typecheck: pnpm --filter @objectstack/plugin-auth build && typecheck, VERDICT command-exit 0; check:test-typecheck OK, 10 files / 71 errors / 23 signatures held. Ablation via scripts/ablation-replace.mjs --delete of anchor ' && mountsSsoEndpoints(auth)': anchor 1 to 0, blob b04539afe0af to 739194970b07, file run 6 failed and 26 passed (the 6 new 404 cases red, 'expected 503 to be 404'), restored blob == HEAD b04539afe0af and git diff HEAD empty. The test imports ./auth-manager from src, so no dist rebuild leg applied. A first ablation attempt with --replacement (a substring of the anchor) was refused by the tool before any test ran; it was a no-op and is reported as such.",
"gates": "Local, at head 1f505ba720c: node scripts/pm/dispatch-gates.mjs --commands derived 76 commands, all run under the verify lock with exit codes captured before any pipe. 75 exit 0. pnpm check:dual-build-cjs-loads exit 3: PREREQUISITE NOT MET, it needs every package dist and the container has about 1 GB free, so this is NOT MEASURED. dispatch-gates --ran over 'command :: exit N' records: 76 derived, 75 run, 1 NOT-MEASURED (derived from the recorded exit 3), 0 UNRUN. Changed-from platform-checklist check not owed: an export was added, none renamed or deleted. PR check-runs at 1f505ba720c, read once after open: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards and Type Check (consumer, debt ledger, source, workspace) all in_progress; opt-in, queue and schedule jobs skipped. Test Core and Build Core had not appeared yet. CI convergence belongs to PM.",
"dogfood_battery": "n/a: no '!' in the PR title and Clause-② is 'no' with no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes: (1) fleet-write dispatch fw-20261121T121939Z-63a796 carrying pr_create, which is POST /repos/objectstack-ai/objectstack/pulls (draft) plus POST /repos/objectstack-ai/objectstack/issues/36072/assignees [hotlong]; (2) this report via post-stamped, POST /repos/objectstack-ai/objectstack/issues/35939/comments. git push to the branch is not a REST write: 4 pushes, the empty probe plus 3 commits.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Closed by PR #36072 2026-11-21T13:17Z, merged as 0e91213ea105. The state label comes off. Cloud consumes the fix in pin round cloud#4920, which resumes now.
area:authbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(plugin-auth,auth-manager-request-routing.ts) ·pm:queue; rationale: area:auth · Bug · since PR #35781, a kernel without SSO (the default withoutOS_SSO_ENABLED) answers503and logs an error on/sso/register,/sign-in/ssoand/sso/callback/*, where it answered 404: the discovery-egress scope opens on the path alone while its observer mounts only with SSO; fails closed, so it is not a security finding; measured red on cloud pin round objectstack-ai/cloud#4920 (3 of 9 cases) → p1 (blocker rule: it holds that pin round, which holds objectstack-ai/cloud#4918, p1) · size S (open the scope only when SSO is mounted, or check the observer, plus a pin).objectstack-fleet commentedon Nov 21, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
Provenance: the account owner, verbatim, in this seat's session (
session_01Q4EjjPP1zuWBNq3nBXVei9), 2026-11-21T11:25Z: 「35939 你直接派发,更新 objectstack 到最新代码」. For this card, that overrides 「objectstack的任务由他们仓库的车队负责派发」, as the owner earlier did for #35455 and #35829. The card blocks cloud's pin round cloud#4920, and that round blocks cloud#4918 (p1).Claim: PM loop round 25
Session:
session_01Q4EjjPP1zuWBNq3nBXVei9Account:
hotlongBranch:
claude/issue-35939-sso-unmounted-404Worktree:
objectstack-issue-35939Domain:
domain:serverSeat:
repo:cloud#5File surface:
packages/plugins/plugin-auth/src/**(the request-routing SSO discovery-egress condition and its tests), one changeset (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default,effort: highClause-②: no
Metadata-protocol: none
Responsibility:
plugin-auth's request routing wraps the vendor SSO handler in the discovery-egress scope on the path alone, while the observer it needs is registered only when SSO is mounted (objectstack, this repo) | none | every deployment without SSO (the default) answers 503 plus an error log where 404 belongs; cloud's pin round is red on itThread-read: 7051051829
Premise: holds (re-read on
origin/main2026-11-21T11:25Z:auth-manager-request-routing.ts:237still judges onisSsoDiscoveryEgressPath(this.betterAuthEndpointPath(request))alone)Serial constraints cleared:
no in-flight claim of this seat declares plugin-auth; #35913 (same package) merged as cf7e44394032objectstack-fleet commentedon Nov 21, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
os-dev-report
{ "issue": 35939, "status": "done", "branch": "claude/issue-35939-sso-unmounted-404", "pr": "https://github.com/objectstack-ai/objectstack/pull/36072", "session": "session_01Q4EjjPP1zuWBNq3nBXVei9", "premise_still_valid": true, "summary": "Premise reproduced on origin/main 8145424b53d: with plugins.sso false or unset, POST /sso/register, POST /sign-in/sso and GET /sso/callback/x answered 503 SERVICE_UNAVAILABLE with the card's exact message (6 of 6 red at test-only commit a776f672d8c). Fix: the discovery-egress scope in auth-manager-request-routing.ts now opens only when the path matches AND the new mountsSsoEndpoints(auth) holds (sso-discovery-egress.ts). mountsSsoEndpoints reads the built instance's auth.options.plugins for the vendor 'sso' plugin, and returns true when the list is unreadable. It reads the composition, not isSsoWired(), because isSsoWired re-reads OS_SSO_ENABLED at request time against a lazy build. A disagreement there in the off direction would serve SSO with unjudged reads, and a CONTROL case pins this. With SSO mounted, behaviour is unchanged: an unobserved adapter is still answered 503. Card assignee left as set by PM; worktree and node_modules removed without --force.", "tests": "New describe in packages/plugins/plugin-auth/src/sso-discovery-connect-time.test.ts: 6 cases (2 compositions x 3 doors), each answers 404 with logger.error not called and no 'SSO request refused' warn or info line; plus a CONTROL: built with OS_SSO_ENABLED=true, env unset after the build, adapter rebuilt as a plain object, answers 503 with 1 error line. The existing SSO-on 503 pins (3 doors, plugins.sso true) stay green. Full package suite at 3f7ec3b181e: Test Files 291 passed (291), Tests 6184 passed and 10 skipped (6194), exit 0 (VERDICT command parts sequenced, TEST_EXIT=0 captured). Typecheck: pnpm --filter @objectstack/plugin-auth build && typecheck, VERDICT command-exit 0; check:test-typecheck OK, 10 files / 71 errors / 23 signatures held. Ablation via scripts/ablation-replace.mjs --delete of anchor ' && mountsSsoEndpoints(auth)': anchor 1 to 0, blob b04539afe0af to 739194970b07, file run 6 failed and 26 passed (the 6 new 404 cases red, 'expected 503 to be 404'), restored blob == HEAD b04539afe0af and git diff HEAD empty. The test imports ./auth-manager from src, so no dist rebuild leg applied. A first ablation attempt with --replacement (a substring of the anchor) was refused by the tool before any test ran; it was a no-op and is reported as such.", "gates": "Local, at head 1f505ba720c: node scripts/pm/dispatch-gates.mjs --commands derived 76 commands, all run under the verify lock with exit codes captured before any pipe. 75 exit 0. pnpm check:dual-build-cjs-loads exit 3: PREREQUISITE NOT MET, it needs every package dist and the container has about 1 GB free, so this is NOT MEASURED. dispatch-gates --ran over 'command :: exit N' records: 76 derived, 75 run, 1 NOT-MEASURED (derived from the recorded exit 3), 0 UNRUN. Changed-from platform-checklist check not owed: an export was added, none renamed or deleted. PR check-runs at 1f505ba720c, read once after open: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards and Type Check (consumer, debt ledger, source, workspace) all in_progress; opt-in, queue and schedule jobs skipped. Test Core and Build Core had not appeared yet. CI convergence belongs to PM.", "dogfood_battery": "n/a: no '!' in the PR title and Clause-② is 'no' with no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes: (1) fleet-write dispatch fw-20261121T121939Z-63a796 carrying pr_create, which is POST /repos/objectstack-ai/objectstack/pulls (draft) plus POST /repos/objectstack-ai/objectstack/issues/36072/assignees [hotlong]; (2) this report via post-stamped, POST /repos/objectstack-ai/objectstack/issues/35939/comments. git push to the branch is not a REST write: 4 pushes, the empty probe plus 3 commits.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 21, 2026
repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9
Closed by PR #36072 2026-11-21T13:17Z, merged as
0e91213ea105. The state label comes off. Cloud consumes the fix in pin round cloud#4920, which resumes now.