founding hand-off: the sign-in invite opens on "your connection is not private" — the browser has never seen the gateway's certificate #425

Closed
opened 2026-08-10 22:55:07 +00:00 by ben · 9 comments
Owner

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

  1. Run a founding drive on the private path through the stand-up to Hand-off (S12).
  2. When the app opens the sign-in invite in the browser, observe the certificate warning before the reset page.
  3. Proceed past the warning — the page works and the passkey ceremony completes normally.

Additional context

  • The ceremony deliberately dials the guest's identity provider directly (the forwarded port), not the community's front door — so even a public community with a real certificate would still hit this warning at founding. The warning is structural to the hand-off, not a private-path-only artefact.
  • The certificate presented is signed by a gateway-local CA minted inside the guest. That CA is deliberately held as a secret, so today there is no mechanism by which the operator's machine could obtain and trust it, even by hand. (This is not ADR 0111's community CA — that one signs device identity grants and no service presents it.)
  • The "accept the self-signed cert once" posture exists only as a code comment; no ADR/DDR records the decision and no user-facing copy prepares the operator.
  • The e2e harness can never catch this: the drive browser runs with certificate errors ignored (ADR 0143 posture), so the warning is invisible to every automated drive.
  • The portal address opened after the passkey lands has the same exposure on the private path.
  • Options for the ruling, cheapest first: (1) honest S12 copy warning the operator to expect the interstitial and click through — cheap, no structural change; (2) an in-app browser window for the ceremony that pins the known gateway CA (a Chromium layer already exists in the tree for the harness); (3) route the ceremony through the front door under the community's real certificate — the right long-term shape, but the passkey WebAuthn origin is currently pinned to the direct address, so it carries an origin migration; (4) export the gateway CA to the operator's trust store — blocked by the CA's secret posture.
  • Reported during Ben's manual founding drive 2026-08-10.
## 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 1. Run a founding drive on the private path through the stand-up to Hand-off (S12). 2. When the app opens the sign-in invite in the browser, observe the certificate warning before the reset page. 3. Proceed past the warning — the page works and the passkey ceremony completes normally. ## Additional context - The ceremony deliberately dials the guest's identity provider directly (the forwarded port), not the community's front door — so even a public community with a real certificate would still hit this warning at founding. The warning is structural to the hand-off, not a private-path-only artefact. - The certificate presented is signed by a gateway-local CA minted inside the guest. That CA is deliberately held as a secret, so today there is no mechanism by which the operator's machine could obtain and trust it, even by hand. (This is not ADR 0111's community CA — that one signs device identity grants and no service presents it.) - The "accept the self-signed cert once" posture exists only as a code comment; no ADR/DDR records the decision and no user-facing copy prepares the operator. - The e2e harness can never catch this: the drive browser runs with certificate errors ignored (ADR 0143 posture), so the warning is invisible to every automated drive. - The portal address opened after the passkey lands has the same exposure on the private path. - Options for the ruling, cheapest first: (1) honest S12 copy warning the operator to expect the interstitial and click through — cheap, no structural change; (2) an in-app browser window for the ceremony that pins the known gateway CA (a Chromium layer already exists in the tree for the harness); (3) route the ceremony through the front door under the community's real certificate — the right long-term shape, but the passkey WebAuthn origin is currently pinned to the direct address, so it carries an origin migration; (4) export the gateway CA to the operator's trust store — blocked by the CA's secret posture. - Reported during Ben's manual founding drive 2026-08-10.
Author
Owner

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://localhost can't simply be used: (1) kanidm has no plain-HTTP mode — TLS is mandatory by design; (2) the WebAuthn origin is pinned to https://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.nz in 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.

**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://localhost` can't simply be used:** (1) kanidm has no plain-HTTP mode — TLS is mandatory by design; (2) the WebAuthn origin is pinned to `https://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.nz` in 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.
Author
Owner

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.

**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.
Author
Owner

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 BrowserWindow must load https://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 the foundingPrefix.ts S12 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.ts drops 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 the enrol-passkey op restructured — e.g. split into open → await, or add a real pushed open-ceremony frame 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 (open returns {ceremonyUrl, caPem}; await polls + settles); Q3 → decompose, first slice = the Electron pinned-CA ceremony window + the helper→app open-ceremony frame carrying {url, ca}, deferring the e2e-harness rework and wireframes to follow-on slices. No code changed this iteration.

**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 `BrowserWindow` must load `https://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 the `foundingPrefix.ts` S12 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.ts` drops 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 the `enrol-passkey` op restructured — e.g. split into `open` → `await`, or add a real pushed `open-ceremony` frame 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 (`open` returns `{ceremonyUrl, caPem}`; `await` polls + settles); Q3 → decompose, first slice = the Electron pinned-CA ceremony window + the helper→app `open-ceremony` frame carrying `{url, ca}`, deferring the e2e-harness rework and wireframes to follow-on slices. No code changed this iteration.
Author
Owner

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-passkey becomes two request/response ops: open returns {ceremonyUrl, caPem} (the app opens its pinned-CA window), await polls 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-human with 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.

