Skip to content

Post-quantum cryptography and your Supabase project: what to do, and what not to do

·

18 minute read

The December 2 joint statement on cryptography does not require immediate changes to your Supabase project. The agencies are urging a faster move to post-quantum cryptography. They say the discoveries behind it do not present an immediate and widespread threat, and nothing in the statement changes how your project works today.

We take the statement seriously, and this work was underway before the statement was published. Here is what it means for your Supabase project, what's already protected, what we're doing, what we can't change alone, and what you can do now so the changes ahead are routine.

What happened

On December 2, the Office of the National Cyber Director, NSA, and CISA issued a joint statement saying that recent discoveries by U.S. AI developers "impact the security of some cryptography currently in use," and urging organizations to move faster to post-quantum algorithms. The statement doesn't name an algorithm. Eight large technology companies, including Amazon, Apple, Cloudflare, Google, and Microsoft, publicly backed the guidance the same day.

The replacement algorithms already exist. In August 2024, NIST published standards for ML-KEM, which establishes encryption keys, and ML-DSA, which signs and verifies data. Browsers, runtimes, and CDNs have been adopting them since. In October 2026 NIST finalized its transition plan, which deprecates today's elliptic-curve and RSA algorithms (including P-256, which signs Supabase Auth tokens by default) after 2030.

What this means for your project

For your project there are two questions these algorithms answer: how your connection to Supabase stays private, and how your app can trust that a token really came from Supabase Auth. We're working on both, in that order. First and foremost, keep your Supabase components up to date.

WhereTodayWhat we're doingWhat you can do
Project APIs (Data API, Auth, Storage, Edge Functions, Realtime)TLS 1.2 and 1.3. compatible clients negotiate a hybrid post-quantum key exchange (X25519MLKEM768) over TLS 1.3 by default; other clients fall back to classical key exchange.Measure client compatibility before changing anything, and extend coverage to any endpoint not yet covered.Keep browsers, runtimes, and client libraries current.
Direct Postgres connectionsTLS available; optional unless you enforce it.Evaluating hybrid key exchange for this path.Test clients, then turn on SSL enforcement with sslmode=verify-full.
Connection poolers (Supavisor, PgBouncer)TLS available. Each pooler is a separate path.Evaluating hybrid key exchange for each.Same as direct Postgres.
Auth tokensES256 is the default for new projects.Evaluating ES384 and ES512 as interim options and ML-DSA as the post-quantum option.Verify tokens with your project's published keys and practice a rotation.
Data at restSymmetric encryption (AES-256).No change needed; symmetric encryption isn't what the statement addresses.Nothing.
Supabase CLILogin uses its own key exchange inside TLS.Evaluating a hybrid key exchange for login.Keep the CLI current.

What's already protected

Most of what the statement is about doesn't touch your stored data.

Data at rest. Database volumes, backups, and Storage files are encrypted with AES-256. Vault stores secrets with authenticated encryption from libsodium. These are symmetric algorithms; they don't rely on RSA or elliptic curves and aren't what the statement addresses; NIST and NSA guidance keep AES-256 as the approved cipher through the post-quantum transition. You don't need to re-upload files or re-encrypt anything.

Passwords. Stored password hashes are not public-key cryptography and are not affected by the statement.

Your signing key choice. If your project uses the asymmetric JWT signing keys (ES256 or RS256), you're on the path to a post-quantum algorithm. The signing keys system was built for zero-downtime rotation between keys and algorithms, which is what a move to a post-quantum algorithm will need. If your project still signs tokens with the legacy HS256 shared secret, nothing changes today, but moving to asymmetric signing keys is the one prerequisite for any later post-quantum step. The signing keys guide walks through it, and it is a better use of this week than anything else on this page.

What we're doing

Key exchange first. Someone can record encrypted traffic today and try to decrypt it years from now if its key exchange is later broken, so this is where we're starting. The fix is a hybrid key exchange that combines a classical and a post-quantum algorithm; the connection stays secure as long as either one holds. It's already negotiated by default on the project API edge and evaluating it for direct Postgres connections and both poolers.

Signing second. A broken signing algorithm would let someone forge a token, but it doesn't decrypt anything already recorded, so we have room to do this carefully. For Auth, the first step is ES384 and ES512: larger curves with a bigger classical margin, not post-quantum, but quick to ship and easy for verifiers to adopt. NSA's interim guidance treats P-384 as the classical baseline during the transition. After that comes ML-DSA, the post-quantum standard. Its signatures are roughly 2.4–3.3 KB depending on parameter set, against 86 bytes for ES256, so we're testing token size and verifier support before Auth issues them. The same evaluation covers SAML, passkeys, Storage signed URLs, and Turso tokens.

