Security and privacy
Hoopoe is designed to run on your own machine and stay there. There is no cloud, no telemetry, no third-party analytics — the only network traffic Hoopoe initiates is the one you ask for (an import, a backup export, an MCP call to a model you connect yourself).
Security model
LAN-only by default. The Docker Compose stack exposes the frontend
(nginx) on your host's network interfaces and publishes the backend and
Postgres on 127.0.0.1 only, and the recommended posture is to keep Hoopoe reachable
from your home network only — behind your router, not exposed to the public
internet. The Tauri desktop build goes one step further: it binds to
127.0.0.1 on a random port and is unreachable from any other machine.
Authentication. The session-based auth path (AUTH_MODE=session, the
Docker default) uses @fastify/session with a signed cookie. On successful
login the session id is regenerated (req.session.regenerate()) to prevent
session fixation, and /api/auth/logout destroys the session server-side.
Changing your password or turning off two-factor authentication signs out
every other session of your account; the one you made the change from stays
open. After five wrong two-factor codes in a row, the account's 2FA check is
locked for 15 minutes, from any device or address.
Login is rate-limited by @fastify/rate-limit to slow down brute-force
attempts against weak passwords.
Password hashing. Passwords are hashed with argon2id via
@node-rs/argon2 using the OWASP 2024 minimum parameters (19 MiB memory,
2 iterations, parallelism 1) and a per-user random salt. Neither the raw
password nor a reversible representation is ever stored.
Open registration on the LAN. Onboarding creates the first user
account, and by default the endpoint stays open afterwards: anyone who can
reach the app on your network can create their own account from the login
screen ("Créer un compte"). Every account's data is fully isolated — another user
can never see your transactions — and usernames are unique, so nobody can
register over the top of yours. Registration is rate-limited; to stop new
sign-ups once everyone has an account, set ALLOW_REGISTRATION=false in
.env and restart the stack. The first account can always be created;
afterwards the endpoint returns 403 registration_closed and the login
page hides the "create an account" link. For stricter access, add a
firewall or VPN (see
SECURITY.md).
Desktop path. The Tauri build runs with AUTH_MODE=none: no cookies,
no login screen, a single hard-coded local user is seeded on first boot.
That trade-off is safe because the backend never leaves 127.0.0.1 — no
other process on the LAN can reach it. As a second guard, in this mode
the backend only answers requests whose Host header is 127.0.0.1,
localhost or [::1] (a web page that points its own hostname at
127.0.0.1 gets a 403), and the LAN/Docker server refuses to start with
AUTH_MODE=none at all.
Screen lock
After 5 minutes of no mouse, keyboard, scroll, or touch activity, Hoopoe shows a full-screen lock overlay. Your session and everything you were doing — current page, filters, unsaved form drafts — survive the lock; only the view is hidden. The eye button in the layout locks the screen immediately, on demand.
Unlocking needs a password, verified server-side. On the LAN
(AUTH_MODE=session) that's your account password, checked against the
same argon2id hash used at login — there is no separate PIN to remember.
On the desktop app (AUTH_MODE=none, no login screen, no account
password to reuse) the lock is opt-in: set one from Réglages under
"Mot de passe de verrouillage." Until you set a desktop lock password,
the idle timer never arms and the eye button stays hidden — there is
nothing to lock.
Honest threat model. This is a client-enforced lock, not a
server-enforced one: it protects against someone else picking up your
keyboard while you've stepped away, not against someone with access to
your disk or database file — the underlying data is exactly as protected
(or not) as described elsewhere on this page regardless of whether the
screen is locked. A locked flag also persists to localStorage so an F5
or an app relaunch boots back into the locked state instead of quietly
handing over an already-open session.
Desktop recovery. If you forget your desktop lock password, there is
no email-reset flow — the fix is a local curl command run on the same
machine, which resets the lock password back to unset:
curl -X POST http://localhost:<port>/api/auth/lock-password/reset
Then quit and relaunch the app — the lock state is re-read at startup, so the running app won't notice the reset until it restarts.
Replace <port> with the sidecar's port for this install: the desktop
app binds to an OS-assigned port and writes it to a .mcp-port file
next to athena.db in its data directory (see MCP access for
the per-OS paths). Because this only works from 127.0.0.1, running it
already requires the kind of local access that could read the database
directly — it doesn't weaken the desktop trust model described above.
Network boundary
Postgres bound to 127.0.0.1. In the shipped Docker Compose file the
Postgres service is not exposed on 0.0.0.0 — its port is bound to the
loopback interface so that the database is reachable from the backend
container over the internal Docker network but not from other machines on
your LAN. The only surface intentionally reachable from the LAN is the
frontend's HTTP port. See
Configuration reference for the exact
port defaults.
MCP endpoint. /api/mcp/rpc is the one route intended to accept
remote calls from a model runtime (Claude Desktop, Cursor, etc.). It is
gated by a per-user bearer token you mint from Settings → MCP; every token
is encrypted at rest using pgcrypto and the request/response envelope is
encrypted with the same key so an inspector on the wire only sees ciphertext.
Revoking a token from Settings invalidates it immediately.
Backups are always encrypted
Hoopoe's backup export (/api/backup/export, or the button on the Data
tab) requires a passphrase: the dump — every account, transaction,
category, rule, budget, and checkpoint — is sealed with AES-256-GCM under
a scrypt-derived key (N=2¹⁵, r=8, p=1), which makes it both unreadable and
tamper-evident without the passphrase. There is no plain-JSON option, and
no passphrase recovery; losing the passphrase means losing the backup.
Restoring prompts for the same passphrase.
Scheduled remote backups
push that same sealed envelope to your WebDAV server or backup folder —
the file that lands on the destination is never readable without the
passphrase. The destination's own secrets (the WebDAV or FTP password and the
backup passphrase the scheduler seals with) are stored encrypted at rest
— AES-256-GCM under a key derived from the server's SESSION_SECRET,
bound to your user id — and no API response ever echoes them back.
See Backup and recovery for the full round-trip and the corrupt-file recovery playbook.
Privacy stance
- No telemetry. Hoopoe does not phone home. No usage metrics, no crash reports, no "anonymous" analytics beacon — nothing leaves your machine unless you initiate it.
- No third-party analytics. The frontend loads no Google Analytics, Plausible, Segment, Sentry, or equivalent. There are no third-party scripts on any page.
- No cloud. There is no Hoopoe backend service, no shared account system, no "sign in with Hoopoe." Every install is self-contained.
- Your data stays yours. The database file lives in your
DATA_DIR(see Configuration reference); backups land wherever you point them. Uninstalling Hoopoe and deleting that directory is a complete data wipe.
See also
- Encryption at rest — the desktop app's opt-in database encryption, and how to encrypt the Postgres volume on Docker/LAN.
- Backup and recovery — export, restore, and recover from a corrupt database.
- Configuration reference — the env vars behind auth, session, network binding, and data directory choices.