e2e: the operator session and the Nextcloud OIDC sign-in survive one host network flap (fire 9) #1875

Merged
ben merged 1 commit from session/operator-session-survives-flap into main 2026-09-25 10:30:48 +00:00
Owner

WKT-DEMO fire 9 (drive 20260925T093531Z, #1855) founded. The bundle loaded, thanks to #1872, and the phrase verified (/login/verify 302).

Then Chromium aborted the bridge's redirect to https://<apex>/authz/callback?code=… with net::ERR_NETWORK_CHANGED.

Cause. The gateway submits to Coa at identity-recorded. Coa's build for this founding then starts its containers on the same shared runner, exactly as the tail signs in. So Drive A's own app build churns the network under its own sign-ins. The OAuth code is one-shot, so only a whole fresh sign-in recovers.

Change. establishOperatorSession and oidcSignInViaBridge (split into a once-walk and a wrapper) now watch requestfailed. A chain broken by isHostNetworkFlap earns one fresh sign-in, per GOTCHAS #333's rule. A failure with no flap is reported as is. The operator-session wait ends 5 s after a flap, instead of burning its 2-minute ceiling first.

Tests. Two new tests failed before the change and pass after it. All 42 fixture files pass (736 tests), and vue-tsc is clean.

Refs #1855 #1836

🤖 Generated with Claude Code

https://claude.ai/code/session_013h5C35beyRQMAA1QjxZGk7

WKT-DEMO fire 9 (drive `20260925T093531Z`, #1855) founded. The bundle loaded, thanks to #1872, and the phrase verified (`/login/verify` 302). Then Chromium aborted the bridge's redirect to `https://<apex>/authz/callback?code=…` with `net::ERR_NETWORK_CHANGED`. **Cause.** The gateway submits to Coa at identity-recorded. Coa's build for this founding then starts its containers on the same shared runner, exactly as the tail signs in. So Drive A's own app build churns the network under its own sign-ins. The OAuth code is one-shot, so only a whole fresh sign-in recovers. **Change.** `establishOperatorSession` and `oidcSignInViaBridge` (split into a once-walk and a wrapper) now watch `requestfailed`. A chain broken by `isHostNetworkFlap` earns one fresh sign-in, per GOTCHAS #333's rule. A failure with no flap is reported as is. The operator-session wait ends 5 s after a flap, instead of burning its 2-minute ceiling first. **Tests.** Two new tests failed before the change and pass after it. All 42 fixture files pass (736 tests), and `vue-tsc` is clean. Refs #1855 #1836 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013h5C35beyRQMAA1QjxZGk7
e2e: the operator session and the Nextcloud OIDC sign-in survive one host network flap (fire 9)
All checks were successful
ci / seam (pull_request) Successful in 12m49s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
935e389834
Fire 9 (20260925T093531Z): the phrase verified, then the bridge's redirect
to /authz/callback?code=… aborted net::ERR_NETWORK_CHANGED as Coa's build
for this founding started containers on the shared runner. The OAuth code
is one-shot, so only a whole fresh sign-in recovers. Both helpers now watch
for failed requests and redo the sign-in once when a host network flap
broke it; the operator-session wait ends 5 s after a flap.

Refs #1855 #1836

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013h5C35beyRQMAA1QjxZGk7
ben merged commit f17c7ceccc into main 2026-09-25 10:30:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss!1875
No description provided.