~ encrypted team workspace

One key system for chat, docs, and the spreadsheet

Collab is where the SudoSecurity team works: channels, DMs, voice rooms, kanban boards, code and article docs, spreadsheets and slide decks. All of it is sealed in the browser with the same channel keys. The server relays and stores ciphertext. This page explains what that protects, what it doesn't, and the one trade-off we chose on purpose.

  • Chat, voice, boards
  • Docs, sheets, slides
  • One encryption model
  • No telemetry, few dependencies
sheets / q3-budget

what your team sees in C7

=SUMIF(A2:A40,"infra*",C2:C40)
  →  $18,420.00

what the server stores for that edit

doc_updates  channel ops  key v4
iv 3be0…71  aes-256-gcm  412 bytes

~ the suite

Six tools, one sealed pipe

Most "secure workspaces" encrypt the chat and leave the documents in a different product with a different trust model. Collab started as encrypted chat, then pulled the docs in rather than bolting them on next to it.

Channels and DMs

Threads, reactions, mentions, encrypted file attachments up to 10 MB each with a 5 GB pool per channel. Search runs on your device, after decryption, because the server holds nothing it could index.

Voice rooms

A WebRTC mesh: audio goes browser to browser over DTLS-SRTP. The server brokers signaling and room membership. It never carries an audio packet.

Boards

Kanban notes with statuses and priorities, up to 2,000 per channel. Each note is a sealed blob of at most 24 KB; the server orders and stores them without reading them.

Code and articles

Collaborative CodeMirror documents synced with Yjs. Every update and every snapshot is sealed with the channel key before it leaves the tab. Version history keeps up to 200 sealed checkpoints per doc.

Sheets

A 1,000 × 52 grid with a real formula parser, never eval: lookups (VLOOKUP, XLOOKUP, INDEX/MATCH), criteria functions with wildcards, statistics, text and date functions. Formatting, frozen panes, sort, and CSV in and out.

Slides

Decks with conflict-safe text fields, so two people typing in the same title merge instead of overwriting. Reorder, duplicate, and a full-screen present mode.

~ encryption

The key model, in the order it happens

This is the order of operations from first sign-in to a teammate reading your spreadsheet. Every algorithm named here comes from the browser's own WebCrypto implementation. There is no custom cryptography.

  1. Your identity is generated in the browser

    On first sign-in, the onboarding wizard creates one ECDH P-256 key pair per account. The private key goes into IndexedDB as a non-extractable CryptoKey, so even script running in the page can't read its raw bytes. The wizard then asks you for a recovery passphrase and makes you confirm you have saved it before it continues. A copy of the private key is sealed with that passphrase (PBKDF2-SHA256, 600,000 rounds, AES-256-GCM, with your public key bound in as associated data) and uploaded. We store that sealed backup. We can't open it.

  2. Every channel gets its own versioned key

    A channel key is a random AES-256-GCM key. It is wrapped separately for each member's public key, and each version is wrapped separately again. Messages, board notes, file metadata, and every Yjs document update in that channel are sealed with it. A spreadsheet is not a special case. A cell edit is an update that gets sealed the same way a chat message is.

  3. Rotation is an admin button, not a migration

    When someone leaves, an admin rotates the channel key from the console. The server increments the key version, writes an audit-log row, and tells every remaining member's client that a new key is needed. Clients generate the new key and wrap it for the current members only. The person who left keeps whatever old wraps they had. Those open old content and nothing written after the rotation.

  4. The trade-off we chose: channel escrow

    When a teammate signs in on a new laptop, someone has to hand them the channel keys. Strict zero-knowledge systems make them wait until another member comes online and re-wraps the keys, which sometimes takes days. Collab clients also wrap each channel key for a server-held escrow identity, so the server can re-wrap it for a new device as soon as that device appears. Stated plainly: the host that holds the escrow key can unwrap channel content, so that host has to be trusted. We handle that with operations rather than pretending the math says otherwise. The escrow key lives on one host. If escrow.json is corrupt, the server refuses to start; it never quietly generates a new pair, because that would silently orphan every existing wrap.

  5. DMs have no escrow. The server rejects it.

    For DM channels, the server refuses escrow wraps outright. A direct message can be read by its members and nobody else: not the server, not us, not anyone holding a copy of the database. That has a real cost. If you reset your keys and have lost your recovery passphrase, your DM history is gone.

  6. Verify the key, not the vendor

    Every member's account sheet shows a fingerprint: the first 10 bytes of SHA-256 over their public key, in groups of four hex characters. Compare it with a teammate on a call. If it matches, nobody swapped the key in transit, including us.

