Security
Built to sit next to
production data.
DBCraft connects to the databases that run your business. So it is designed to see as little as it can, show less than it sees, and keep nothing it does not need.
Your data never comes to us.
DBCraft runs on your own infrastructure. Queries go from your DBCraft server to your database, and results go to your team's browsers. We never see your data or your credentials, and the product sends no telemetry.
Personal data
How PII is handled.
Masking is on for every data source from the moment it is connected. Nobody has to remember to turn it on.
Detect
Every column in every result is classified by its name (email, phone, card_number, sort_code, dob, address) and by the shape of its values: Luhn-checked card numbers, IBAN checksums, National Insurance formats, email addresses.
Mask
Personal values are masked on the server before they reach a browser, keeping only what analysis needs: the email domain, the last few digits, the birth year, the postcode district.
Everywhere
The same masking applies in the SQL editor, on dashboards, on public share links, in CSV exports, and to AI agents connected over MCP. There is no unmasked side door.
Forget
Query history is saved with literal values stripped out (card numbers, quoted strings, long numbers) and is deleted automatically after 90 days.
| Data type | Stored in your database | Shown in DBCraft |
|---|---|---|
Email alice.smith@example.com | a***@example.com | |
| Card number | Card number 4111 1111 1111 1111 | **** **** **** 1111 |
| Phone | Phone +44 7700 900123 | +** **** ***123 |
| Bank account | Bank account 12345678 | ****5678 |
| Sort code | Sort code 12-34-56 | **-**-56 |
| IBAN | IBAN GB82 WEST 1234 5698 7654 32 | **** **** **** **** **54 32 |
| National Insurance | National Insurance QQ123456C | ********C |
| Date of birth | Date of birth 1985-07-22 | 1985-**-** |
| Name | Name Alice Smith | A*** S*** |
| Postcode | Postcode SW1A 2AA | SW1A *** |
| Postal address | Postal address 221B Baker Street | [redacted] |
Controls
Secure defaults, all the way down.
Who can see what
- Every query and schema lookup is checked against the data source's permissions. Without access, a data source returns "not found", so its existence is not revealed.
- Admin, Editor, and Viewer roles, plus per-dashboard access, edit history, and ownership transfer.
- Self-service sign-up is off. The first user becomes the admin and everyone else is invited.
- AI agents connected over MCP act as the person who approved them, are limited to the scopes they were granted, and cannot call the rest of the API.
Guardrails on queries
- Read-only mode is on by default, so write statements are rejected.
- Server-enforced deadlines and row limits: 30 seconds and 10,000 rows by default, capped at 5 minutes and 100,000 rows.
- Public dashboard filters are rendered as safe SQL literals, closing off injection through share links.
Accounts and sessions
- Passwords must be at least 12 characters.
- Ten failed sign-ins lock the account for 30 minutes.
- Sessions end after 15 minutes of inactivity, and access tokens expire after 5 minutes.
- Share-link passwords are hashed with Argon2id and attempts are rate limited. Links can expire.
Encryption and secrets
- Data source credentials are encrypted with AES-256-GCM, a fresh nonce per value, and a separate key per purpose.
- A versioned envelope means keys can be rotated without a flag day.
- HSTS over HTTPS, and secrets that survive restarts instead of being silently regenerated.
- TLS to each database is set per connection. Use require for production data sources.
Audit trail
- Sign-ins, failed sign-ins, and password changes.
- User, invitation, group, and permission changes.
- Data source changes and every query run.
- Dashboards shared, published, viewed, and transferred.
Hardened delivery
- Release images are signed with cosign and ship with an SBOM.
- The container runs as a non-root user, and the Kubernetes manifest adds a read-only root filesystem.
- Same-origin CORS, a Content Security Policy, and framing limited to DBCraft itself.
- The SQL editor is served from your own DBCraft server, not a third-party CDN.
Compliance
Stated plainly.
DBCraft implements the application-level technical controls that map to PCI DSS v4.0.1: card numbers masked to the last four digits (3.4.1), sensitive values kept out of stored history (3.3.1), least-privilege access to data (7.2), session and password rules (8.2.8, 8.3.4, 8.3.6), and security event logging (10.2).
DBCraft is not itself a certified product and does not issue an Attestation of Compliance. Certification covers your whole organisation. For the smallest compliance footprint, point DBCraft at read replicas with card numbers removed.
Not yet
On the roadmap.
We would rather tell you than have you find out.
- Multi-factor authentication
- Row- and column-level restrictions inside a data source
- TLS to data sources enforced by policy
