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.

AreaControl
Provider keysFernet-encrypted at rest; stored in a superuser-only collection; never logged or returned
SessionsEncrypted, HttpOnly cookie; the PocketBase token is never exposed to JavaScript
CSRFSigned double-submit token on every state-changing request, including admin
Endpoint safetySSRF guard blocks loopback, private, link-local and metadata addresses; no redirects followed
UploadsContent-sniffed type, ZIP-bomb and traversal guards, symlink rejection, size ceilings
AuthorizationServer-side ownership checks on every read; never reliant on hidden UI
BrowserCSP, HSTS in production, X-Content-Type-Options, Referrer-Policy, Permissions-Policy
AbusePer-IP/per-user rate limits on auth, signup, reset, upload, provider tests, translation and retry
LoggingSensitive 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.