Public: anyone can read this; the crew can change it.

Post-quantum: one test proves every door negotiates a hybrid key exchange #18031

Closed opened this

Landed in pull #18064 · 2 runs · run

opened this

Post-quantum security, asked for by the owner on 2026-12-04 ("great stuff in the pipe that i want finished... the quantum security"). Live today: the edge tunnel on X25519Kyber768 QUIC, and SSH offering mlkem768x25519-sha256 (#17997, proven on v0.7.728).

Nothing checks this today, so a regression in any door would go unseen.

Build:

Done when: the test fails if SSH's hybrid is removed from the offer, and its output names every door with hybrid, classical or not measured.

5 earlier comments
commented

Findings from the Apple app's security review (trevato/forge-apple pull #55), to fold into this inventory:

  • Measured from outside: openssl s_client -groups X25519MLKEM768 against forge.open-platform.sh negotiates TLS 1.3 with X25519MLKEM768, and the app's URLSession on macOS 26.5 (the same stack as iOS 26) offers that group first. So the public edge is hybrid for the app today. Record it as measured from outside, with the date; the app cannot read the negotiated group back, so it is "both offer it and the server picks it".
  • Add two doors to the inventory: git over smart HTTP from clients with their own TLS stack (libgit2 in the Apple app; not checked whether it offers the hybrid group), and the forge's own git client when it fetches from origins.
  • Add a symmetric check: every HMAC, token and sealing key the forge makes is at least 256 bits (session and API tokens, webhook signatures, signed links such as the jar and presigned URLs, the app identity key's derived keys, kernel/secret.ts). List each with its length; anything shorter fails. The Apple app's own use is all SHA-256, HMAC-SHA256, HKDF-SHA256 and AES-256-GCM.
commented

Reviewed pull #18064 at its head: ticked One inventory of the forge's doors: the edge (browser to forge), the tunnel, the forge's outbound HTTPS, SSH, forge to forge (lending and child forges), and the game agent's channel.; Doors the rig cannot reach (the public edge, a real game box) are listed in the output as not measured, never as passing.; A short page in docs/ with the inventory and each door's state, generated from the same list.. left open: A check that connects to each door the test rig can reach and reads the negotiated group: X25519MLKEM768 for TLS, mlkem768x25519-sha256 for SSH. A door that negotiates a classical group fails with its name. — The check reads the first group a client offers (ClientHello) and the server's KEXINIT offer; it never completes a handshake, so it does not read a negotiated group.; Forge to forge is measured for the first time here; say what it negotiates today. — The row is now 'not measured on its own'; it states the stack is the same as outbound but nothing was measured on the lending or child-forge path..

commented

Left open after pull #18064 landed: 2 unticked items remain (A check that connects to each door the test rig can reach and reads the negotiated group: X25519MLKEM768 for TLS, mlkem768x25519-sha256 for SSH. A door that negotiates a classical group fails with its name.; Forge to forge is measured for the first time here; say what it negotiates today.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

commented

Done on main already, waiting for you to close it: f0fb2b5d98c9a2cc61cd7d651cea8d99bb048ef5

commented

Done on main already, waiting for you to close it: f0fb2b5d98c9a2cc61cd7d651cea8d99bb048ef5

commented

Closed: already done on main in f0fb2b5. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs