http4k and Post-Quantum Cryptography
Last updated: 4 December 2026
This page states what http4k does about post-quantum cryptography. It is kept current, and the date above changes when it does. It covers http4k versions 6.67.0.0-ee and above.
Summary#
- http4k implements no cryptography itself. It names algorithms, and the JDK or a provider that you configure runs them.
- TLS comes from the JDK that you run. http4k names no TLS provider and restricts no key exchange groups, so your JDK’s post-quantum hybrid key exchange works with http4k as it is.
- JSON Web Key Sets read and publish ML-DSA public keys (RFC 9964) by default, so post-quantum JWT signing keys work with http4k without configuration.
- Where supported by the server, http4k backends accept 32KB of request headers by default, enough for ML-DSA signed tokens and DPoP proofs.
- Each http4k module published to maven.http4k.org has a signed CycloneDX cryptography bill of materials (CBOM).
TLS#
Where http4k sets up TLS itself (Jetty’s http2()), it uses the JDK’s TLS. Every other server and client uses the TLS that you configure, or that ends at your
load balancer or ingress.
Post-quantum key exchange in TLS is a property of your JDK. For example, JDK 27 prefers the hybrid X25519MLKEM768 by default
(JEP 527).
Cryptography bill of materials#
For http4k Enterprise Edition (EE) and Long Term Support (LTS) releases, each module’s CBOM lists the algorithms and protocols that the module’s own code picks. It is empty for a module that uses no cryptography. It does not list the algorithms that you configure, or that a TLS peer negotiates: those belong in your own operations bill of materials (OBOM). See Supply chain security.
Release signing#
http4k Enterprise Edition (EE) and Long Term Support (LTS) releases are signed with an ECDSA P-256 cosign key, and with PGP on Maven Central. We will add an ML-DSA signing key when cosign supports ML-DSA in a stable release.
Questions#
Information on http4k Enterprise Edition can be found on the website.
- Community Slack: http4k on Kotlin Slack
- Commercial: [email protected]
