Post-quantum readiness
Post-quantum readiness
Which parts of a WarpKit app rely on RSA, elliptic curves or Diffie-Hellman, which do not, and what an operator does about each.
Last reviewed 2026-12-03. Rewrite this page when the facts change; do not append to it.
Why this page exists
On 2026-12-02 the NSA told operators of national security systems to speed up their move to post-quantum cryptography, after AI companies disclosed discoveries that affect some cryptography in use today. A joint statement from the NSA, CISA and ONCD says those advances "do not present an immediate and widespread threat" to current cryptography. No public result has shown RSA-2048 or the elliptic curves in common use broken.
The risk that matters now is "record today, decrypt later": traffic or files protected by RSA or elliptic-curve keys can be stored now and read once a practical break exists. Symmetric encryption (AES-256, ChaCha20) and HMAC are not affected the same way.
Not affected: symmetric and hash-based
Nothing here needs a change.
| What | Primitive |
|---|---|
| Session cookies (better-auth) | HMAC-SHA256 with BETTER_AUTH_SECRET |
Values better-auth encrypts with BETTER_AUTH_SECRET | Symmetric |
| Stripe webhook signatures | HMAC-SHA256 |
Unsubscribe tokens (src/lib/unsubscribe-token.server.ts) | HMAC-SHA256 |
| Hashes (trial abuse, load test fixtures) | SHA-256 |
| Random tokens (temp passwords, IndexNow key) | randomBytes |
The app code has no RSA, ECDSA, ECDH or Ed25519 call, no JWT signing, no
key or certificate file in the repository, and no dependency such as
jose, jsonwebtoken, node-forge or ssh2. No SHA-1, MD5 or AES-128
is used.
Affected: asymmetric
The operator vault
vault/.env.operator is encrypted with dotenvx,
which wraps an AES-256-GCM key with secp256k1 (ECIES). The file is
committed, and git keeps every old copy. Anyone with a clone could decrypt
it once secp256k1 is practically broken.
- Keep any repository holding a vault private.
- If an elliptic-curve break becomes practical, rotate every secret in the vault. Re-encrypting does not help: the old ciphertext stays in git history.
- Revisit the vault's encryption when dotenvx ships a post-quantum mode, when a break is shown publicly, or before a vault repository is made public or shared beyond its operators.
Details of the vault itself: operator-vault.md.
SSH to servers
Deploys and the vault's ssh: sources go over SSH.
- Key exchange: OpenSSH 10.0 and later use the hybrid
mlkem768x25519-sha256by default, which protects recorded sessions. Runssh -Von the laptop and on every server; upgrade anything older. - Host and user keys (Ed25519, RSA) only sign the login. They are not a "decrypt later" risk; replace them once OpenSSH supports post-quantum signature keys.
TLS
- Browser to CDN: Cloudflare already negotiates hybrid post-quantum key exchange (X25519MLKEM768) with current browsers.
- CDN to origin: turn on post-quantum key exchange to the origin in Cloudflare, or reach the origin through Cloudflare Tunnel.
- Outbound HTTPS from the server (Stripe, Resend, S3, OAuth providers): the runtime's TLS library. Keep Bun current.
Outside the repository
The provider owns the migration: Stripe, Google and GitHub OAuth, Resend, S3, the certificate authority behind the site's TLS certificate, and any KMS. Follow their announcements; there is nothing to change in the app.
Checklist
ssh -Vis 10.0 or later on the laptop and every server.- Post-quantum key exchange to the origin is on in Cloudflare.
- Every repository holding a vault is private.
- Bun, the OS and the browser are on current versions.
- If a practical RSA or elliptic-curve break is announced: rotate the
vault's secrets, then
BETTER_AUTH_SECRETand API keys that crossed the network, then SSH keys.
Replacements, when libraries ship them: ML-KEM (FIPS 203) for key exchange and encryption, ML-DSA (FIPS 204) for signatures.