Security
Last updated November 30, 2026
How DebateEval protects your account and the secrets you save with it, and, just as plainly, what our servers can read and why. It describes what the app does today; planned work is marked as planned.
What we collect and who we share it with is in the Privacy Policy.
What our servers can read, and why
DebateEval is not end-to-end encrypted. The server reads your debates in plain text while it works on them, because the product is built on that:
- AI models read transcripts and arguments to draft claims, find fallacies and score them.
- Transcription turns your audio into text, live or from a file.
- Shared and public trees, live overlays and classrooms are shown to people who hold no key of yours, such as a viewer with a link or a teacher reading a hand-in.
- Search and recommendations need the words to match against.
So the server can read all of the following: debate trees, arguments, transcripts, comments, votes and titles; your name and email address; the prompts sent to AI models and their answers (deleted after 30 days); and saved recordings, when you turn saving on (in private storage, deleted after 90 days). Transcripts, comments, a debate's history and the AI prompts are also sealed under the debate's own key, as are saved recordings, as below; arguments, votes and titles are stored as they are. The companies that process this for us are listed in the Privacy Policy.
End-to-end encryption, where only your devices hold the keys, would turn off most of the features above. We protect the data in the ways below instead, and say where each one stops.
How saved secrets are sealed
Secrets that the server only needs now and then are sealed with a key hierarchy modeled on the one Ente publishes for its photo storage. Today that covers the AI provider API keys you save in Settings: each one gets its own data key and is tied to your account and that provider.
Root key
Stretched with scrypt from a secret in our hosting provider's encrypted settings. It never touches the database.
Data key (one per saved value)
A fresh random key for each value, stored only wrapped (encrypted) by the root key.
Sealed value
The value encrypted with its data key, and tied to the account it belongs to, so a copy pasted into another account's row won't open.
A copy of the database alone therefore can't open them: it holds only wrapped keys and ciphertext. The server opens a key at the moment it calls the provider for you, and never shows it again, in the app or in logs. We keep a short hint so you can recognize each key.
Each debate also has its own key, made the first time it is needed and stored only wrapped by the root key. The debate's transcript lines (their text and word timings), its history of changes, its summaries and translations, its comments (and the quote of them in notifications), and the prompts sent to AI models about it and their answers are sealed under that key and tied to the debate, so they can't be read from a database copy or moved to another debate. Deleting the debate deletes its key. The server opens them whenever it shows the debate or works on it. Debates saved before this change are sealed by a one-time update. Arguments, and the passages of the transcript they quote, stay readable in the database, because search needs their words.
Saved recordings are sealed under the same key before they reach storage, in small chunks that each carry their own tamper check, so a copy of the storage bucket holds only unreadable files. When someone allowed to listen plays one, the server opens just the part being played and sends it over the encrypted connection. Recordings saved before this change stay as they were until they are deleted after 90 days.
A tree's full JSON export can be locked with a passphrase you choose. Your browser stretches the passphrase into a key with Argon2id and seals the file with XChaCha20-Poly1305, so the passphrase never reaches us, and Import asks for it and unlocks the file on your device. Nobody, us included, can open a locked file without its passphrase, so a forgotten one can't be recovered. The server still prepares the export before your browser locks it, the same as any other download.
The IP address a new account signs up from is used only to give the free credits once per address. It is stored as a keyed hash (HMAC-SHA-256 with a key used for nothing else), so the address itself is not kept.
Where the root key lives
The root key comes from a secret in Vercel's encrypted environment settings, where the app runs. That is the weak point to know about: whoever can read the production settings can open every sealed value, and nothing yet records each time a key is used. We plan to move the root key into a dedicated key service (AWS KMS) as the service grows, so that it can't be copied out and every use is logged.
Signing in
- Passwords are stored only as scrypt hashes. Password reset links are stored as hashes and expire after an hour.
- You can also sign in with a passkey, or with Google, GitHub or Discord. The tokens those providers give us are encrypted, and we don't use them after sign-in.
- Two-factor sign-in with an authenticator app and one-use backup codes is available to everyone in Settings. Once it is on, a password sign-in asks for a code. Admins must have it, and admin tools ask for a code or a passkey on every sign-in.
- Your session is a signed cookie that only the site can read (HTTP-only). Sign-in, sign-up and code checks are rate limited.
In transit and on disk
- The site is served only over HTTPS, and browsers are told never to use plain HTTP for it (HSTS, preloaded).
- A strict Content Security Policy lists every outside host a page may load from or talk to, which limits what an injected script could do.
- The database and storage are hosted by Supabase, which encrypts them on disk. Only our server talks to the database; direct access from the internet is refused by row-level security on every table.
- Error reports leave out cookies and sign-in headers, and session replays mask text, inputs and media.
What we're working on
These are planned and not built yet. This page will change as each one lands.
- Moving the root key into AWS KMS, as described above.
Reporting a security problem
If you find a way to see or change something you shouldn't, please tell us at danielcurrey.com before sharing it publicly. Include the steps to reproduce it. We'll reply and fix confirmed problems as fast as we can.