From e655a1449abbc5d09224ccee8141e1eeaf2e63f9 Mon Sep 17 00:00:00 2001 From: Craig Osterhout Date: Fri, 4 Dec 2026 09:48:53 -0800 Subject: [PATCH 1/4] security: add cryptography reference Signed-off-by: Craig Osterhout --- .../reference/post-quantum-cryptography.md | 161 ++++++++++++++++++ data/navigation/products.json | 2 +- data/navigation/references.json | 5 + .../_partials/reference-directory/groups.html | 4 + 4 files changed, 171 insertions(+), 1 deletion(-) create mode 100644 content/reference/post-quantum-cryptography.md diff --git a/content/reference/post-quantum-cryptography.md b/content/reference/post-quantum-cryptography.md new file mode 100644 index 000000000000..2f9604a9d39e --- /dev/null +++ b/content/reference/post-quantum-cryptography.md @@ -0,0 +1,161 @@ +--- +title: Post-quantum cryptography at Docker +linkTitle: Post-quantum cryptography +description: >- + See which Docker products and endpoints support hybrid post-quantum key + exchange, and check the connections and images you depend on. +keywords: post-quantum cryptography, PQC, hybrid key exchange, X25519MLKEM768, + ML-KEM, TLS, OpenSSL 3.5, Docker Hardened Images, Docker Hub, Docker + Sandboxes, quantum-safe +weight: 50 +--- + +This page lists hybrid post-quantum key exchange support for Docker endpoints, +Docker Sandboxes, and Docker Hardened Images, and shows how to check the +connections and images you depend on. + +Docker is extending hybrid key exchange to the remaining endpoints and to +Docker Hardened Images FIPS variants. For details, see +[Docker and the move to post-quantum cryptography](https://www.docker.com/blog/xxx). + +## Hybrid key exchange + +Hybrid key exchange on this page means the `X25519MLKEM768` TLS 1.3 key +exchange group, defined in +[RFC 10024](https://www.rfc-editor.org/rfc/rfc10024.html). + +Hybrid key exchange applies only when both ends of a connection support it. +If either end doesn't, the connection uses classical key exchange. + +## Docker endpoints + +These are the services your clients connect to. An endpoint that supports +hybrid key exchange uses it when your client offers it. + +| Endpoint | Hybrid key exchange | +| --- | --- | +| Docker Desktop and Docker Engine downloads | Supported | +| Docker Hardened Images registry (`dhi.io`) | Supported | +| Docker Hub image pulls (`docker.io`), including Docker Official Images | Not supported | +| Docker Hub web application (`hub.docker.com`) | Supported | +| Docker Sandboxes cloud API and hosted MCP gateway | Supported | +| Docker Sandboxes cloud scheduling service | Not supported | +| Docker sign-in (`login.docker.com`) | Supported | + +## Docker Sandboxes + +Docker Sandboxes (`sbx`) offers hybrid key exchange by default on the +connections its CLI and daemon make. The +[`tls.postQuantumKeyExchange`](/manuals/ai/sandboxes/configuration/settings.md#tlspostquantumkeyexchange) +setting controls it. + +## Docker Hardened Images + +Applications in an image use hybrid key exchange only when their TLS library +supports it and the other end supports it. + +| Image | Hybrid key exchange | Details | +| --- | --- | --- | +| Images on Debian 13, or Alpine 3.22 or later | Offered by default | These images ship OpenSSL 3.5 or later. Applications that use the system OpenSSL offer hybrid key exchange. Rebuild regularly to get TLS library updates. | +| FIPS variants | Not offered | FIPS variants use the validated OpenSSL 3.1.2 FIPS provider, which doesn't support hybrid key exchange. | + +## Check a connection + +Use OpenSSL 3.5 or later to test whether an endpoint accepts hybrid key +exchange. Check your local version first: + +```console +$ openssl version +``` + +Then require TLS 1.3 and offer only the hybrid group, so the handshake fails +if the server doesn't support it: + +```console +$ openssl s_client -tls1_3 -connect hub.docker.com:443 \ + -servername hub.docker.com \ + -groups X25519MLKEM768 &1 \ + | grep "Negotiated TLS1.3 group" +``` + +If the endpoint supports hybrid key exchange, the output shows: + +```text +Negotiated TLS1.3 group: X25519MLKEM768 +``` + +If it doesn't, the handshake fails with an alert, such as +`handshake failure` or `protocol version`, and the group shows as ``. + +Replace `hub.docker.com` with any endpoint you want to test, such as +`dhi.io`, `login.docker.com`, or one of your own services. + +## Check an image + +Images can include different TLS libraries and language runtimes, so no +single command covers every image. Check the following, in order: + +1. Find the TLS libraries and runtimes in the image. +1. Compare their versions with the versions that support hybrid key exchange. +1. Test a running service directly, if the image runs a TLS server. + +### Find the TLS libraries in the image + +List the packages in the image SBOM with +[Docker Scout](/manuals/scout/how-tos/view-create-sboms.md) and filter for +common TLS libraries and runtimes: + +```console +$ docker scout sbom --format list | grep -iE "openssl|libssl|gnutls|boringssl|golang|stdlib|node|python|openjdk" +``` + +For Docker Hardened Images, the system OpenSSL already supports hybrid key +exchange, except in FIPS variants. See +[Docker Hardened Images](#docker-hardened-images). Use the SBOM to find +runtimes and applications that bundle their own TLS library. See +[Software Bill of Materials](/manuals/dhi/explore/security-concepts/sbom.md). + +### Compare versions + +Hybrid key exchange depends on the library or runtime that makes the TLS +connection, not on the image as a whole. Look up the component the +application uses: + +| Component | Supports `X25519MLKEM768` | +| --- | --- | +| OpenSSL | 3.5 and later, on by default | +| OpenSSL FIPS provider 3.1.2 | No | +| Go standard library (`crypto/tls`) | 1.24 and later, on by default | +| Other libraries and runtimes | Check the vendor documentation | + +An application can bundle its own TLS library instead of using the system +OpenSSL. For example, Go programs use the Go standard library +(`crypto/tls`). + +If the image includes these tools, you can also ask the runtime directly: + +```console +$ docker run --rm --entrypoint openssl version +$ docker run --rm --entrypoint python3 -c "import ssl; print(ssl.OPENSSL_VERSION)" +$ docker run --rm --entrypoint node -p process.versions.openssl +``` + +Docker Hardened Images runtime images don't include a shell or other +non-essential components. Use the SBOM for those images instead. + +### Test a running service + +If the image runs a TLS server, start it and test the port with the same +OpenSSL command used in [Check a connection](#check-a-connection): + +```console +$ docker run -d --name tls-test -p 8443: +$ openssl s_client -tls1_3 -connect localhost:8443 -groups X25519MLKEM768 &1 | grep "Negotiated TLS1.3 group" +$ docker rm -f tls-test +``` + +The test also depends on the server configuration. A server can restrict its +TLS groups even when its library supports hybrid key exchange. + +To keep TLS libraries current, use current Docker Hardened Images (Debian 13, +or Alpine 3.22 or later) and rebuild regularly. \ No newline at end of file diff --git a/data/navigation/products.json b/data/navigation/products.json index 2f2595e41b81..7788d6b069d0 100644 --- a/data/navigation/products.json +++ b/data/navigation/products.json @@ -148,7 +148,7 @@ "label": "Security", "root": "/manuals/security", "category": "admin", - "references": [] + "references": ["/reference/post-quantum-cryptography"] }, "faqs": { "label": "FAQs", diff --git a/data/navigation/references.json b/data/navigation/references.json index 65d2fa1c48d6..47fe14dfd819 100644 --- a/data/navigation/references.json +++ b/data/navigation/references.json @@ -82,5 +82,10 @@ { "label": "docker model", "root": "/reference/cli/docker/model" + }, + { + "label": "Post-quantum cryptography", + "root": "/reference/post-quantum-cryptography", + "group": "security" } ] diff --git a/layouts/_partials/reference-directory/groups.html b/layouts/_partials/reference-directory/groups.html index f3c058b0146d..2a100353e048 100644 --- a/layouts/_partials/reference-directory/groups.html +++ b/layouts/_partials/reference-directory/groups.html @@ -3,6 +3,7 @@ (dict "id" "cli" "title" "CLI references" "icon" "terminal") (dict "id" "api" "title" "APIs" "icon" "code") (dict "id" "formats" "title" "File formats and build checks" "icon" "file-text") + (dict "id" "security" "title" "Security" "icon" "shield-check") -}} {{- $group := . -}} {{- $items := slice -}} @@ -16,6 +17,9 @@ {{- else if strings.HasPrefix .root "/reference/api/" -}} {{- $kind = "api" -}} {{- end -}} + {{- with .group -}} + {{- $kind = . -}} + {{- end -}} {{- if eq $kind $group.id -}} {{- $root := .root -}} {{- $label := .label -}} From 617e7117c923bc49b5de637bdb6a2e9e5336748f Mon Sep 17 00:00:00 2001 From: Craig Osterhout Date: Fri, 4 Dec 2026 10:05:22 -0800 Subject: [PATCH 2/4] trim advice Signed-off-by: Craig Osterhout --- content/reference/post-quantum-cryptography.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/reference/post-quantum-cryptography.md b/content/reference/post-quantum-cryptography.md index 2f9604a9d39e..dfcdf54db0a5 100644 --- a/content/reference/post-quantum-cryptography.md +++ b/content/reference/post-quantum-cryptography.md @@ -56,7 +56,7 @@ supports it and the other end supports it. | Image | Hybrid key exchange | Details | | --- | --- | --- | -| Images on Debian 13, or Alpine 3.22 or later | Offered by default | These images ship OpenSSL 3.5 or later. Applications that use the system OpenSSL offer hybrid key exchange. Rebuild regularly to get TLS library updates. | +| Images on Debian 13, or Alpine 3.22 or later | Offered by default | These images ship OpenSSL 3.5 or later. Applications that use the system OpenSSL offer hybrid key exchange. | | FIPS variants | Not offered | FIPS variants use the validated OpenSSL 3.1.2 FIPS provider, which doesn't support hybrid key exchange. | ## Check a connection From f160b46d06d7e970fa23549fa05fdc1cbc177275 Mon Sep 17 00:00:00 2001 From: Craig Osterhout Date: Fri, 4 Dec 2026 10:24:28 -0800 Subject: [PATCH 3/4] replace blog placeholder Signed-off-by: Craig Osterhout --- content/reference/post-quantum-cryptography.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/reference/post-quantum-cryptography.md b/content/reference/post-quantum-cryptography.md index dfcdf54db0a5..010c6f087215 100644 --- a/content/reference/post-quantum-cryptography.md +++ b/content/reference/post-quantum-cryptography.md @@ -16,7 +16,7 @@ connections and images you depend on. Docker is extending hybrid key exchange to the remaining endpoints and to Docker Hardened Images FIPS variants. For details, see -[Docker and the move to post-quantum cryptography](https://www.docker.com/blog/xxx). +[Docker and the move to post-quantum cryptography](https://www.docker.com/blog/docker-and-the-move-to-post-quantum-cryptography/). ## Hybrid key exchange From 88732e97b8e69e68db34e1ac70b6521f537b649a Mon Sep 17 00:00:00 2001 From: Craig Osterhout Date: Fri, 4 Dec 2026 11:24:14 -0800 Subject: [PATCH 4/4] use consistent column name Signed-off-by: Craig Osterhout --- content/reference/post-quantum-cryptography.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/reference/post-quantum-cryptography.md b/content/reference/post-quantum-cryptography.md index 010c6f087215..422e006fb79f 100644 --- a/content/reference/post-quantum-cryptography.md +++ b/content/reference/post-quantum-cryptography.md @@ -121,11 +121,11 @@ Hybrid key exchange depends on the library or runtime that makes the TLS connection, not on the image as a whole. Look up the component the application uses: -| Component | Supports `X25519MLKEM768` | +| Component | Hybrid key exchange | | --- | --- | -| OpenSSL | 3.5 and later, on by default | -| OpenSSL FIPS provider 3.1.2 | No | -| Go standard library (`crypto/tls`) | 1.24 and later, on by default | +| OpenSSL | Offered by default in 3.5 and later | +| OpenSSL FIPS provider 3.1.2 | Not offered | +| Go standard library (`crypto/tls`) | Offered by default in 1.24 and later | | Other libraries and runtimes | Check the vendor documentation | An application can bundle its own TLS library instead of using the system