Security
What Querywake does with your database, what it stores, and how it is protected. Querywake is in public alpha; this page describes the system as it runs today.
The collector is read-only
- The collector runs next to your database and connects with a role you create from the setup page. That role is granted pg_monitor, which reads statistics views; it is not granted access to your tables. It needs no superuser.
- It never runs EXPLAIN, ANALYZE or any statement on your data. Execution plans are analyzed only when you upload them or, on paid plans, when auto_explain has already written them to a PostgreSQL log the collector reads.
- The database URL stays on your host, in an environment variable. With the collector, Querywake never receives it.
- TLS to your database is verified (certificate and host name) by default.
Connecting by connection string
- Where it is offered, you can instead give Querywake a connection string for a dedicated monitoring role, and Querywake connects to your database from its own servers. In this mode Querywake receives and stores that credential. Use the collector if your database is in a private network or you prefer not to share a credential.
- The console encrypts the connection string as soon as it arrives, to a key held only by the polling service. The web application cannot read it back, and it is never shown again. The polling service decrypts it to connect, so it is not end-to-end encrypted: a compromise of that service could expose the credentials it holds.
- Querywake refuses roles that can change data or the server (superusers, roles that can write to tables or create objects, and members of administrative roles), opens read-only sessions with short timeouts, runs only its fixed monitoring queries, and requires a verified TLS certificate by default.
- It connects only to public addresses and never to private, loopback or link-local ones.
- Deleting the connection, the database or the workspace deletes the stored credential at once.
- Continuous polling keeps the database busy; on serverless services such as Neon it can keep the compute from suspending and increase your bill.
What leaves your network
- Statistics: per-statement counters from pg_stat_statements (identified by queryid), database counters, and counts of sessions, waits and locks.
- Query text is off by default. If you turn it on for a database, the collector sends normalized, redacted text (constants replaced). Table and index names are off by default too.
- No row data, no parameters, no passwords.
Transport and credentials
- Telemetry is sent over HTTPS to the ingestion service, compressed, with a per-collector token.
- Tokens are shown once, stored only as a hash, and can be rotated or revoked from the console at any time. A revoked token stops ingestion immediately.
- When the service is unreachable, the collector keeps data in a bounded local spool and resends it; each batch is accepted at most once.
Notifications and AI clients you connect
- Slack, Discord and webhook messages go only to destinations a workspace owner or admin adds. They carry the incident title, severity, state, database display name, cause labels and a console link: no connection details, credentials, query text, object names or row data.
- Destination URLs and signing secrets are encrypted to a key held only by the sending service; the console cannot read them back. Webhooks are signed (HMAC-SHA256), and the sender refuses private and internal network addresses.
- MCP clients you authorize get read-only access to one workspace, with your consent and only the scopes you grant. You can revoke them in the console at any time. Querywake runs no language model; what an AI client does with the data it reads is up to that client's provider.
Isolation and access
- Every workspace's data is isolated in PostgreSQL by row-level security, enforced for the console, ingestion and analysis roles alike. Requests for another workspace's data answer “not found”.
- Workspace roles (owner, admin, member) limit who can add databases, enroll collectors, manage billing and invite people.
- Sign-in requires a verified e-mail address. Sessions are host-only, HTTP-only cookies; sign-in and reset requests are rate limited.
- Card details are handled entirely by our payment provider, Polar. Querywake never sees them.
Retention and deletion
- Telemetry is kept for your plan's history period (1 to 90 days) and incidents for 7 to 365 days, then deleted automatically.
- Deleting a database removes its telemetry. A workspace deletion request makes it read-only at once and purges its data after 7 days.
- Backups of the service database are encrypted (age) before they are written to disk.
Reporting a vulnerability
Write to [email protected] with “Security” in the subject. Include what you found and how to reproduce it. We reply within 3 working days. Please do not test against other customers' workspaces or degrade the service; testing against your own workspace is fine.