Blog/Announcements

A vault we can't open, and a local agent

Database credentials sealed in your browser with a workspace key our servers never see, and a small agent that reads databases from your own machine.

Announcements6 min read

Reading a live database needs its credentials. Until now, keeping a connection meant trusting us with them: we encrypted them at rest, but our servers held the key. Workspaces can now keep database credentials in a vault that our servers can't open, and people can read databases that never leave their own machine.

How the vault holds a key we don't have

All of the cryptography runs in your browser (WebCrypto, plus Argon2id in a background worker). Our servers store ciphertext and the metadata needed to find it.

There are three layers:

  • Your key pair. Each person has one P-256 key pair. The private key is wrapped (encrypted) by each way you have of unlocking it: a passphrase, a recovery key, and optionally passkeys.
  • The workspace key. Each workspace with a vault has an AES-256-GCM key. It's wrapped separately to each member's public key, so granting access needs only the other person's public key and can happen while they're away.
  • Secrets. Each saved connection is encrypted with the workspace key. The encryption is bound to the workspace, the secret's own id and the key's generation, so a blob copied to another row or another workspace won't open.

Your passphrase goes through Argon2id with 64 MiB of memory and 3 passes before it can unwrap anything. The recovery key is 32 random bytes written in Crockford base32 with a short checksum, so a mistyped character is caught before it's tried. A passkey unlocks through the WebAuthn PRF extension: the authenticator gives back secret bytes only after you verify with a fingerprint, face or PIN. Authenticators without PRF can't unlock the vault, and the passphrase stays the way in.

Once unlocked, your keys live in that tab's memory as keys the page can use but not export. They're never written to storage. The tab locks again after 15 minutes without a click or a key press, or when you close it.

Turning it on

Everything is in Settings → Vault, in the workspace section.

  1. Under Your keys, choose a vault passphrase (at least 12 characters) and press "Make my keys". It's separate from how you sign in.
  2. The next screen shows your recovery key once. Download it or copy it somewhere safe and offline, then tick "I've saved my recovery key somewhere safe". Nobody, including us, can show it to you again.
  3. If you're a workspace owner or admin and the workspace has no vault yet, finish with "Finish and turn on the vault". That creates the workspace key and gives you the first copy.
  4. Optionally, add a passkey so you can unlock without typing the passphrase.

Other members make their own keys the same way, then show as "Waiting for access" until someone grants it.

There's no back door. If every member who holds the key loses both their passphrase and their recovery key, the sealed connections are gone and have to be entered again.

Sealing a connection, and reading it

You seal a connection from Import from database. Read the database once, and on the last step tick "Keep as the linked database, to pull again and hear when it changes". With your vault unlocked, "Keep the credentials" offers "Sealed in the vault", which is selected by default, or "Managed", where we can read them and check for changes hourly. Choose sealed and the connection is encrypted in your browser before it's saved, then linked to the diagram.

What the server keeps about a sealed connection is its label (the host name, with the port if the connection names one, or for Cloudflare D1 the start of the database id), the engine, and which schemas the link reads. The password, user name and the rest of the connection stay inside the ciphertext.

When you pull from a sealed link, your browser opens the secret and sends the connection for that one read. If you haven't paired a local agent (below), it goes to our servers, which use it for that read and don't save it. That's the same exposure as an unsaved live import. With an agent paired, it goes to your own machine instead and our servers never see it.

The hourly drift check skips sealed links, because the server can't open them. Instead, when a member with the vault unlocked opens a branch that tracks a sealed link, the app reads it if it hasn't been read in the last hour.

Granting and rotating

Only owners and admins who hold the key can grant it. When someone is waiting, a banner across the app asks "Grant vault access to" that person and shows their key's fingerprint, and Settings → Vault lists every member with "Grant access" beside those waiting.

The fingerprint is the first 80 bits of a SHA-256 of their public key, in four groups of four characters. The person sees the same fingerprint under Your keys on their own Vault page. Read it to them over a call or a chat before granting: if the two don't match, the public key you're about to grant to isn't theirs.

When someone with a copy of the current key leaves the workspace, their copy is deleted and the vault is flagged for rotation. Settings → Vault then says someone who could open it left, and offers "Rotate key". Rotating makes a new workspace key, wraps it to everyone who still has access, and re-encrypts every sealed connection, all in the browser of the person rotating.

Rotation stops the person who left from opening anything sealed from now on. It can't take back what they could already decrypt. So after rotating, the app lists the databases whose passwords you should change, and you update each sealed connection with the new one.

The local agent

Some databases shouldn't be reachable from the internet at all. The local agent is a small program you run on your own computer, for that case. It needs Deno, and Settings → Vault → Local agent gives you the command to copy. For the production app it's:

curl -fsSLO https://modeller.bright-web.co.uk/agent/data-modeller-agent.js && deno run --allow-net --allow-env --allow-read --allow-sys data-modeller-agent.js --origin https://modeller.bright-web.co.uk

It listens on 127.0.0.1, port 47823 unless you pass --port, and prints a pairing code like XXXX-XXXX-XXXX-XXXX, made fresh each time it starts. Enter that code and the port in Settings → Vault → Local agent and press Pair. The pairing is kept in that browser until you press Forget.

From then on, Import from database offers "Read through the Bright Web Data Modeller agent on this computer", ticked by default, and sealed reads go through it. Your machine connects to the database and hands the schema back to the tab, so it can reach localhost and your private network, which our servers refuse to connect to.

The agent answers only requests that come from the app's origin and carry the pairing code; anything else gets an error. If a read fails, the driver's own error text goes to your terminal and the tab gets a plain category such as "Could not reach the database".

A connection read through the agent can only be kept sealed, since our servers never had it. To keep one, unlock the vault first.

Keys used once

For Neon, PlanetScale and Turso you can paste a host API key instead of making a login by hand. Choose "Connect with" and the host's API key, press "Find databases", pick one and press "Create a read-only login". The app uses the key for those calls only, creates a read-only login or token for that database, fills in the connection, and drops the key. It's never stored. Remove the login on the host when you no longer need it.

Cloudflare D1 is the exception. Cloudflare can't make anything narrower than a D1 Read token, so the token you paste is the connection itself, and it's kept (sealed or managed) like any other if you choose to keep the connection.

More announcements

  • Convex schemas, in and out

    19 November 2026 · 6 min read

    Export a diagram as convex/schema.ts from any engine, paste one in, or check one out from a repository, and what happens to the parts Convex can't hold.

  • Snippets: drop-in table sets that stay up to date

    10 November 2026 · 6 min read

    About a hundred ready-made table sets for payments, auth, teams and more, inserted into the schema you already have and updated without losing your edits.

  • GitLab, Azure DevOps, Bitbucket and any Git server

    4 November 2026 · 6 min read

    Build branches from migrations on every major Git host, commit migrations back, and replay more migration formats, from Flyway to Liquibase.

Try it on your own schema

One diagram with two branches, no card needed. Upgrade when your team needs more.