Security
Documents and keys deserve specifics, not adjectives.
Book Fork's security posture is documented and auditable. This page lists the verified controls — and the known limitations, because a security page that only lists strengths is selling, not informing.
Verified controls.
| Area | Control |
|---|---|
| Provider keys | Fernet-encrypted at rest; stored in a superuser-only collection; never logged or returned |
| Sessions | Encrypted, HttpOnly cookie; the PocketBase token is never exposed to JavaScript |
| CSRF | Signed double-submit token on every state-changing request, including admin |
| Endpoint safety | SSRF guard blocks loopback, private, link-local and metadata addresses; no redirects followed |
| Uploads | Content-sniffed type, ZIP-bomb and traversal guards, symlink rejection, size ceilings |
| Authorization | Server-side ownership checks on every read; never reliant on hidden UI |
| Browser | CSP, HSTS in production, X-Content-Type-Options, Referrer-Policy, Permissions-Policy |
| Abuse | Per-IP/per-user rate limits on auth, signup, reset, upload, provider tests, translation and retry |
| Logging | Sensitive keys redacted; document bodies and prompts never logged |
Your data, in your hands.
Self-hosting removes egress
Run Book Fork and a local model and your documents never leave your network. Storage is your filesystem or your S3 bucket.
You choose who sees the text
Document content is sent only to the provider you select. Book Fork itself does not log document bodies, and raw LLM responses are not retained by default.
Known limitations (documented, not hidden)
The SSRF check is time-of-check, not time-of-use — a DNS-rebinding attack is a documented residual risk, with address pinning as the upgrade path. Rate limiting and metrics are per-process and not shared across replicas. Email delivery depends on PocketBase's mailer. Book Fork makes no certification or compliance claims.
Responsible disclosure.
Security reports are welcome. The repository publishes a security policy, /.well-known/security.txt is served by the site, and the full security audit — scope, controls and dispositions — ships in the code. Please report privately before disclosing publicly.
Verify it yourself.
Every control above is in the repository, with the tests that enforce it.