DB Watchtower
Security overview

What we can access, what we keep, and what we send.

Written for the person who has to approve connecting a production database. Last updated November 2026.

1. Access to your database

You create a dedicated, read-only monitoring role. We never use your application's credentials and never grant ourselves anything. The app generates the SQL; you review it and run it as an administrator.

Recommended role
A separate login, member of pg_monitor only, with CONNECTION LIMIT 5, default_transaction_read_only = on and short statement and lock time limits.
What we read
Statistics and catalog views: pg_stat_activity, pg_stat_database, pg_stat_statements, pg_stat_user_tables, pg_stat_user_indexes, pg_locks, pg_class and settings.
What we never read
The rows in your tables.
Our sessions
Read-only, with a 5-second statement limit and a 1-second lock limit, so monitoring can't block or slow your workload. A full collection takes about 15 to 50 ms, once a minute.
Execution plans
Optional and off by default. PostgreSQL requires SELECT on a table even to plan a query, so you choose individual tables and the generated script grants access per table, never per schema. Plans are made with EXPLAIN (GENERIC_PLAN), which doesn't run the query, and any plan that touches a table you didn't allow is discarded.
Privilege audit
Every connection check warns if the role is a superuser, can write to any table, owns tables, inherits other roles, can create objects, has pg_read_all_data or can execute SECURITY DEFINER functions, and if the connection isn't encrypted.
Disconnecting
Disconnect deletes the stored credentials and all collected data for that database. The app also gives you a script that revokes every grant and drops the role.

2. What we store

Platform data only, in our own database, separate from yours:

  • Your account, organization and team membership.
  • Connection details. Passwords are encrypted with keys kept outside the database, and are never returned by the API or shown again.
  • Statistics snapshots, and query statistics with normalized query text: parameters appear as $1, and any literal values that remain are replaced with ?.
  • Findings, alerts, investigations and recommendations.
  • An append-only audit log of security-relevant actions, such as connecting a database, changing plan access or starting an investigation.

Monitoring data is kept for 14 days and purged daily.

3. What is sent to the AI

Only when someone clicks Investigate with AI, and only if there are open findings: the findings and their evidence, headline metrics, normalized text and statistics of the busiest queries, statistics for the tables and indexes involved, and execution plans for tables you allowed.

Never table contents, host names, login names, passwords or keys. Each investigation keeps the exact data that was sent, and you can read it on the investigation page.

Text that comes from your database, such as query text and table names, is treated as data, so instructions hidden in it are ignored. We test this with every change to the AI prompt.

The AI's output is checked before you see it. Citations must refer to real data. Statements with numbers that aren't in the data are marked unverified. Severity comes from our rules, not the AI, and the risk rating of suggested SQL is never lower than our own classifier gives it. Suggested SQL is never run.

4. Application security

Passwords
Argon2id hashes, minimum 12 characters.
Sessions
Signed tokens in an httpOnly, Secure, SameSite cookie with a 60-minute lifetime.
Cross-site requests
Requests that change anything must come from our own site.
Tenant isolation
Every query is scoped to your organization. An automated test calls every API route with another organization's ids and requires a refusal.
Roles
Owners and admins add, remove and configure databases; members can view and investigate.
Rate limits
On sign-in, sign-up, connection tests, collections and AI investigations.
Network
TLS is required to your database. Private and internal addresses are refused, and each connection is pinned to the address that was checked.
Logs
Sensitive fields and passwords inside connection strings are redacted.
Dependencies
Checked for known vulnerabilities on every change.
Secrets
Kept in the hosting platform's environment settings; the service refuses to start with default secrets.

5. Not in place yet

We'd rather tell you than have you find out: there is no single sign-on or multi-factor authentication yet, data export and deletion go through Disconnect rather than self-service tools, and there has been no third-party penetration test yet.

6. Reporting a vulnerability

Please email [email protected] rather than posting publicly. We aim to respond within two business days. Questions about the pilot go to [email protected].