Security model
What protects your notes, layer by layer, and where the details are. To report a vulnerability, see SECURITY.md.
On devices
- Every device keeps its copy in a SQLCipher database, encrypted with a random key kept by the operating system: the login Keychain on macOS and iOS, Android’s keystore. The web app keeps an encrypted copy in the browser’s private file system, with its key wrapped by the browser.
- A device signs in with tokens bound to a key that never leaves it (DPoP), so a stolen token is useless elsewhere. Access tokens last minutes; devices unused for a month are signed out.
- Signing out, or being signed out from another device, deletes the device’s copy.
In transit
Everything goes over HTTPS and a WebSocket under it, through your reverse proxy.
Plain HTTP is refused except for localhost.
On the server
- Standard workspaces are sealed at rest with a key per workspace, which the master key wraps. The database and the bucket alone open nothing; with the master key, the server (and so its operator) can read them. That’s what lets it search, answer Ask and serve agents.
- End-to-end encrypted workspaces are sealed on the members’ devices. The server can’t read them, and neither can its operator, a stolen backup or a leaked database. It still learns who is in a workspace, how many pages there are, their sizes, and when they change.
- Who may do what is a Cedar policy checked on every request, repeated by PostgreSQL’s row-level security. The server refuses to run as a database role that row-level security doesn’t apply to.
- Search data: for standard workspaces the database holds each block’s words and vectors, derived from the text, but never the text itself. Turn server search off to keep them out.
- AI: what’s sent to which provider is recorded without the text, and page text is treated as data, never instructions. People’s own provider keys are sealed with a key of their account’s. See AI providers.
- Agents have no tool that deletes; every change they make is recorded and can be undone.
- Published pages carry no JavaScript and a strict Content Security Policy, and links are long random tokens.
Supply chain
Releases are built only on GitHub, from a merged pull request. Images and the Helm chart are signed
with cosign and carry an SBOM and build provenance; desktop updates are signed with the release
key and checked by the app before installing. Third-party actions are pinned to commits, and
dependencies are checked with cargo deny and cargo vet.
The details
- End-to-end encryption design: the threat model, what the operator can and can’t see, the keys, the formats and the protocols, with what it doesn’t defend against.
- For the independent review: the scope and the open questions for an outside review.
- The admin’s view of encryption.