**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-passkey` becomes two request/response ops: `open` returns `{ceremonyUrl, caPem}` (the app opens its pinned-CA window), `await` polls 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-human` with 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.
Author
Owner

Landed on origin/main (commit 13b0c43) — flipping to ready-for-human per 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

  • Go helper / bridge (Q2 split): 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 (new liveCA), and returns {ceremonyUrl, caPem} — opening no browser. OpEnrolAwait (AwaitEnrolment → fleetwire.AwaitPasskey) polls kanidm and settles; the portal hand-over (#348) is unchanged. EnrolPasskey now composes the two for internal/testing use. The ceremony frame is never logged (stdiobridge.Serve does no frame logging).
  • App client: BridgeFoundingClient.enrolPasskey orchestrates open→open-window→await with one loss-less re-mint on expiry; a CeremonyOpener effect is threaded boot bridge → preload (ipcRenderer.invoke('ourcloud:open-ceremony')) → electron-main.
  • Electron main: createCeremonyWindow pins the CA via session.setCertificateVerifyProc scoped 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).
  • Wireframe (ADR 0042): S12 gained the data-status="ceremony-window" frame + retitled enrol-pending copy; FoundingHandOff.vue copy 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 guard app/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 into ceremony.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 (open returns {ceremonyUrl, caPem}, await polls + 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.

**Landed on `origin/main` (commit `13b0c43`) — flipping to `ready-for-human` per 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** - **Go helper / bridge (Q2 split):** `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 (new `liveCA`), and returns `{ceremonyUrl, caPem}` — opening no browser. `OpEnrolAwait` (`AwaitEnrolment` → `fleetwire.AwaitPasskey`) polls kanidm and settles; the portal hand-over (#348) is unchanged. `EnrolPasskey` now composes the two for internal/testing use. The ceremony frame is never logged (`stdiobridge.Serve` does no frame logging). - **App client:** `BridgeFoundingClient.enrolPasskey` orchestrates open→open-window→await with one loss-less re-mint on expiry; a `CeremonyOpener` effect is threaded boot bridge → preload (`ipcRenderer.invoke('ourcloud:open-ceremony')`) → electron-main. - **Electron main:** `createCeremonyWindow` pins the CA via `session.setCertificateVerifyProc` scoped 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). - **Wireframe (ADR 0042):** S12 gained the `data-status="ceremony-window"` frame + retitled enrol-pending copy; `FoundingHandOff.vue` copy 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 guard `app/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 into `ceremony.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 (`open` returns `{ceremonyUrl, caPem}`, `await` polls + 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.
Author
Owner

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.

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.
Author
Owner

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.** 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).
Author
Owner

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:

  • DDR 0163 (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 BrowserWindow that pins the gateway CA — option 2 of the
    five candidates, not rejected. Its own text: "The interim honest-copy option
    is superseded — the warning ceases to exist rather than being explained."
  • Ben ruled the three implementation questions the same day (15:06, 16:22) and
    it landed on origin/main same day, commit 13b0c43 ("the founding sign-in
    ceremony 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-12
    ruled the live sign-off rides the #492 rehearsal ratchet — a verified GREEN
    drive is this issue's proof and closes it.
  • Verified still intact on today's origin/main (b45c66a, checked out this
    session): 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 (the
    ceremony-window frame) — no system-browser code path remains for this
    ceremony. 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.md as of tonight — "Frontier tooth of #492" recurs
across the last several landed tickets, not yet green). That's Ben's eyes, not
session work, so returning this to ready-for-human rather than leaving the
2026-08-14 comment's ready-for-session state 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).

**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: - **DDR 0163** (`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 `BrowserWindow` that pins the gateway CA — option 2 of the five candidates, not rejected. Its own text: *"The interim honest-copy option is superseded — the warning ceases to exist rather than being explained."* - Ben ruled the three implementation questions the same day (15:06, 16:22) and it **landed on `origin/main` same day, commit `13b0c43`** ("the founding sign-in ceremony 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-12 ruled the live sign-off rides the #492 rehearsal ratchet — a verified GREEN drive is this issue's proof and closes it. - Verified still intact on today's `origin/main` (`b45c66a`, checked out this session): `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` (the `ceremony-window` frame) — no system-browser code path remains for this ceremony. 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.md` as of tonight — "Frontier tooth of #492" recurs across the last several landed tickets, not yet green). That's Ben's eyes, not session work, so returning this to `ready-for-human` rather than leaving the 2026-08-14 comment's `ready-for-session` state 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).
Author
Owner

Closed on Ben's LIVE SIGN-OFF — 2026-08-24, drive 20260824T144614Z

Ben 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-ceremony session verifies the gateway's certificate against the community CA (electron-main.ts setCertificateVerifyProc) — 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/apps wearing 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) through login-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 as a18375b (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.

## Closed on Ben's LIVE SIGN-OFF — 2026-08-24, drive `20260824T144614Z` Ben 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-ceremony` session verifies the gateway's certificate against the community CA (`electron-main.ts` `setCertificateVerifyProc`) — 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/apps` wearing 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) through `login-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 as `a18375b` (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.
ben closed this issue 2026-08-24 15:09:16 +00:00
Sign in to join this conversation.
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#425
No description provided.