Repository navigation
Conversation
Valkey built against OpenSSL 3.5 or later negotiates hybrid ML-KEM key exchange (X25519MLKEM768) with no configuration, but the TLS page does not say so. Add a section covering the OpenSSL and TLS 1.3 requirements, how to check the negotiated group with openssl s_client, and how to require or prefer post-quantum groups with an OpenSSL configuration file, since Valkey has no directive for groups. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson
commented
Dec 3, 2026
| break the elliptic curve key exchange TLS uses now. Hybrid post-quantum key | ||
| exchange protects against this by combining a classical group such as X25519 | ||
| with ML-KEM, the key encapsulation mechanism standardized in NIST FIPS 203. | ||
| The connection stays secure as long as either one holds. |
Owner
Author
There was a problem hiding this comment.
Suggested change
| The connection stays secure as long as either one holds. | |
| The connection stays secure as long as either ML-KEM or elliptic curve key exchange are secure. |
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Owner
Author
|
Promoted upstream: valkey-io#577 |
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.
Valkey built against OpenSSL 3.5 or later negotiates hybrid post-quantum key exchange (
X25519MLKEM768) by default, and every official container image already ships OpenSSL 3.5, but the TLS page does not mention it. This adds a section on the OpenSSL and TLS 1.3 requirements, how to check what a server negotiates, and how to require or prefer post-quantum groups through an OpenSSL configuration file, since Valkey has no directive for groups.AI generated details
Behavior the section documents
Valkey never sets groups itself and loads the OpenSSL configuration at startup (
src/tls.c:174-176,OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG ...)), so OpenSSL's defaults andsystem_defaultsection decide the groups.The
Groups = X25519MLKEM768config from the section, against Valkey unstable e3a958b built with OpenSSL 3.5.10:With no OpenSSL config the same build negotiates
X25519MLKEM768, andGroups = X25519refuses a PQ-only client with alert 40.Container images
All
valkey-containerDockerfiles (7.2 through unstable) usedebian:trixie-slim(OpenSSL 3.5.9) oralpine:3.23/alpine:3.24(OpenSSL 3.5.10).Decision for reviewers
The section does not mention
tls-groups(valkey-io/valkey#4501, valkey-io/valkey#4502) because it has not merged. Proposal: update this section to lead withtls-groupsonce it ships, and keep the OpenSSL config path for older versions.This was generated by AI but verified, with love, by a human.