Security

Security you can read in five minutes.

Diffwell holds your specs, runbooks and incident notes. Here's how we protect them, what we test on every change, and what isn't there yet.

Updated 25 Nov 2026

  • TLS

    Encrypted in transit

    Every connection to Diffwell uses TLS.

  • argon2id

    Secrets stored as hashes

    Passwords, session cookies, API tokens and invite links are never stored in plain form.

  • 1 check

    One access check

    The same authorization function guards every read path: pages, search, exports, notifications and AI assistants.

  • CI

    Isolation, tested

    Every API operation has a permission test and a cross-workspace test that runs on every change.

  • logs

    No content in logs

    Logs record identifiers only. Never page content, tokens or passwords.

  • EU · US

    Your data region

    You choose where a workspace lives, in the EU or the US, when you create it.

Access control

Access flows from workspace to space to folder. People can view, comment, edit or administer, guests see only the space they're invited to, and the "Who has access" panel shows exactly who can open a page and why.

Behind that model there is one authorization function, and every read path goes through it: the page itself, search results, notifications and emails, exports, public links and AI assistant calls. A leak test suite creates restricted content and proves it doesn't reach anyone without access through any of those paths.

  • Search filters by permission on the server, at query time. The browser never receives a result to hide.
  • A page or space you can't see answers "not found", not "forbidden", so its existence isn't revealed.
  • Public links are read-only, never show comments, and stop working the moment you turn them off.

Accounts and sessions

  • Passwords are hashed with argon2id, a slow, salted hash built for this job.
  • Session cookies, API tokens, and invitation and email verification links are stored only as hashes. A copy of the database wouldn't contain a working credential.
  • Team workspaces need a verified email address.
  • Rate limits apply per workspace, per user and per network address, so one noisy client can't affect others.

API tokens and AI assistants

Personal access tokens belong to one person and one workspace. Each has one scope (read, write or admin) and an expiry date, is shown only once, and can be revoked at any time. A token never has more access than its owner. The admin scope still needs the admin role.

Some actions always need a signed-in session, so a leaked token can't do them: changing your password, deleting your account, exporting your data and creating new tokens.

AI assistants connect over MCP with a browser sign-in, so there's no long-lived token to paste into a config file. They search and read with your access. Workspace admins can turn MCP on or off and see 30 days of usage. Write tools stay off until an admin turns them on, and every AI edit becomes a normal version, labelled as AI, that you can restore. You can revoke an assistant under Connected apps at any time. How to connect an assistant.

Your data

  • Region. You choose whether a workspace's data lives in the EU or the US when you create it.
  • History. Every published change is a version you can compare and restore. Deleted items wait 30 days in the trash.
  • Export. Export your personal data, or a whole workspace if you're its owner, as Markdown at any time. Folders become directories.
  • Deletion. When you delete an account or a workspace, it becomes inaccessible at once and its personal data is permanently deleted within 30 days.

The details are in our privacy policy and the Data Processing Agreement.

How we build it

  • The HTTP API is defined in one OpenAPI contract first, and the server and client are generated from it. A test fails the build if a route and the contract drift apart.
  • Every API operation must have a permission test and a cross-workspace test before it merges. A coverage check enforces that, including for MCP tools.
  • Logs carry request, user and workspace identifiers so we can trace a problem, and never page content, tokens or secrets. Every error has a request_id you can quote when you contact us.
  • The server keeps no in-memory state that correctness depends on, so any instance can serve any request.

This website

The site you're reading sets no cookies, runs no analytics and makes no requests to other companies. Fonts and media are served from our own domain. A strict Content-Security-Policy allows only our own scripts, and the site can't be framed by other sites. The only thing it stores is your light or dark theme choice, in your browser.

Sub-processors

Current sub-processors
Sub-processorPurpose
ResendSending account and notification emails
[Hosting provider]Infrastructure, database, file storage and backups, in the workspace's EU or US region

We give at least 30 days' notice before adding a sub-processor. See the DPA.

Not there yet

We'd rather tell you than have you find out in a security review. These aren't available today:

  • Single sign-on (SAML or OIDC) and SCIM provisioning
  • Sign in with Google or GitHub
  • IP allowlists for API tokens

If one of these blocks you, tell us. It helps us decide what to build next.

Report a vulnerability

If you think you've found a security issue, email [email protected] with "Security report" in the subject. Include the steps to reproduce it and what you expected to happen.

Please test only against accounts and workspaces you own, don't access or change other people's data, and give us reasonable time to fix the issue before you share details. We won't take legal action against research done in good faith under these rules. Our contact details are also in security.txt.