Security & encryption

A database manager you can trust with production credentials.

Three rules: credentials never leave your machine, nothing phones home, and every claim on this page can be verified from the source. What follows is how that's actually built.

01 · Principles

What we won't do.

01

Credentials never leave your machine

No cloud sync. No "log in to QueryDen". The vault file is encrypted on disk, the encryption key never leaves your computer, and the file is useless if copied to another laptop.

02

The app has no telemetry and no usage analytics

The desktop app does not report what you do with it. Not on launch, not when you connect, not when you crash. The only outbound calls it makes are to your chosen database server and a one-shot update check against the public GitHub releases manifest. This marketing site uses a self-hosted, cookieless analytics endpoint for aggregate page views — it never sees the app.

03

You can audit every line

The source is on GitHub under MIT. The CI pipeline that builds the binaries is in the same repo. There is no closed-source layer.

02 · The vault

Six layers, all visible in the source.

The encrypted file at ~/.local/share/com.queryden.app/vault.json is protected by the layers below. Remove any one and it stops working — that's the test.

▲  Input · plaintext credentials
host=db.acme.dev
port=5432
user=alice
password=correct-horse-battery-staple
database=analytics
ssh=bastion.acme.dev:22
5 fields · UTF-8 · human-readable
▲  Disk · one encrypted value
nonce · 12 B ciphertext tag · 16 B

Illustrative bytes of one encrypted value: a random GCM nonce, the encrypted payload, and the authentication tag. Every byte looks like noise — because it is.

The six layers, one by one
01
AES-256-GCM
Authenticated encryption for every stored secret, saved query and history entry. Tampering invalidates the tag; the data refuses to decrypt.
02
Argon2id (memory-hard KDF)
Per-install secret + machine identity + per-vault salt → encryption key. Memory-hard by design, making brute-force orders of magnitude slower than a GPU farm.
03
Machine fingerprint
Linux: /etc/machine-id. macOS: IOPlatformUUID. Windows: Win32_ComputerSystemProduct.UUID. Mixed into the KDF — change machines, the vault refuses to load.
04
Per-install random key
256 bits from the operating system's secure random source, generated on first launch and readable only by your user account.
05
Crash-safe writes
Temporary file, flush, atomic rename — a crash never leaves a torn file, and a file that fails to decrypt is never overwritten.
06
CSP locked to self
Tauri's default-src policy disables remote script loading. The renderer cannot fetch arbitrary code from the internet, even if you find an XSS vector.
03 · Threat model

What we defend against — and what we don't.

▲Someone copies your QueryDen vault file off your laptop
The vault is encrypted with a key bound to this machine's hardware identity. Copied to any other computer, the file does not decrypt.
▲Someone tries to brute-force a copied vault file
There is no short password to guess: the key comes from a random 256-bit secret plus this machine's identity, stretched through memory-hard Argon2id.
▲You lose the laptop
Every secret is encrypted at rest. Pair it with full-disk encryption (FileVault, BitLocker, LUKS) and a lost laptop gives up nothing.
▲A QueryDen update ships a backdoor
Every release is built by GitHub Actions from a public tag. The SHA-256 of each installer is published. Reproduce the build yourself from the same commit and compare — the hash must match.
▲You connect to a malicious database server
QueryDen is the client. The server can return malicious result rows, but the result grid renders them as text. We do not eval, we do not exec, we do not auto-run a follow-up query based on a result.
What we do not defend against
  • A rooted/compromised OS. If an attacker controls your kernel they control your memory; no userland app can recover from this.
  • Malware running as your own user account while you're logged in.
  • A network attacker between you and a database that lacks TLS. Use SSL/TLS or our SSH tunnel — that's what they're for.
  • You sharing a connection string in Slack. We can't fix that.