Reference
Security posture
What Papyra does to protect your notes, what it deliberately does not claim, and how to report a problem.
Papyra is self-hosted software holding people’s private writing. This page says plainly what it does and does not do, so you can decide how to run it.
Accounts and sessions
- Passwords are hashed with BCrypt.
- Sign-in is throttled per account (ten attempts per fifteen minutes), and the auth endpoints are also rate-limited per IP.
- Sessions are cookie-based:
HttpOnly,SameSite=Lax, andSecurein production unless you explicitly turn that off for a private network. - The signing keys live on the data volume, so restarting or upgrading the container does not silently sign everybody out.
- An account created or reset by an administrator must set its own password before the API will do anything else for it.
- Every account sets up an authenticator app. Administrators always sign in with a password and a code; other accounts can turn that on. “Remember this device” skips the code on that browser for 30 days.
- Sensitive actions (exporting your notes, creating an API key, changing your email, deleting the account) ask for a fresh code as well.
Isolation between accounts
Each account’s notes live in their own directory, and every path the API resolves is checked against that directory before any read or write. A crafted note id cannot walk out into another account’s vault; the request is refused.
This is enforced in the storage layer rather than by filtering results, so it holds on code paths nobody thought about specifically. Personal access tokens inherit the same boundary as the account that made them.
Administrators can manage accounts but cannot read other people’s notes. There is no screen for it and no code that would produce one.
Vault notes
A note marked secure has its body withheld by the server. The API returns metadata and an empty body until you unlock the vault with its PIN (or a passkey), which issues a short-lived token the server checks before sending any text.
The blur in the UI is cosmetic. The lock is that the bytes were never sent.
Vault notes are never shareable and never deliver a mention.
Tokens and secrets
- Personal access tokens are stored hashed and shown once, at creation.
- The SMTP password is write-only over the API: the server reports whether one is set, never its value.
- Outbound webhooks are HMAC-signed so the receiver can verify the delivery came from your instance.
Transport and headers
Security headers and a Content-Security-Policy are set on every response. Forwarded headers are only trusted from proxies you have explicitly listed, so an unlisted proxy cannot spoof a client address past the rate limiter.
What Papyra does not claim
- Ordinary notes are not encrypted at rest. They are plain files on your disk, which is the entire point of the design. Use full-disk encryption if you need it. Encrypted backups are a separate, supported thing.
- Locked notes are encrypted at rest, with the key on the same server. Their
files are sealed with a per-account key ring kept in
.papyra/, so a copied notes folder or a plain git mirror does not expose them. Someone with the whole disk, keys included, could still open them. If you lose the keys, nobody can, so back up the whole/datafolder, hidden folders included. - No third-party audit has been performed.
- This is young software. It has been in daily use, but not for years. Keep backups.
The developer portal is reachable in production
Your instance serves live API documentation at /docs, deliberately, so
self-hosters have real documentation for their own server. It documents the same
authenticated endpoints and grants nothing. The reader has to supply their own
personal access token to try anything.
The update check
Once a day the server looks at GitHub for the newest release. That is the only request it makes without anyone setting it up, it sends nothing about your server, and you can turn it off. See The update check. Everything else it can send out, and to whom, is in Notifications.
Reporting a problem
Report security issues privately through GitHub’s security advisories rather than opening a public issue.
Papyra is GPL-3.0, so you can check all of the above against the source instead of taking it on trust.
Something wrong or missing? Improve this page on GitHub.