Databunker Documentation
Source for the official Databunker documentation, published at docs.databunker.org. The developer hub is at databunker.org/developers.
Databunker is a secure vault for personal data (PII, PHI, PCI, KYC) — it encrypts sensitive records and replaces them in your database with safe, random tokens. The docs cover two products:
- Databunker Pro (
pro/) — the commercial, self-hosted PII vault and tokenization engine: guides, installation, administration, concepts, comparisons, and the /v2 API reference.
- Databunker OSS (
oss/) — the open-source edition: quickstart, installation, architecture, and the /v1 API reference.
The site is built with Mintlify. Navigation is defined in docs.json; API references are generated from pro/api/openapi.yml and oss/api/openapi.yml.
Repository structure
docs.json Navigation, theme, navbar, footer. Every page must be listed here.
favicon.svg logo/ Site branding.
pro/ Databunker Pro (commercial, self-hosted)
get-started/ Overview, quickstart, performance, PII vault, architecture,
security, licensing, FAQ
installation/ Docker Compose, Kubernetes/Helm, unattended, Oracle backend,
credentials, production checklist
administration/ Master key, key rotation, Shamir shares, backup & recovery,
monitoring, multi-tenancy, access control
concepts/ Tokenization, file vault, search, versioning, sub-accounts, deployment
comparisons/ vs AWS Cognito, vs HashiCorp Vault, vs building it yourself
migrations/ Moving existing users in: SQL users table, AWS Cognito
howtos/ Short task-focused operational guides
developer-tools/ SDK index
api/ overview / authentication / errors / pagination + openapi.yml (/v2)
oss/ Databunker OSS (open source)
get-started/ Overview, quickstart, architecture, examples
installation/ Installation guide
api/ overview + openapi.yml (/v1)
Images live next to the page that uses them (for example pro/get-started/databunker-diagram.png)
and are referenced by absolute site path: /pro/get-started/databunker-diagram.png.
Local development
Install the Mintlify CLI:
Then run from the repo root (where docs.json lives):
View the local preview at http://localhost:3000.
Publishing
Changes merged to main are deployed to production automatically via the Mintlify GitHub app.
Docs improvement plan (CTO audience)
The primary buying audience for Databunker Pro is the CTO or engineering lead who has to approve
running a PII vault in production. This section benchmarks the site against 13 developer-tool
documentation sites (examined July 2026) and lists the prioritised gaps.
Done so far
| Change |
Closes |
Quickstart — new page: one docker run … demo on in-memory SQLite, then create a user, store and retrieve an encrypted file. No database server, no setup wizard; ephemeral by design, so the fixed DEMO key cannot leak into production |
Question 2 (partial) |
Licensing and limits — new page: what the licence controls (record count and expiry, never features), what counts as a record, licence scope per deployment, behaviour at the cap and at expiry, checking usage via SystemGetSystemStats |
Question 6 |
Wrapping key rotation — rewritten as a runbook: prerequisites, the SystemGenerateWrappingKey call, storing the returned key before restarting, verification, and a What is recoverable failure matrix |
Half of question 5 |
Master key — documents the two independent wrappings (encryptedkey / recoverykey), which is what makes rotation O(1) in vault size and keeps Shamir shares valid across rotations |
Half of question 5 |
| Shamir keys — rewritten around share custody: hex format, distribution across custodians and systems, audit cadence, and what happens below the three-share threshold |
Half of question 5 |
Database-level tenant isolation — the PostgreSQL mtenant / madmin role model, RLS policies, covered tables, why xtokens is excluded, and how the cross-tenant bypass is constrained |
Question 7 (partial) |
| Security overview — corrected an unqualified "Shamir shares recover a lost wrapping key" claim, added the no-key-copy/no-escrow position, and added encryption service availability |
Question 7 (partial) |
| Production checklist — new page: a go-live gate covering keys, database, network, access control, backup, licence capacity, and monitoring, linking out to the deep pages |
Question 4 (partial) |
Backup and recovery — new page: the three artefacts a backup needs (database + wrapping key + licence), restore runbook, RPO/RTO, a restore drill, and the sanctioned BulkListAllUsers export path |
Question 5, question 8 (out) |
Voice pass — every ## Conclusion / ## Why Choose sales block removed site-wide, marketing openers cut, emoji headings gone, and Next steps added to 8 dead-end pages. Nine pages now route readers to the quickstart, up from three |
Question 1 (partial) |
Monitoring — new page: Prometheus scrape config and alert rules with thresholds from the benchmarks, plus licence usage and database health, which /metrics does not report |
Question 4 (partial) |
| Migrations — new nav group after Comparisons: an overview of the shared pattern, plus guides for a SQL users table and AWS Cognito |
Question 8 |
| SDK page — install commands and a create-a-user example for JavaScript, TypeScript, Python, PHP and Java; the Java client is documented via JitPack, since it is not on Maven Central |
Question 2 (partial) |
| Session management — new how-to: server-side sessions with sliding and absolute expiry, logout, log out everywhere, cookie settings. Writing it surfaced Redis-mode bugs in delete, list and tenant isolation, fixed in databunkerpro #61 |
Question 2 (partial) |
Developer hub — card-grid landing page on the marketing site: first API call in cURL and four SDKs, the round trip to a masked UserGet, benchmark strip, API reference and OpenAPI spec |
Question 1 (partial) |
The highest-value remaining gaps are a changelog (P1.7) — the only thing between question 9 and a
tick — and the threat model (P1.2).
Sites benchmarked
| Tool |
Category |
The pattern worth stealing |
| Stripe |
payments |
Dual entry on the hub: by use case ("Accept payments online") and by getting-started step. Plus an agent-first block: install the CLI, load the stripe-docs skill. |
| Twilio |
comms API |
Dedicated error-codes reference, changelog, and pricing as first-class nav items — not buried in prose. |
| Supabase |
database/BaaS |
11 framework quickstarts as a logo grid above the fold ("Connect a framework"). AI prompt + CLI install in the first screen. |
| Clerk |
auth |
Quickstarts split by frontend framework (11), backend framework (8), community SDKs (8), plus a "How Clerk works" architecture page and a "Securing your application" page. |
| Neon |
Postgres |
npx neon@latest init as the first step. 30+ framework guides. A whole "AI tools" section (Cursor, Claude Code, Codex, Copilot). |
| ClickHouse |
database |
Four hub cards: Get started / Guides / Reference / Solutions — with Migration guides and Best practices inside Get started. MCP server + "Ask AI" in the hero. |
| Temporal |
workflow infra |
"Production Deployment" is a top-level section, equal in weight to Quickstart and Developer Guide. Self-host and cloud share one path. |
| HashiCorp Vault |
secrets (competitor) |
An explicit OPERATIONS section: configuration → deployment → upgrades → sysadmin. Plus Internals (architecture), FIPS/HSM hardening, a glossary, and 11 prior versions of docs kept online. |
| Tailscale |
security infra |
IA split by role: Get started / Manage your tailnet / Expand / Resources & reference, with security, privacy & compliance as its own resource area so it doesn't clutter the product nav. |
| PostHog |
analytics |
Docs-as-marketing. Plain, casual voice. Multi-surface: web, CLI, MCP, IDE. |
| Infisical |
secrets, open-core |
Clean self-hosting vs cloud split, feature-module nav, llms.txt index. |
| Skyflow |
PII vault (closest competitor) |
Fundamentals (get started + usage patterns for PII / PCI / LLM privacy / analytics + core concepts), then Governance, Tokenization, Connections, SDKs, API Reference, Release Notes. |
| Basis Theory |
tokenization/PCI vault |
Nav organised by use case — including Migrations as a use case — and a Platform section containing Testing and an interactive Production Checklist (account, PCI, access controls, operations, code). |
Patterns all 13 share that this repo is still missing
- Per-language code, everywhere. Stripe/Twilio/Clerk/Supabase/Neon lead with SDK snippets and keep a language selector. Here
openapi.yml has zero x-codeSamples across 92 endpoints, and pii-vault.mdx hand-writes raw axios and requests calls.
- Upgrades / version support. Vault and Temporal both document them; there is no upgrade page here.
- Proof of life. Changelog / release notes / version selector. All 13 have at least one. This repo has none — which, for self-hosted software a CTO must commit to running, reads as abandoned or immature.
Score against the ten questions a CTO asks
| # |
Question |
Today |
Still missing |