Public: anyone can read this; the crew can change it.
SSH offers the hybrid post-quantum key exchange first: mlkem768x25519-sha256 #17997
Merged 11h 17m ago, live in production
The forge SSH server (git and the terminal) offered curve25519 alone, so a session recorded today could be read once a large quantum computer exists.
-
Reviews
Changes requested — before the latest pushThe hybrid exchange is built correctly: C_INIT and S_REPLY order, K = SHA-256(mlkem || x25519) encoded as a string, and the duplicate-INIT guard still covers the async gap. Bun supports ML-KEM-768 in WebCrypto. Three things to fix in one round:
- The test is not safe on every machine. It is skipped only when OpenSSH is missing, but
-o KexAlgorithms=mlkem768x25519-sha256fails on OpenSSH older than 9.9, so a runner with an older client gets a red test. Skip the hybrid half whenssh -Q kexdoes not list it. Also add a known-answer test for the hybrid in the kex unit tests, sincekex.tspins the other computations that way; the OpenSSH test alone cannot catch an encoding slip that both ends share. - Orphaned doc comment on
KEX_ALGORITHMSinsrc/ssh/transport.ts: the old comment stays above the new one, so there are two stacked blocks. Merge them into one. docs/OPERATING.mdhas the new sentence pasted mid-paragraph, in front of the host-key sentence, as one very long line. Give it its own sentence break or paragraph.
ApprovedRound 2 on head 281e40c. Earlier asks: the hybrid's K now has its own known answer (test/ssh-known-answers.test.ts), the client test skips the hybrid on OpenSSH before 9.9, and the docs sit in their own paragraph in docs/OPERATING.md. All three are met. The shared finishKex encodes K as an SSH string for the hybrid and as an mpint for curve25519, and uses the same encoding for the hash and the key derivation, as the draft requires. Bad C_INIT length and invalid ML-KEM key both disconnect, the dead check guards the async path, and the X25519 half keeps its degenerate-secret check. No new dependency: it uses WebCrypto. This is a transport change with no page, action or API, so the both-doors rule does not apply. Non-blocking: while the ML-KEM promise is pending, nothing stops the peer from sending another packet. If you want to be strict, drop packets until finishKex runs. Non-blocking: the hybrid test path only runs where OpenSSH 9.9 or later is installed, so CI should have one such client.
- The test is not safe on every machine. It is skipped only when OpenSSH is missing, but
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- SSH: the hybrid's K has its own known answer, the client test skips the hybrid on OpenSSH before 9.9, one comment, the docs in their own paragraph 281e40c
- SSH offers the hybrid post-quantum key exchange first: mlkem768x25519-sha256 1124a92
- The api-* test files read no answer that disagrees with openapi.json (#17990) 2d01f4a
- The suite's fetch reports each /api/v1 answer that disagrees with openapi.json, without failing yet (#17989) 3a1266c
- Anonymous, opt-in app telemetry: a route to receive daily summaries, and an owner view (#17967) 973052e
- Runner jobs' git-upload-pack: count the work per job, then cut it so the serving thread is not held (#17984) ee5308f
- A `[loop]` stall line names what the serving thread was doing: the route or duty in flight (#17982) bb47d9a
- takeLook's loopback-only test stops failing checks for a missing prerequisite (56 reds last week) (#17979) 87f7f1b
- A Talk turn that reaches its limit says so and offers one tap to go on (#17981) 7ada34c
- Talk logs one line per model call: account, model, seconds, how it ended (#17980) 353f588
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#17973) 010904c
- Full suite red: test/traffic-truth.test.ts (#17972) 13460d3
- Infrastructure: a game box container opens on its live log, with Restart, Stop and Start (#17946) db96b4c
- Full suite red: test/api-security-floor.test.ts (#17965) 091b8a0
- Public /privacy and /support pages (needed for the App Store listing) (#17948) 638aa4f
- A container in the cloud tree has a Logs tab with its recent lines (#17958) 07d8c64
- A join that freezes a lent job is recorded with how long the freeze took (#17956) 80543a4
- A lent job on a game box keeps the server's tps and mspt from before it and during it (#17957) a357207
- The /infra first page shows the costliest resources as a sortable table (#17955) e08c778
- Push to Apple devices (APNs): device registration and a sender (#17928) 19eaf78
The forge SSH server (git and the terminal) offered curve25519 alone, so a session recorded today could be read once a large quantum computer exists. It now offers mlkem768x25519-sha256 first, as OpenSSH 9.9 and later do: ML-KEM-768 through Bun WebCrypto (no new dependency) with X25519, K = SHA-256 of both secrets sent as a string. curve25519 stays for older clients. Host keys and signatures are unchanged.
Ran with the real OpenSSH 10.3 client in a throwaway container: test/git-ssh.test.ts 13 pass; the new test (a clone allowing only the hybrid exchange) fails on main and passes here. All SSH test files: 236 pass, 2 fail, the same 2 failing on main in that container (an Alpine environment difference); they pass in the forge test image. tsc and the gate pass.
🤖 Generated with Claude Code