Repository navigation
Post-quantum TLS, measured: real handshakes to the HTTP transport, in CI - #113
Merged
Merged
Conversation
A new test serves the HTTP transport from Bandit over HTTPS and completes TLS 1.3 handshakes in which client and server each allow only one post-quantum key exchange: X25519MLKEM768, SecP384r1MLKEM1024 and ML-KEM-1024. It answers an MCP request over each, has a server that allows only a classical group refuse the same client, and has OpenSSL's s_client name the negotiated group. The groups are found by a real loopback handshake, not by ssl:groups/0: in FIPS mode under provider 3.1.2 OTP lists ML-KEM groups whose handshake then exits. The box leg must run all nine; the FIPS leg's 3.5.9 rows must run the two ML-KEM-1024 groups, which complete in FIPS mode (X25519MLKEM768 is not offered there). A leg that should run them and cannot is refused, not green. The README says what was measured and how a host requires post-quantum key exchange; docs/crypto-posture.md and docs/fips.md follow. Signed-off-by: Ayla Croft <aylacroft@proton.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests, CI and docs only: no public entry and no package byte moves.
What
test/beam_mcp/transport/pq_tls_test.exs:BanditservesBeamMCP.Transport.HTTPover HTTPS on the loopback, TLS 1.3. For each of X25519MLKEM768, SecP384r1MLKEM1024 and ML-KEM-1024:tools/listis answered200over it;s_clientreportsNegotiated TLS1.3 group: <group>.OTP's
ssldoes not report the negotiated TLS 1.3 group, so the in-VM proof is by construction (one group allowed on both sides), backed by the negative control.s_clientis the independent reading.Gating by a real handshake (
test/support/beam_mcp/pq_tls.ex), notssl:groups/0. In FIPS mode under provider 3.1.2, OTP lists ML-KEM groups whose handshake then exits rather than alerts.CI:
PQ_TLS_REQUIRED=all);cnsa). In FIPS mode X25519MLKEM768 is not offered, because X25519 is not approved.Docs: the README gains "Post-quantum TLS, measured", covering what was measured, how a host requires post-quantum key exchange, and the 3.1.2 caveat.
docs/crypto-posture.mdnow says the post-quantum signature exists (beam_mcp_signer 0.3.0, KMS-held keys in 0.4.0).docs/fips.mdgets the FIPS-mode result. The CHANGELOG is updated.Measured locally
s_clientprintedNegotiated TLS1.3 group: X25519MLKEM768(TLSv1.3, TLS_AES_256_GCM_SHA384), and the same for the other two groups.s_clientincluded. Provider 3.1.2: all excluded by the probe.PQ_TLS_REQUIRED=allrefuses that runtime.tools/gate.shgives "Gate OK." with box-leg settings.