Post-Quantum Identity: Migrating Passkeys and JWTs to ML-DSA

Enterprise security roadmaps through November 2026 upgrading WebAuthn passkeys, OAuth tokens, and long-lived code-signing roots to NIST FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) expose an uncomfortable architectural flaw in modern web authentication: quantum-safe digital signatures blow right past HTTP cookie and header size ceilings. Replacing compact 64-byte elliptic-curve stamps with multi-kilobyte lattice signatures forces IAM architects to shrink token wire payloads back toward compact reference sessions.
Most corporate cryptography updates focus heavily on session encryption first because attackers can record encrypted TLS web traffic today and crack it years later once strong quantum computers mature. Digital signatures face a trickier timing trap: while an attacker needs an active quantum machine in real time to forge a login assertion or binary signature, organizations anchor root certificates, hardware FIDO2 authenticators, and firmware signing hierarchies for ten to twenty years ahead. Waiting until the last minute guarantees broken hardware rollouts across fleets.
Why ML-DSA breaks standard browser cookies and gateways
Classical authentication tokens rely on tiny signatures produced by Ed25519 or ECDSA P-256, which fit comfortably inside 64 bytes alongside short claims inside stateless JSON Web Tokens (JWTs) or browser session cookies. Moving to quantum-resistant signature standards registered inside IANA's updated COSE tables and IETF drafts (draft-vitap-ml-dsa-webauthn alongside JOSE/COSE profiles) inflates byte payloads dramatically.
An ML-DSA-65 signature alone weighs roughly 3,309 bytes, while stateless hash-based SLH-DSA spans roughly 8KB to 49KB depending on parameter choices. Dropping one ML-DSA signature plus an intermediate X.509 certificate chain straight into a browser Set-Cookie header pushes past standard 4KB cookie limits instantly and trips strict 8KB HTTP header buffers on edge Nginx, Envoy, and AWS load balancers, mirroring wire-geometry friction seen in ML-KEM packet fragmentation across corporate firewalls.
| Identity signature scheme | Approx. signature size | Browser cookie and proxy impact | Best production deployment tier |
|---|---|---|---|
Classical Ed25519 / ECDSA P-256 | 64 bytes | Fits tiny stateless JWT headers effortlessly | Current web sessions prior to quantum cutover |
Lattice ML-DSA-65 (FIPS 204) | ~3.3 kilobytes | Exceeds 4KB cookie caps when paired with claims or certs | Interactive auth, enterprise PKI, and compact COSE sessions |
Stateless hash SLH-DSA (FIPS 205) | ~8KB to 49KB | Too large for routine HTTP bearer headers | Rare offline firmware roots and long-lived CA anchors |
Fixing JWT bloat with opaque reference tokens and COSE
Identity engineers avoid silent HTTP 431 Request Header Fields Too Large outages by changing token mechanics at application borders before hardware security keys turn over. Rather than cramming full ML-DSA signed JSON user claims onto every API browser call, enterprise API gateways terminate heavy post-quantum verification once at identity login edges, store session state centrally in fast in-memory stores like Valkey or Redis clusters, and pass compact opaque session handles downstream.
Where microservices still require signed assertions internally across service meshes, moving away from verbose Base64 URL-encoded JSON toward binary CBOR Object Signing and Encryption (COSE) recovers critical header headroom while keeping WebAuthn attestation validation uniform across modern libraries such as Keycloak, SimpleWebAuthn, and webauthn4j. Combining slim token transports with workload identity federation eliminates bloated static keys across internal automation cleanly.
Staging hardware passkey and CA root migrations safely
Practical IAM directors break the transition into three realistic horizons rather than replacing user hardware overnight. First, inventory every fixed-width SQL signature column (VARCHAR(256)) and gateway header check during automated CBOM readiness audits so oversized quantum certificates never crash billing databases silently.
Second, upgrade long-lived internal code-signing roots and firmware verification authorities onto conservative SLH-DSA or ML-DSA-87 anchors early, since hardware shipped into factory devices this year stays deployed for decades. Third, enable WebAuthn algorithm agility across relying-party servers today so roaming corporate FIDO2 passkeys negotiate quantum-safe verification automatically as operating systems and browser secure enclaves roll hardware support steadily across employee laptops. Testing browser hardware tokens alongside reverse proxy header limits in staging catches silent authentication truncation months before production cutover windows open. Separating fast opaque web tokens from resilient cryptographic roots preserves crisp login latency while future-proofing enterprise identity infrastructure.
Sources
- NIST FIPS 204: Module-Lattice-Based Digital Signature Standard (
ML-DSA): National Institute of Standards and Technology, 2024 to 2026 - NIST FIPS 205: Stateless Hash-Based Digital Signature Standard (
SLH-DSA): National Institute of Standards and Technology, 2024 to 2026 - IETF Post-Quantum WebAuthn and COSE Algorithm Drafts: Internet Engineering Task Force, 2026



