TL;DR: The big tech companies and the federal government all made a statement at the same time, telling us to upgrade to post-quantum cryptography. To protect our customers' money and data, we audited our external connections and cryptography to understand how many of the external APIs we depend on are exposed to this hypothetical quantum threat.
- We rebuilt our infrastructure on Kubernetes so that our services are described in a form that is not specific to AWS, and so that every pod is denied outbound traffic until a policy names the destination. Those policies give us the list of outside endpoints, such as
api.stripe.com, whose cryptography we then probe. - We audited every outbound API connection: 22 of 28 endpoints negotiate a hybrid post-quantum key exchange (PQKE), and six do not.
- We built a comprehensive threat model for those six endpoints to evaluate what each one exposes.
- Rob Joyce, a former NSA Director of Cybersecurity, read the December 2 advisories as "a strategic call to arms" and "not a tactical emergency" (LinkedIn, December 3, 2026): he says there is no break of RSA or of elliptic curves, and the work is to take inventory and get moving, which is what we do in this post.
Takeaway: most endpoints already negotiate PQKE when the client offers it, so check your own clients first and keep a list, by name, of the endpoints that can't yet.
On December 2, 2026, the Office of the National Cyber Director, the National Security Agency (NSA) and the Cybersecurity and Infrastructure Security Agency (CISA) released a joint statement which says that AI companies have disclosed discoveries that affect some cryptography in use, and that these advances do not present an immediate and widespread threat to that cryptography
.
We moved every Functorial site and service from EC2 hosts and Cloudflare Workers into Kubernetes, and on December 3, 2026, we recorded which key exchange each of our connections to other APIs negotiated.
A TLS 1.3 connection starts with a key exchange. Each side sends a public value in the clear, both sides derive the same secret from the two values, and that secret becomes the shared key for the symmetric encryption that protects everything after the exchange. Anyone who can copy the traffic can store all of it today, the two public values and the ciphertext, but can't read it yet. With X25519 or another elliptic-curve exchange, the secret is safe because nobody can compute a discrete logarithm on the curve. In 1994, Peter Shor published an algorithm that computes one efficiently on a large enough quantum computer, but no such machine is public today. If one exists later, its owner takes the recorded public values, recovers the secret and decrypts the recorded ciphertext. That attack is harvest now, decrypt later.
Forward secrecy doesn't help. It stops someone who later steals the server's long-term key from decrypting old sessions, but this attacker never needs that key, because they compute each session's secret directly from the public values in the recording.
Signatures are less urgent, because forging one needs a quantum computer during the connection and a recording does not help. Every certificate our probe saw uses RSA or ECDSA, so we call this work PQKE and make no claim about post-quantum signatures.
NIST standardized the lattice-based key exchange mechanism ML-KEM as FIPS 203 on August 13, 2024. TLS 1.3 deploys it as X25519MLKEM768, a hybrid group in which the client and the server run both X25519 and ML-KEM-768 and derive the secret from both results, so an attacker has to break both. A recording is exposed to whatever breaks its key exchange later, whether a quantum computer or a better classical attack, and a new algorithm can fail against ordinary computers: in July 2022, Wouter Castryck and Thomas Decru recovered keys for SIKE, a candidate in the fourth round of NIST's competition, in about an hour on one classical core.
What moved into the cluster
Before the migration, our backend services ran in Docker Compose on one EC2 host, and our websites ran as Cloudflare Workers. The agent and model we are building will run in this cluster too. Kubernetes is also a system we have studied closely: last month we verified a formal model of its API server's flow control.
Not everything in the new path is in the cluster. CloudFront, its web ACL and its certificates stay at AWS's edge, in front of the cluster. Inside the cluster, Traefik Proxy receives every inbound request and routes it by our Kubernetes Ingress rules. The load balancer in front of Traefik is created by the cluster from a Kubernetes Service and passes TCP through without reading it. The database is RDS, outside the cluster.
The egress policies list the connections to test
To record the key exchange on our outbound connections we first needed a complete list of them. The old host had no such list, because a container there could open a socket to any address. In Kubernetes, a NetworkPolicy states which destinations a pod can reach. We set a default deny in every namespace, so a pod reaches nothing until a policy names the destination, and the egress policies become the list.
The policies already found one connection that the design had missed. The design allowed the Academy's server to reach only DNS and PostgreSQL, and its code also calls Linear's API to file learner feedback, so we now have to decide whether to allow HTTPS from the pod that runs learners' Lean code.
Which connections negotiate a hybrid key exchange
The group a connection negotiates depends on both ends, and either end can change in an upgrade, so we record it on a schedule. We wrote a probe in Rust on rustls that opens a TLS connection to each endpoint, offers X25519MLKEM768 first, and logs the group that the server picks. A shell script runs the same list from a laptop with OpenSSL 3.5. On December 3, 2026, the script and a probe pod in the dev cluster reported the same group for all 28 endpoints.
$ pqc/check.sh # OpenSSL 3.5.9, 2026-12-03T19:05Z
WAIVED bedrock-runtime.us-east-1.amazonaws.com:443 TLSv1.3 X25519 rsa_pss_rsae_sha256
PQ-HYBRID secretsmanager.us-east-1.amazonaws.com:443 TLSv1.3 X25519MLKEM768 rsa_pss_rsae_sha256
PQ-HYBRID academy.functorial.inc:443 TLSv1.3 X25519MLKEM768 rsa_pss_rsae_sha256
FAIL: 6 endpoint(s) without a post-quantum key exchange (PQC_STRICT=1)
| Endpoint | Group | Used by | |
|---|---|---|---|
| classical | Bedrock runtime, us-east-1 | X25519 | a workload in the cluster |
| classical | SES, us-east-1 | X25519 | gateway, the Academy's digest |
| classical | api.stripe.com | X25519 | gateway, Faithful |
| classical | github.com, api.github.com | X25519 | Faithful |
| classical | lakecache.blob.core.windows.net, the Mathlib cache | secp384r1 | Faithful |
| hybrid | Secrets Manager, STS, S3, CloudWatch, us-east-1 | X25519MLKEM768 | secrets, credentials, backups, metrics |
| hybrid | ECR (API and registry), EKS Auth | X25519MLKEM768 | the node: image pulls, pod identity |
| hybrid | api.linear.app | X25519MLKEM768 | the Academy |
| hybrid | arxiv.org, export.arxiv.org | X25519MLKEM768 | Faithful |
| hybrid | releases.lean-lang.org, raw.githubusercontent.com, release-assets.githubusercontent.com | X25519MLKEM768 | Lean toolchain downloads |
| hybrid | functorial.inc, www, apps, agent (on Cloudflare on that date) | X25519MLKEM768 | viewers |
| hybrid | academy, faithful, id, payments (on CloudFront on that date) | X25519MLKEM768 | viewers |
| hybrid | the Kubernetes API server in the dev cluster | X25519MLKEM768 | every pod |
When we offered only hybrid groups, Stripe and GitHub answered with a handshake failure, and the Bedrock runtime completed no TLS 1.3 handshake. The Bedrock runtime also picked X25519 in us-west-2, us-east-2 and eu-west-1 and on both FIPS endpoints.
One more hop is classical according to AWS's documentation, but we could not observe that handshake. CloudFront now connects to Traefik over HTTPS, and Traefik offers the hybrid by default, but CloudFront's documentation lists only classical groups for connections to an origin. Traefik's certificates come from Let's Encrypt, requested by cert-manager in the cluster, and that adds one outbound connection, to Let's Encrypt's API, which negotiated X25519. Counting those two hops, and counting GitHub's two hostnames as one, seven hops lack PQKE.
In the cluster the probe runs as a CronJob every six hours. Each line of its list says require or waived with a date. The probe still connects to a waived endpoint and prints its group, but the job fails only when a required endpoint stops negotiating the hybrid. When a waived endpoint starts negotiating the hybrid, the probe prints UPGRADED and we delete the waiver.
In staging the probe's list has 38 endpoints, and its last run reported 31 hybrid and 7 waived: the same 6 and Let's Encrypt's API. The other new lines are the RDS instance, the cluster's public API endpoint and the seven staging hostnames at CloudFront, and each negotiated TLS 1.3 with X25519MLKEM768. Against a Traefik pod, openssl s_client negotiated X25519MLKEM768 by default, but Traefik also accepted a client that offered only X25519 or only TLS 1.2, so it prefers the hybrid and does not enforce it.
Threat model
A classical handshake matters only if harvest now, decrypt later would hurt, and that attack needs someone recording the link, a secret in the recording that still matters when a quantum computer exists, and the computer. The gateway, for example, emails a sign-in code that expires in ten minutes and works once, so an attacker who decrypts that exchange in 2040 holds a code that stopped working fourteen years earlier. For each hop we asked which credentials cross it and when they expire, what content crosses it and how long that content stays sensitive, and where the wire runs.
| Connection | Credentials on the wire | Content | Where the wire runs | Verdict |
|---|---|---|---|---|
| A pod to the Bedrock runtime | A request signature good for minutes and a session token good for hours. The client never sends the signing key itself. | Request and response bodies. | Inside AWS's network, same Region. | we waive it by name See below. |
| Gateway and Academy to SES | The same signature scheme. | Addresses, ten-minute sign-in codes, thirty-minute reset links, a weekly digest. | Inside AWS's network. The email then crosses the internet by SMTP, which was never ours to secure. | no reasonable threat |
| Gateway and Faithful to Stripe | A secret API key with no expiry. | An email address, a customer id, a subscription state. No card numbers: Stripe hosts the checkout page. | The public internet. | rotate the key See below. |
| Faithful to GitHub, HTTPS | A user's access token, with whatever expiry the user chose. | Private repositories, which can hold an unpublished paper. | The public internet. | move it To SSH. See below. |
| Faithful to the Mathlib cache | None. | Public build artifacts, the same bytes for everyone. | The public internet. | nothing to harvest |
| cert-manager to Let's Encrypt | None. Requests are signed with an account key that is never sent. | Certificate requests and certificates, which go into public logs. | The public internet. | nothing to harvest |
| CloudFront to Traefik | Session cookies, good for twelve hours. | Everything a user sends us. | Inside AWS's network, through a VPC origin. The leg from the browser to CloudFront, which does cross the internet, negotiates the hybrid. | we accept it |
Bedrock runtime
The Bedrock runtime is an AWS API endpoint that completes TLS 1.3 with a classical key exchange and offered no hybrid group on December 3. AWS authenticates requests with Signature Version 4, so the secret key never crosses the wire. A recording contains an HMAC over the request, which AWS accepts for a few minutes, and a session token from Pod Identity that expires within hours. The cluster and the endpoint are in the same Region, and AWS states that traffic between an instance and a public AWS service endpoint stays on AWS's own network, so a recorder would have to be inside that network. We waive this hop by name, but the probe still records its group on every run.
Stripe
The content on this hop is an email address, a customer id and a subscription state, and card numbers never reach us because Stripe hosts the checkout page. The risk is around the credential, because every request carries our secret API key as a bearer token and the key has no expiry, so a key in a recording works until we replace it. The fix is to rotate the key on a short schedule, because the longer a key stays valid, the more likely an attacker with a quantum computer recovers it from a recording while it still works.
GitHub
GitHub's SSH endpoint negotiated mlkem768x25519-sha256 on the same day, so we decided to move Faithful's git traffic from HTTPS to SSH, and that change remains. An access token can't authenticate an SSH connection, so linking a private repository needs a deploy key.
What remains
Our goal from the start was straightforward: cut through the noise around quantum and AI-driven threats to make sure our customers' data and money are protected, without guessing which external dependencies we rely on. By moving Functorial onto Kubernetes with default-deny egress policies and an automated TLS probe, we turned an opaque web of outbound traffic into an auditable inventory. That inventory confirms that 22 of our 28 external endpoints already negotiate hybrid post-quantum key exchange, and it isolates the remaining classical hops for targeted mitigation.
For the seven classical hops still on our waiver list (AWS Bedrock and SES, Stripe, GitHub over HTTPS, the Mathlib cache, Let's Encrypt, and CloudFront's origin leg), our automated probe will alert us with an UPGRADED flag the moment any upstream provider enables hybrid PQKE. In the meantime, our remaining engineering work is concrete and well-scoped: moving Faithful's Git operations over to SSH (which already supports hybrid PQKE), putting our Stripe API key on a strict rotation schedule so no credential outlives its usefulness, and enabling hybrid ML-KEM TLS from the Academy and Faithful directly to our database.