What the server does see: who is in which channel, when a message or edit happened, how big it was, which doc kind it belongs to, and the file names you choose for docs. Delivery and notifications need that metadata. Content stays sealed. DM content stays sealed even from the escrow key.

~ architecture

A single binary, a single database, and limits we can name

Collab is TypeScript on Bun, with Preact in the browser and SQLite on disk. It is about 15,000 lines in total and has a short dependency list we review by hand. Fewer moving parts means fewer things for us to patch on your behalf.

  1. Realtime is Yjs over a sealed relay

    Each open document is a Yjs CRDT in your browser. Local edits are batched, sealed with the channel key, and posted as updates of up to 256 KB. The server's hub broadcasts the ciphertext to everyone else who has the doc open. Clients merge, the CRDT settles conflicts, and the server never has to understand what changed. Periodic compaction replaces the update log with a sealed snapshot of up to 900 KB, so opening a busy doc means one fetch instead of thousands.

  2. Presence is sealed too

    Live cursors and "who's here" avatars travel as awareness frames of up to 4 KB. They are sealed with the same channel key, so the server can't even tell which cell you're looking at.

  3. The formula engine parses; it never evaluates

    A shared spreadsheet takes input from other people. Cell formulas go through a tokenizer and recursive-descent parser into an AST, and a fixed function table evaluates that AST. Nothing reaches eval or Function. Ranges are capped at 20,000 cells and recursion depth is bounded. Malformed formulas become error values such as #VALUE!, never exceptions. Wildcard criteria such as "infra*" use a linear-time matcher instead of a regular expression, so a collaborator can't save a pattern that freezes everyone's tab through backtracking.

  4. Accounts are configurable

    Our internal instance signs people in with their SudoSecurity staff password plus an emailed code. A customer instance runs in standalone mode instead: email plus a six-digit code against Collab's own user table. The first sign-in becomes the owner, and after that the instance accepts invites only. Invites are single-use and stored hashed. Brand name, mark, and integrations are set per instance. Nothing in the product depends on our own infrastructure.

  5. Your data leaves when you say so

    Admins can download a streaming tar export of the whole workspace: users, channels, key wraps, messages, notes, docs with their full update and version history, files, and the audit log. The export is ciphertext, exactly what the server holds. It is a faithful backup, not a readable dump, and it stays that way until members' keys open it.

256 KBLargest sealed doc update accepted per request
500Docs per channel across all kinds
600kPBKDF2 rounds guarding your key backup
5Login-code attempts before a code burns

~ when it breaks

The failure modes, before you find them

Every system fails somewhere. Here is where this one does, what you will see, and what it costs you.

  1. You lose your recovery passphrase

    On a device that is still signed in, nothing changes. On a new device, you reset your keys. Channels heal right away through escrow. DM history from before the reset can't be recovered by anyone. That is the guarantee working as designed, but it still hurts.

  2. Sorting a sheet that formulas point into

    Sort moves rows. It does not rewrite the references in formulas elsewhere that pointed at the old positions, so a VLOOKUP over a sorted range can start returning #N/A. The sort dialog warns you before it runs. For now, treat sort as a tool for data sheets and keep calculations on a separate sheet.

  3. A huge paste or CSV import

    Imports and sorts write in spaced batches so that no single sealed update goes over the 256 KB limit. The grid locks editing until the batches finish. If you close the tab partway through, the writes stop cleanly and you can run the import again. CSVs larger than the grid are cut off at the limit, and a toast tells you so.

  4. Ten people in a voice room

    A mesh means each participant sends their audio to every other participant. At a handful of people that is cheap. Past roughly eight on ordinary home connections, upload bandwidth runs out first. There is no media server to fall back on, because adding one would put audio through a host we control.

  5. The host itself goes down

    Collab is one process on one SQLite database. Restarts take seconds and lose nothing that was committed, and clients replay unsent updates when they reconnect. There is no multi-region failover, and we won't claim otherwise.

~ managed

What we run for you, and what it won't do

Customer workspaces will be managed instances: your own process, your own database file, your own escrow key, on infrastructure the SudoSecurity team patches and monitors. Access is invite-only while we finish billing.

IsolatedOne instance per customer. No shared database, no shared escrow key.
PatchedUpdates and security fixes ship without a maintenance window on your side.
Backed upBackups are ciphertext, the same bytes the server already holds.
ExportableA full workspace export is one admin click. Leaving is never a negotiation.

Out of scope, on purpose: Collab is not a Microsoft 365 replacement for a 5,000-person company. A single host with SQLite is the right shape for teams up to a few hundred people, and we say so. There's no server-side search, because the server can't read anything to search. There's no compliance e-discovery console, for the same reason. There's no media server for big voice calls. If you need those, you need a system that can read your data. Collab is built so that it can't.