No breaking changes. Any new default applies to new projects first. We don't plan to change an existing project's signing algorithm or key without notice; you move through the same rotation flow you can use today. Standards bodies have published deprecation dates for today's algorithms, so existing projects will eventually need to move; when that time comes we'll publish a migration window well ahead of any enforced change. We're also making signing algorithms switchable by configuration across every service that verifies tokens, so if an algorithm ever does need to be retired quickly, we can do it without waiting on a release.

Clear communication. Every planned rollout gets a dated changelog entry before it lands, and anything that needs action from you gets direct notice.

What we can't change alone. No publicly trusted certificate authority issues post-quantum TLS certificates yet; the industry expects them during 2027, and the change will roll out automatically when CAs and browsers support it. Until then every HTTPS site, including Supabase, authenticates with a classical certificate, while hybrid key exchange still protects the contents of the connection. And a connection uses a post-quantum key exchange only when both ends offer it: your browser, runtime, Postgres driver, and client library are the other end.

What you should do now

The quickest way to check your project is to let your agent do it. Prompt your agent with:


_10
Check my Supabase project against Supabase's post-quantum security guidance.
_10
Fetch https://supabase.com/docs/guides/ai-tools/ai-prompts/post-quantum-security-checkup.md
_10
and follow its steps.
_10
If you can't open that page, tell me so I can paste the full prompt instead.

You can find the full agent prompt on our site.

If you're already planning a key rotation or moving off legacy API keys, keep that work on track. These six steps put you in a position where the post-quantum changes, when they come, are routine (covered in the prompt).

  1. Keep your stack current. Update the CLI, your client libraries, your Postgres driver (e.g. pg in Node or psycopg in Python), and your runtime as part of your normal upgrade cycle. A connection uses a post-quantum key exchange only when both ends support it, and the client end is yours. Go 1.24+, Node.js 22.20+/24.5+, and OpenSSL 3.5+ already offer the hybrid group by default.
  2. Verify JWTs against your project's JWKS, not a copied key. If your backend fetches /auth/v1/.well-known/jwks.json and selects the key by kid, a rotation to a new algorithm is invisible to you. If you pasted a public key into an environment variable, it isn't. See public key discovery.
  3. Set the algorithms you trust explicitly. Allowlist ES256, ES384, or ES512 (whatever your project uses) in your verifier today. When a new algorithm is available, test it, add it to the allowlist, and let caches pick up the standby key before you rotate.
  4. Practice a key rotation in staging. Create a standby key, test each verifier, promote it, and wait for old tokens to expire before revoking. The signing keys guide walks through it.
  5. Move off legacy API keys. This isn't a post-quantum measure, but it removes two long-lived keys from the rotation problem. The anon and service_role keys are long-lived JWTs. Follow the migration guide to replace them with publishable and secret keys.
  6. Tighten Postgres access. Use sslmode=verify-full with the Supabase CA certificate, test your clients, then turn on SSL enforcement and network restrictions. Neither makes a classical connection post-quantum, but both shrink what a recorded session could expose. Verify-full trusts the CA file you download, so if we rotate that CA in the future, you'll need to update it. We'll announce any change in the changelog before it takes effect.

What you don't need to do

Don't switch to HS256. It doesn't use elliptic curves, but any service that verifies tokens with a shared secret can also sign them with it. A shared secret also can't be rotated to a post-quantum algorithm without changing every verifier at once. The asymmetric keys you have today are the right foundation, and they are the ones that can rotate to a post-quantum algorithm without downtime.

Don't rotate keys in a hurry. There's no post-quantum signing option to rotate to yet. When ES384 and ES512 are available we'll recommend moving to them, with a changelog entry and a guide; rotating before then risks breaking a verifier for no gain.

Don't re-upload or re-encrypt data. At-rest encryption is symmetric and unaffected.

Don't add a "quantum-safe" layer in front of your project. The standard algorithms are already in the TLS stacks and libraries you run. For your Supabase project, the migration is a version bump on your side and a key rotation on ours.

How we'll keep you informed

If your agent can run recurring tasks, the checkup prompt above will offer to re-check your project on a schedule and tell you only what changed, including new Supabase releases that affect you.

The Supabase changelog is where every confirmed rollout will be posted, with a dated entry before each change lands. We'll update this post as the key-exchange and signing work reaches production.

If you're not sure how any of this applies to your project, open a support ticket and we'll walk through it with you. The plans described here reflect our current intent and may change as standards, client support, and guidance evolve; your agreement with Supabase governs.

Build in a weekend, scale to millions