founding hand-off: the sign-in invite opens on "your connection is not private" — the browser has never seen the gateway's certificate #425
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened
During the identity hand-off, the app opened the operator's sign-in invite in the browser and the browser showed the full-page "your connection is not private" warning. Clicking through Advanced → proceed reaches a working reset page and the ceremony completes — but the operator is asked to bypass a scary security interstitial at the exact moment the product is trying to earn their trust, with no copy anywhere preparing them for it or telling them it is safe.
What I expected
Either a trusted connection, or — at minimum — honest S12 copy telling the operator the warning is expected on this path and that clicking through is safe.
Steps to reproduce
Additional context
Design-space notes from Ben's questions during the 2026-08-11 QA sitting (sharpens the ruling; no decision taken):
Why localhost still warns: the exemption browsers give localhost applies to plain http (it counts as a secure context, WebAuthn included). The moment the scheme is https, certificate validation applies in full — and the guest kanidm's cert chains to a CA minted inside the guest that no host trust store has ever seen. Passkeys force a secure context, kanidm refuses non-TLS, hence https, hence the interstitial.
Why plain
http://localhostcan't simply be used: (1) kanidm has no plain-HTTP mode — TLS is mandatory by design; (2) the WebAuthn origin is pinned tohttps://localhost:<port>and the created passkey is bound to it; (3) that same origin is the OIDC issuer whose discovery document in-guest services (e.g. Files' OIDC) consume across the forwarded split horizon — ONE origin string valid on both sides is load-bearing. A helper-owned plain-http reverse proxy on 127.0.0.1 (http to the browser, pinned-CA https to the guest) would silence the browser but drags the same origin migration as option 3 with none of its payoff.Option 3's reach: the front door's real Let's Encrypt certificate exists only on the public paths. The private path has no public name (Address deliberately skipped), so its front-door TLS is community-CA-signed — the host browser trusts it no more than the gateway CA. Option 3 as written does NOT fix the local VM.
A fifth option for the private path — real name, real cert via DNS-01: mint
<slug>.idss.nzin the product zone (ADR 0128; acme-dns machinery already exists on the public paths), resolve it only locally/split-horizon, and mint a genuinely trusted wildcard — Let's Encrypt never needs to reach the box for DNS-01. Every browser then accepts the ceremony, portal, and OIDC origin. Costs: founding needs internet at that moment, and the community's name becomes publicly visible in DNS + certificate-transparency logs — a real privacy trade for an explicitly private community.The sharpened ruling: option 1 (honest copy) now, then choose the destination: pin-the-CA in an in-app ceremony window (keeps the private path truly offline/private) vs real-name-real-cert via DNS-01 (one origin story across all paths, but a private community leaves a public trace). These pull in different directions on what "private" promises.
Ben's ruling (2026-08-11): option 2 — the ceremony opens in an app-controlled browser window that pins the gateway CA. Recorded as DDR 0163 (docs/adr/0163-design-the-ceremony-opens-in-an-app-window-that-pins-the-gateway-ca.md), which is the implementation brief. Key constraints from the DDR: pin-and-verify against the gateway CA for the ceremony origin only (never a blanket certificate bypass); no origin migration (
https://localhost:<port>stays — the OIDC issuer rides it); CA custody unchanged (the helper already reads it over the founding SSH at hand-off — memory only, never persisted, never a trust-store install); portal hand-over out of scope (plain-http local dashboard, no warning). The honest-copy interim is superseded. Wireframe frames land with the implementing commit (ADR 0042). Flipping needs-design → ready-for-agent.Blocked → ready-for-human (Sandcastle iteration 2026-08-11). I posted the design question to Mattermost (ask-human thread
tf63hw3rkbbxzdx95f7cyn7k9w) and waited the full window; no reply landed in time, so per the swarm runbook I record the decision needed here and hand back. A late reply is not lost — the next ask on this issue resumes the same thread.DDR 0163 (option 2) is a clear brief, but implementing it surfaces a token-custody gap the DDR does not resolve, plus scope questions. Three rulings are needed before an agent can build this safely:
Q1 — the reset TOKEN crosses to the app (the crux). An app-owned
BrowserWindowmust loadhttps://localhost:<port>/ui/reset?token=<secret>. Today that URL is built and opened only inside the Go helper; the enrolment token "never crosses the stdio bridge" (ADR 0051 secrets discipline —internal/fleetwire/enrolment.go:180, and thefoundingPrefix.tsS12 comment). For the app to own the ceremony window, the helper must hand the app the CA cert and the reset URL (token included), so the short-TTL single-use token now lives in the app's Electron main process. DDR 0163 addresses CA custody ("crosses to the app… held in memory") but is silent on the token. Ruling needed: is it acceptable for the single-use, short-TTL reset URL/token to cross to the app main process for the ceremony window only (in-memory, never logged, never persisted) — recorded as an ADR 0051 amendment? Or must the token stay helper-only (which forecloses an app-owned window and reopens the ruling)?Q2 — the op needs a protocol restructure. The stdio bridge is one-shot request/response today with no mid-op push (ADR 0051 describes event frames; none are implemented —
internal/founding/stdio.go,app/src/lib/stdioBridge.tsdrops unsolicited lines). The helper opens the browser mid-op while blocking on the HasPasskey poll, so there is no point at which the app could open a window from a response. Landing an app-owned window needs theenrol-passkeyop restructured — e.g. split intoopen→await, or add a real pushedopen-ceremonyframe carrying{url, ca}. Confirm that protocol restructure is in scope for this issue.Q3 — scope / decomposition. The DDR's own consequences also require reworking the e2e ceremony (external Chromium +
ignoreHTTPSErrors, ADR 0143 → the app's own window, dropping the blanket TLS bypass) and adding the S11/S12 wireframe frames (ADR 0042). This spans Go helper + stdio protocol + Electron main + e2e harness (live-lab, unrunnable in the Sandcastle sandbox) + wireframes — larger than one vertical slice. Deliver it all under this one issue, or decompose into sub-slices? If decomposed, which slice first?My lean (for a human to confirm or redirect): Q1 → yes, amend ADR 0051 for the ceremony window only; Q2 → split the op (
openreturns{ceremonyUrl, caPem};awaitpolls + settles); Q3 → decompose, first slice = the Electron pinned-CA ceremony window + the helper→appopen-ceremonyframe carrying{url, ca}, deferring the e2e-harness rework and wireframes to follow-on slices. No code changed this iteration.Ben rules the three questions (2026-08-11):
Q1 — YES, the narrow exception. The reset URL (single-use, short-TTL token included) and the gateway CA cert may cross to the app's Electron main process for the ceremony window only: in-memory, never logged, never persisted, never handed to the renderer beyond the window navigation, discarded when the ceremony settles. Recorded as an amendment on ADR 0051 (docs/adr/0051-helper-stdio-contract-discipline.md) and in DDR 0163's Implementation rulings.
Q2 — split the op.
enrol-passkeybecomes two request/response ops:openreturns{ceremonyUrl, caPem}(the app opens its pinned-CA window),awaitpolls kanidm and settles. No pushed-frame machinery — the bridge stays one-shot request/response.Q3 — ONE ticket, human sign-off gates the close. The whole DDR lands under this issue (helper + protocol + window + e2e-harness rework + wireframes). Do NOT close this issue on completion — flip it to
ready-for-humanwith the evidence, and Ben signs off (the e2e leg is live-lab and unprovable in the sandbox, so the human gate is the close). Flipping back to ready-for-agent now.Landed on
origin/main(commit13b0c43) — flipping toready-for-humanper Ben's Q3 ruling (do NOT auto-close; the e2e leg is live-lab and unprovable in the sandbox, so Ben's sign-off is the close).DDR 0163 (option 2) implemented across every layer; ADR 0051's narrow token/CA amendment honoured. The founding sign-in ceremony now opens in an app-owned Electron window whose session verifies the ceremony origin's chain against the gateway CA — a scoped pin, never a blanket bypass — so the "your connection is not private" interstitial ceases to exist.
What landed
enrol-passkey→ two ops.OpEnrolOpen(Orchestrator.OpenEnrolment→fleetwire.OpenCeremony) mints/consumes the token, builds the reset URL, reads the gateway CA over the founding SSH (newliveCA), and returns{ceremonyUrl, caPem}— opening no browser.OpEnrolAwait(AwaitEnrolment→fleetwire.AwaitPasskey) polls kanidm and settles; the portal hand-over (#348) is unchanged.EnrolPasskeynow composes the two for internal/testing use. The ceremony frame is never logged (stdiobridge.Servedoes no frame logging).BridgeFoundingClient.enrolPasskeyorchestrates open→open-window→await with one loss-less re-mint on expiry; aCeremonyOpenereffect is threaded boot bridge → preload (ipcRenderer.invoke('ourcloud:open-ceremony')) → electron-main.createCeremonyWindowpins the CA viasession.setCertificateVerifyProcscoped to the ceremony host (other hosts defer to Chromium's verdict; the CA is trusted only when the presented chain roots in it), node-integration OFF (remote content),ipcMain.handle('ourcloud:open-ceremony')refuses non-https. No origin migration —https://localhost:<port>stays (the OIDC issuer rides it).data-status="ceremony-window"frame + retitled enrol-pending copy;FoundingHandOff.vuecopy aligned.Tests (all green in-sandbox): Go seam —
TestOpenCeremony_BuildsResetURLAndReturnsCA,TestOpenCeremony_CAReadFailsLoud,TestAwaitPasskey_*,TestEnrolment_LiveCAReadsOverSSH,TestHandle_EnrolSplitOpsDriveTheCeremony; app client seam — split + re-mint + fail-loud-with-no-opener; electron posture guardapp/tests/unit/ceremonyWindow.test.ts. 802 app unit tests + full Go build/vet/test/lint gate pass.What Ben must drive to close (the human gate): a live founding drive confirming the ceremony opens in the app's own window with NO certificate interstitial, the passkey registers, and the portal hand-over lands.
Left for the live drive (documented, not done — this is why it can't auto-close): the e2e ceremony harness still reads the reset URL off the helper's open sink (#338), which the app no longer writes (the URL crosses the bridge to Electron main now), so a real drive will red at phase 2 until the harness is reworked to drive the app-opened window — catch it with
live.app.waitForEvent('window'), attach the CDP virtual authenticator there, and drop the blanket--ignore-certificate-errors. That rework is cross-coupled with the provisioning tail's shared Chromium/session/host-resolver-rules(provision.ts), so it needs the live lab to get right; the plan is written intoceremony.ts/foundingPrefix.ts/launch.ts.Prior rulings recorded (2026-08-11, comment thread): Q1 — yes, the reset URL (token) + gateway CA may cross to Electron main for the ceremony window only (in-memory, never logged, never persisted; ADR 0051 amended). Q2 — split the op (
openreturns{ceremonyUrl, caPem},awaitpolls + settles). Q3 — one ticket, human sign-off gates the close.Note on scope: the ceremony-window wireframe frame landed in S12 (the ceremony's actual surface); S11 is the deploy screen and gains nothing sensible — DDR 0163's "S11/S12" is read as the founding sign-in wireframe pair.
Ben ruled 2026-08-12: the live sign-off rides the phase-2 rehearsal ratchet (#492) instead of a hand session — its sign-in leg drives the app-window ceremony every firing; a verified GREEN (ceremony artifacts eyeballed) is this issue's proof and closes it.
Ruled by agent under ADR 0174 — veto anytime. Ruling: option 1 now — honest S12 copy that prepares the operator for the interstitial and says why clicking through is safe on this path — plus a DDR recording the accept-self-signed hand-off posture (today only a code comment). The DDR records option 3 (ceremony through the front door under the community's real certificate) as the long-term shape with its WebAuthn origin-migration cost; option 2 rejected (heavier for the same trust outcome), option 4 blocked by the CA's secret posture. Two-way door: copy + a DDR, fully revertible. The copy is a trust surface, so its final accept rides Ben's next digest as an async veto (ADR 0174 rule 3). Relabelled
ready-for-session(DDR authoring is a design-tier run).Ruled by agent under ADR 0174 — veto anytime.
Correction to the 2026-08-14 16:29 comment on this ticket: that ruling ("option 1
now — honest S12 copy… option 2 rejected") was made without visibility into
DDR 0163 and the work already landed under it. Re-checked the full history
and the current tree before acting:
docs/adr/0163-design-the-ceremony-opens-in-an-app-window-that-pins-the-gateway-ca.md,accepted, Ben 2026-08-11) already ruled this exact ticket: the ceremony opens
in an app-owned
BrowserWindowthat pins the gateway CA — option 2 of thefive candidates, not rejected. Its own text: "The interim honest-copy option
is superseded — the warning ceases to exist rather than being explained."
it landed on
origin/mainsame day, commit13b0c43("the founding sign-inceremony opens in an app-owned pinned-CA window, not the system browser"),
plus the rehearsal-phase-2 follow-through (
d70af5a,5001f4e,208e61b).Ben then flipped this ticket to
ready-for-human(16:22) and on 2026-08-12ruled the live sign-off rides the #492 rehearsal ratchet — a verified GREEN
drive is this issue's proof and closes it.
origin/main(b45c66a, checked out thissession):
internal/fleetwire/enrolment.go(OpenCeremony),internal/founding/handoff.go(OpenEnrolment/AwaitEnrolment),app/src-electron/electron-main.ts(createCeremonyWindow,chainRootsInPinnedCA),app/src/components/founding/FoundingHandOff.vue,wireframe
docs/ux/wireframes/p1-founding/p1-s12-hand-off.html(theceremony-windowframe) — no system-browser code path remains for thisceremony. Re-ran the seam tonight:
CGO_ENABLED=0 go test ./internal/fleetwire/... ./internal/founding/...→ ok;vitest run tests/unit/ceremonyWindow.test.ts tests/unit/foundingHandOff.test.ts tests/unit/founding.test.ts→ 31/31 green.So there is no "your connection is not private" interstitial left in the app to
put honest copy in front of, and authoring a fresh DDR for option 1 would
directly contradict the already-accepted DDR 0163 on the same ticket — not a
ruling I'm willing to execute. Not treating this as a veto of Ben's own
decisions (there aren't any to veto here); the 2026-08-14 comment was an
agent's own ruling that missed the prior history, and this comment is the
correction, fully revertible (it's a label + comment, no code touched).
Remaining state, unchanged from Ben's actual rulings: the only open gate is
his live-drive sign-off, tied to the #492 rehearsal drive going green (still
the frontier per
STATUS.mdas of tonight — "Frontier tooth of #492" recursacross the last several landed tickets, not yet green). That's Ben's eyes, not
session work, so returning this to
ready-for-humanrather than leaving the2026-08-14 comment's
ready-for-sessionstate standing.Why human
Ben's eyes: (1) confirm this correction — the DDR-0163 implementation is what
should stand, not a new option-1 DDR; (2) the live founding-drive sign-off
itself once #492 goes green (Ben's 2026-08-12 ruling — the e2e ceremony leg is
live-lab and unprovable in the sandbox, so his confirmation is the close).
Closed on Ben's LIVE SIGN-OFF — 2026-08-24, drive
20260824T144614ZBen ruled in-session: this drive is the sign-off.
What was signed off: the DDR 0163 rework, seen working on a live private-path founding drive on Ben's own laptop. "Open your dashboard" opened the ceremony in the app's own Electron window, whose
idss-ceremonysession verifies the gateway's certificate against the community CA (electron-main.tssetCertificateVerifyProc) — the window landed directly on the branded kanidm reset page with no "your connection is not private" interstitial and no bypass click anywhere. Passkey registered (CDP virtual authenticator), signed in, landed on/ui/appswearing the community name and the byte-exact logo.Evidence:
test-results/private-path/20260824T144614Z/on the laptop —artifacts/ceremony/reset-1.png(reset page with no interstitial before it) throughlogin-done.png(/ui/apps, signed in), eyeballed by Ben this session. The drive was the first live exercise of the reworked leg; the e2e harness rework proving it landed asa18375b(foundingPrefix drives the app window + CDP authenticator; GOTCHAS #77/#78 carry the two hazards found on the way).The originally-reported path (system browser + community-CA interstitial) no longer exists: the system browser is never opened for the ceremony.