Why now

On December 2, 2026, ONCD, the NSA and CISA put out a joint statement urging developers to speed up the move to post-quantum cryptography (PQC). It said frontier AI models have made discoveries that affect some cryptography in use, without naming the algorithms. There was a lot of blind guessing on X that day, following the frontier labs' own statements, so I assumed the worst: RSA and elliptic curves are broken, and lattice schemes are unproven until shown otherwise.

Out with the old, in with the new

Here's what changed in dotwire 0.7. If you're moving to NIST-standard PQC, most of it carries over to your own app:

  • RS256 is gone. Tokens are signed with SLH-DSA-SHA2-256s (FIPS 205), whose security rests only on SHA-2. The smaller 128s variant is there for deployments behind an L7 edge.
  • No more relying on curves alone. Every TLS connection dotwire accepts or makes uses TLS 1.3 with the hybrid X25519MLKEM768 key exchange and nothing else. A peer that can't negotiate it is refused, with no classical fallback.
  • dotwire terminates TLS itself, so any proxy in front of it must be TCP passthrough. A passthrough proxy can't see URL paths, so a multinode deployment now routes each role by hostname (TLS SNI) instead of by path.
  • New platform floor. SLH-DSA needs OpenSSL 3.5 or later, which ships with Ubuntu 26.04 and the dotwire image. .NET on macOS and Windows has no SLH-DSA, so the .NET host SDK runs in Docker there. The Node host SDK, @dotwire/host, needs Node 24.8 or later, the first release with SLH-DSA in node:crypto.
  • Webhooks are sealed, not signed. Bodies are AES-256-GCM envelopes, so they stay confidential even if the TLS hop underneath is broken.

All of this is a lot to set up on a laptop, so dotwire keeps a Development mode that allows plain HTTP on loopback. Outside Development, it refuses to start without TLS everywhere.

Larger headers

A 256s token is about 40 KB and a 128s token about 11 KB, while an RS256 JWT is usually under 1 KB. Your proxies might not like that. I raised Kestrel's header limits to 64 KiB, and you may have to do the same in nginx or whatever sits in front of your app.

For the same reason, sending over the open hub connection is now the default, so the token crosses the wire once per connection instead of once per message.

40 KB and about 0.3 s of signing is a lot for a token. It buys a token that nobody, dotwire included, can forge without your key, and that stays unforgeable even if RSA and elliptic curves fall. A forged token is full access as any user, so dotwire rules that out by default.

Use 256s for the strongest option, NIST security level 5. Pick 128s, level 1, only when an L7 edge forces smaller tokens.

Tips for your own migration

  • List every public-key operation first. Token signatures, key fetching (JWKS), webhook signatures, TLS to clients, TLS to your database and message broker. Symmetric pieces (AES-256, SHA-256, HMAC) can stay as they are.
  • Check every TLS peer before the cutover. Each one must speak X25519MLKEM768. For dotwire that meant PostgreSQL 18 with ssl_groups, and NATS with curve_preferences. macOS's system curl uses LibreSSL and can't connect, so use Homebrew's curl or run it in a container.
  • Measure tokens against every hop. Cloudflare caps URLs at 16 KB, and AWS ALB and nginx in http mode have similar limits. Either make the proxy TCP passthrough or use the 128s variant and accept that the edge sees plaintext.
  • Cache tokens, never mint per request. Signing a 256s token takes 0.23–0.40 s of CPU. Cache each user's token and refresh it about a minute before it expires.
  • Drop key fetching. A JWKS URL is fetched over TLS, so a forged certificate for that host lets an attacker inject a key. Put the verification keys in config.
  • Keep token lifetimes short. TLS server certificates are still elliptic curves, so a forged one could let someone on the network path copy a token in transit. 15 minutes or less limits the damage.
  • Plan downtime and a rollback. Old and new nodes can't talk to each other, so there's no rolling upgrade. Back up the database before any major-version upgrade, and keep the old keys and configs until the new setup is proven.
  • Protect internal links with a preshared key. If X25519 and ML-KEM both fall, WireGuard with a PresharedKey keeps links between your servers confidential, because the preshared key is symmetric. WireGuard without one is plain Curve25519 and doesn't help.