Run a server
Post-quantum encryption
What a server's connections are encrypted with, which of them are safe from a quantum computer already, which are not yet, and how to check them.
Why now
A connection over TLS begins by agreeing a key, and the rest of it is encrypted with that key. The ways of agreeing keys that the web has used until now, elliptic curves and RSA, would be broken by a large enough quantum computer. None exists yet. But traffic recorded today can be kept, and read on the day one does: "harvest now, decrypt later". Posts that were meant for followers only, direct messages, sign-in codes and session cookies would all be in that traffic.
So the key agreement is what matters first. X25519MLKEM768 does both
at once: X25519, the elliptic curve in use everywhere, and ML-KEM-768, the
key encapsulation standardised by NIST in 2024 (FIPS 203). The connection is
safe if either one holds. Browsers, Go, OpenSSL 3.5 and Erlang 28 offer it
first.
What is encrypted with the agreed key, AES-GCM or ChaCha20-Poly1305, needs no change: a quantum computer weakens it far less, and 128-bit keys or more remain enough.
What is post-quantum today
| Connection | Key agreement | Where it is set |
|---|---|---|
| A browser or an app to the server | X25519MLKEM768, with Traefik v3 or any ingress built on Go 1.24 or later, or on OpenSSL 3.5 |
The ingress controller (Deploying) |
| One service to another, over gRPC | X25519MLKEM768, both sides Go; each side shows a certificate |
GRPC_TLS (Internal calls) |
| The services to RabbitMQ | X25519MLKEM768, offered first by RabbitMQ 4.4 on Erlang 29 and OpenSSL 3.5 |
AMQP_TLS (TLS to RabbitMQ) |
| The services to Valkey | X25519MLKEM768, with OpenSSL 3.5 in the valkey image; a managed Valkey, as its provider offers |
VALKEY_TLS (TLS to Valkey) |
| The server to other servers, for federation | X25519MLKEM768 when the other server offers it; otherwise what it offers |
Nothing: the services' Go offers it first |
What is not yet
| Connection | Today | When |
|---|---|---|
| The services to MySQL | TLS, with P-256. MySQL 9.6 chooses its own key exchanges, and offers no post-quantum one | MySQL 26.x, whose tls_kex lets the server choose X25519MLKEM768; the services offer it already |
| The services to Garage, in the cluster | Plain text (http://garage:3900): the files people upload |
Not planned: see below. A store of one's own, as S3, is reached over https:// |
Garage's S3 API has no TLS of its own; it would need a proxy in front of it, one more piece to run. It runs only in the recipes on one server, where the traffic between the services and Garage never leaves the machine, so there is nothing to encrypt.
A cluster of several machines is different: whatever is not encrypted
crosses the network between them. Encrypt that network as a whole, which
covers Garage and anything else at once: k3s's WireGuard backend
(--flannel-backend=wireguard-native) or a service mesh such as Linkerd.
WireGuard's own key exchange is classical, X25519, unless a pre-shared key
is added to it.
Signatures and certificates
Signatures prove who is speaking. A quantum computer could forge one only once it exists: a signature made today cannot be broken later in a way that matters, as a recorded key exchange can. They are all classical for now, and will change with the standards around them.
The fediverse is ready for the change on this side (Signing keys and signed requests): a request signed with RFC 9421 (HTTP Message Signatures) is read with an RSA, ECDSA, Ed25519 or ML-DSA-44 key, post-quantum (FIPS 204), as other servers publish them; and each profile here publishes an ML-DSA-44 key of its own beside its RSA key, as a Multikey.
| What is signed | With | Waiting for |
|---|---|---|
| The server's public certificate | RSA or ECDSA, from Let's Encrypt | Let's Encrypt's post-quantum certificates, ML-DSA, planned for 2027 |
| The certificates between the services, MySQL and RabbitMQ | ECDSA P-256, from the installation's own authority (cert-manager) | ML-DSA in cert-manager, in alpha since v1.22 |
| Sign-in tokens (OAuth) | RS256 | A post-quantum JWT algorithm, still a draft |
| What is sent to the fediverse (HTTP signatures) | RSA-2048, each profile its own key; draft-cavage, and RFC 9421 to a server that asks for it | Other servers reading ML-DSA-44 signatures, before Anahita signs with the ML-DSA-44 key each profile already publishes |
| What is sent to Bluesky | P-256 or secp256k1, as AT Protocol requires | AT Protocol itself |
Checking a connection
With OpenSSL 3.5 or later, the key agreed is on the line
Negotiated TLS1.3 group:
echo | openssl s_client -connect api.example.org:443 -servername api.example.org 2>/dev/null | grep -E 'Negotiated|Protocol'
X25519MLKEM768 is post-quantum; X25519 or P-256 is not. Inside a
cluster, the RabbitMQ image has OpenSSL 3.5 itself:
kubectl --kubeconfig ~/.kube/<your-site>.yaml -n anahita exec rabbitmq-0 -- sh -c \
'echo | openssl s_client -connect rabbitmq:5671 -CAfile /run/secrets/rabbitmq/ca.crt 2>&1 | grep Negotiated'
In a browser, the connection's details say it too: in Chrome, the Security panel of the developer tools.
The services' own tests check the gRPC handshake
(anahita-libs/grpctls, TestTheKeyIsAgreedWithMLKEM).
Turning it off
There is no reason to, and nothing to set. A client or server that does not
know X25519MLKEM768 agrees a classical key instead, so nothing breaks. A
middlebox that cannot read the larger first message of the handshake is
the one case known; GODEBUG=tlsmlkem=0 in a service's environment makes
its Go offer classical keys alone.
Where it is set
| Piece | File |
|---|---|
| gRPC between the services | anahita-libs/grpctls |
| TLS to MySQL | anahita-libs/data/tls.go, k8s/components/mysql/mysql-tls.yml |
| TLS to RabbitMQ | anahita-libs/event/tls.go, k8s/components/rabbitmq/rabbitmq-tls.yml |
| The installation's authority | k8s/base/grpc-tls.yml |
| Why and how it was built | TLS to MySQL and RabbitMQ (opens in a new tab) (roadmap row 194) |
From anahitasocial/anahita-services, 2026-12-05.
Written by Claude, reviewed by Rastin Mehr · About this