Vendor: Caddy project · https://caddyserver.com/ · pkg:golang/github.com/caddyserver/caddy/v2 · Last reviewed 2026-12-05 · History
Summary
- Written in Go on
crypto/tls: for clients connecting to Caddy, the hybrid group X25519MLKEM768 is default in TLS 1.3 from 2.10.0 (“Caddy now supports the standardizedx25519mlkem768cryptographic group by default”).1 - Upstream connections (
reverse_proxy): withtls_curvesunset, Go’s default applies, which includes X25519MLKEM768 from Go 1.24 (derived from source and Go’s documentation).234 - Classical groups can be disabled by the administrator with
curvesin thetlsdirective andtls_curvesin thereverse_proxyHTTP transport.56 - SecP256r1MLKEM768 and SecP384r1MLKEM1024 are not accepted as
curvesvalues; a request is open (checked 2026-12-05).7 - Certificates Caddy obtains:
key_typeacceptsed25519,p256,p384,rsa2048andrsa4096; no ML-DSA value is documented (checked 2026-12-05).5
To require the hybrid group, set
curves x25519mlkem768in thetlsdirective andtls_curves x25519mlkem768in thereverse_proxytransport.56
Cryptographic operations
- Client connections (Caddy is the TLS server): with no curves configured,
cfg.CurvePreferences = defaultCurves;2 in 2.10.0 that istls.X25519MLKEM768,tls.X25519,tls.CurveP256.3 Key agreement is hybrid if the client offers X25519MLKEM768, otherwise classical (X25519 or P-256). - The
tlsdirective’scurvesoption “specifies the list of EC groups to support. It is recommended to not change the defaults.” Values:x25519mlkem768(labelled “(PQC)”),x25519,secp256r1,secp384r1,secp521r1.5 - An issue opened 2026-12-03 asking for X25519MLKEM768 support was closed within hours after a reader pointed out that the map in
values.goalready includes it.7 - Upstream connections (Caddy is the TLS client):
tls_curves“is a list of elliptic curves to support for the upstream connection”, same five values; “an unknown name is a configuration error”.6 Curve preferences are set only whenCurvesis non-empty, so unset leaves Go’s client default.4 Go: “From Go 1.24, the default includes the X25519MLKEM768 hybrid post-quantum key exchange. To disable it, set CurvePreferences explicitly or use the GODEBUG=tlsmlkem=0 environment variable.”8 - Certificates: ACME certificates use
key_type; authentication is classical.5
Versions
| Change | Version | Package URL | Source |
|---|---|---|---|
Pre-standard X25519Kyber768Draft00 behind a build tag |
v2.7.5, 2023-10-11 | pkg:golang/github.com/caddyserver/caddy/v2@v2.7.5 |
9 |
tls_curves on reverse_proxy HTTP transport: “TLS curves can now be configured (potential preparation for post-quantum)” |
v2.8.0, 2024-05-29 | pkg:golang/github.com/caddyserver/caddy/v2@v2.8.0 |
10 |
x25519mlkem768 default; builds on Go 1.24 |
v2.10.0, 2025-04-18 | pkg:golang/github.com/caddyserver/caddy/v2@v2.10.0 |
111 |
| Go 1.26 is the minimum version to build | v2.11.6, 2026-10-01 | pkg:golang/github.com/caddyserver/caddy/v2@v2.11.6 |
12 |
Unknown curves names become configuration errors; release builds use Go 1.27 |
v2.11.8, 2026-11-04 | pkg:golang/github.com/caddyserver/caddy/v2@v2.11.8 |
13 |
Configuration
- Enable: nothing on v2.10.0 or later; setting
curvesreplaces the default, so include the group:5
tls {
curves x25519mlkem768 x25519 secp256r1
}
- Disable classical (clients and upstreams not offering X25519MLKEM768 cannot handshake; the hybrid is the only post-quantum name accepted, checked 2026-12-05):567
tls {
curves x25519mlkem768
}
reverse_proxy backend:443 {
transport http {
tls
tls_curves x25519mlkem768
}
}
Open work
- Issue 8496 (2026-12-03): add
secp256r1mlkem768andsecp384r1mlkem1024; pull request 8497 is “waiting for review”.7 - Issue 8065 (2026-09-25) asks for a
{http.request.tls.curve}placeholder; pull request 8407 is open; a commenter says an earlier change “was approved for v2.12.0”.1415 - Go’s TLS 1.3 cipher suite list is not configurable; a maintainer: “is not something Caddy can fix on its own”.7
Distributions
Checked 2026-12-05.
| Image | Caddy | Built on | Source |
|---|---|---|---|
Docker official caddy:2.11-alpine |
v2.11.9 | alpine:3.24; downloads the upstream release binary and verifies its checksum |
16 |
| Docker builder image | v2.11.9 | golang:1.27-alpine3.24 with xcaddy |
17 |
The binary is statically built Go; Alpine’s OpenSSL is not involved in its TLS. Release builds use Go 1.27 from v2.11.8.13
References
-
Caddy v2.10.0 release notes, 2025-04-18. https://github.com/caddyserver/caddy/releases/tag/v2.10.0 (accessed 2026-12-05) ↩ ↩2
-
caddyserver/caddy,
modules/caddytls/connpolicy.goat commit 172136a (commit “caddytls: Support post-quantum key exchange mechanism X25519MLKEM768”). https://github.com/caddyserver/caddy/blob/172136a0a0f6aa47be4eab3727fa2482d7af6617/modules/caddytls/connpolicy.go (accessed 2026-12-05) ↩ ↩2 -
caddyserver/caddy,
modules/caddytls/values.goat tag v2.10.0. https://github.com/caddyserver/caddy/blob/v2.10.0/modules/caddytls/values.go (accessed 2026-12-05) ↩ ↩2 -
caddyserver/caddy,
modules/caddyhttp/reverseproxy/httptransport.goat commit 172136a. https://github.com/caddyserver/caddy/blob/172136a0a0f6aa47be4eab3727fa2482d7af6617/modules/caddyhttp/reverseproxy/httptransport.go (accessed 2026-12-05) ↩ ↩2 -
Caddy documentation, tls directive. https://caddyserver.com/docs/caddyfile/directives/tls (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
-
Caddy documentation, reverse_proxy directive. https://caddyserver.com/docs/caddyfile/directives/reverse_proxy (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4
-
caddyserver/caddy issue 8496, caddytls: add secp256r1mlkem768 and secp384r1mlkem1024 curve names, 2026-12-03; and issue 8494, Support post-quantum algorithms, 2026-12-03. https://github.com/caddyserver/caddy/issues/8496 and https://github.com/caddyserver/caddy/issues/8494 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5
-
Go documentation,
GODEBUGhistory: “Go 1.24 enabled the post-quantum key exchange mechanism X25519MLKEM768 by default. The default can be reverted using the tlsmlkem setting.” https://go.dev/doc/godebug (accessed 2026-12-05) ↩ -
Caddy v2.7.5 release notes, 2023-10-11. https://github.com/caddyserver/caddy/releases/tag/v2.7.5 (accessed 2026-12-05) ↩
-
Caddy v2.8.0 release notes, 2024-05-29. https://github.com/caddyserver/caddy/releases/tag/v2.8.0 (accessed 2026-12-05) ↩
-
caddyserver/caddy,
go.modat tag v2.10.0. https://raw.githubusercontent.com/caddyserver/caddy/v2.10.0/go.mod (accessed 2026-12-05) ↩ -
Caddy v2.11.6 release notes, 2026-10-01. https://github.com/caddyserver/caddy/releases/tag/v2.11.6 (accessed 2026-12-05) ↩
-
Caddy v2.11.8 release notes, 2026-11-04. https://github.com/caddyserver/caddy/releases/tag/v2.11.8 (accessed 2026-12-05) ↩ ↩2
-
caddyserver/caddy issue 8065, Expose the negotiated TLS key exchange (curve) as a placeholder and access-log field, 2026-09-25. https://github.com/caddyserver/caddy/issues/8065 (accessed 2026-12-05) ↩
-
caddyserver/caddy pull request 8407, caddyhttp: expose negotiated TLS curve as placeholder and log field. https://github.com/caddyserver/caddy/pull/8407 (accessed 2026-12-05) ↩
-
caddyserver/caddy-docker,
2.11/alpine/Dockerfileat commit 366249a. https://github.com/caddyserver/caddy-docker/blob/366249a1b454ae9a22a58e864e47e8fbc19a9586/2.11/alpine/Dockerfile (accessed 2026-12-05) ↩ -
caddyserver/caddy-docker,
2.11/builder/Dockerfileat commit 366249a. https://github.com/caddyserver/caddy-docker/blob/366249a1b454ae9a22a58e864e47e8fbc19a9586/2.11/builder/Dockerfile (accessed 2026-12-05) ↩