How Leaf protects your data
Last updated 7 October 2026
Leaf keeps money figures you type in yourself. This page says what that means in practice: what is stored, where, and what stands between it and anyone who is not you. It lists only what is actually in place.
In short
- Leaf never connects to a bank. There are no bank credentials to protect because none are asked for.
- Your password is never stored or seen by Leaf, only a one-way hash kept by the sign-in system.
- Every record is tagged with its owner, and the database itself refuses to show or change another person’s rows.
- Connections are encrypted (HTTPS), and browsers are told to keep using HTTPS for two years.
- No adverts, no analytics trackers, no selling or sharing of your information.
- You can export everything and delete your account yourself, at any time.
What is stored
| To sign you in | Your email address, a display name, a one-way hash of your password, and a record of each signed-in device (a random session token, when it expires, the IP address and browser it came from). |
|---|---|
| What you enter | Accounts (nickname, type, the institution you picked from the list, balances and the dates you entered them), transactions (date, amount, type, description, merchant name, tags, category, notes), bills, paydays and income amounts, debts and your payoff settings, savings goals, budget targets and planned income, transaction rules, categories, and preferences such as currency, time zone, safety buffer and how your Overview is arranged. |
| Derived records | A daily note of your “Available until payday” estimate and its breakdown (so “What changed?” can explain a difference), a debt starting point if you save one, which bill reminders were sent, the summary and column mapping of each CSV import, and which transactions a rule run changed (so it can be undone). |
| Technical | Rate-limit counters keyed by IP address, covering windows of at most ten minutes, and server error logs that record the error type and route only. |
Leaf does not store your bank login, card numbers, government identifiers or the CSV file you upload.
Where it lives
| Application | Vercel Inc., United States. Leaf’s server code runs in Vercel’s default region, Washington, D.C. (iad1). Vercel also terminates HTTPS and serves the static parts of the site from its network. |
|---|---|
| Database | Neon Inc. (managed PostgreSQL), hosted on Amazon Web Services in Oregon, United States (us-west-2). Connections between Leaf and the database require TLS. |
| Resend, United States. Resend only receives the address and the message for the account emails listed under Your controls; it never receives balances or transactions. |
Each provider keeps its own backups and restore history. When you delete your account, your rows leave the live database at once but can remain in those backups for a limited time before they expire. There are no other recipients of your data.
Signing in
- Passwords must be at least 10 characters. They are hashed by the sign-in framework (Better Auth) before they are stored; Leaf’s own code never handles the password after sign-in.
- A new account must confirm its email address before it can be used. Confirmation links expire after 24 hours; password-reset links after one hour.
- Sign-up and “forgot password” answer the same way whether or not an address is registered, so the forms cannot be used to check who has an account.
- Sessions live in a cookie the page’s scripts cannot read (HttpOnly, Secure, SameSite). Every request checks the session against the database, so signing out, changing or resetting your password ends every other device’s session immediately. You can also sign out individual devices from Settings → Security.
- Sign-in, sign-up, verification, reset, password-change and delete requests are rate-limited per address, with the counters kept in the database.
- Deleting your account asks for your current password first.
Keeping accounts apart
Every table that holds your figures has an owner column, and PostgreSQL row-level security is switched on for each of them. Leaf’s server opens the database as a restricted role and sets the signed-in person’s id for the duration of each request; the database then hides and refuses to change rows that belong to anyone else, even if a line of application code had a mistake. Automated tests check this for every table on every build.
In transit and in the browser
- The site is served over HTTPS only. Plain-HTTP requests are redirected, and a Strict-Transport-Security header asks browsers to keep using HTTPS for two years, including subdomains.
- Every page carries a Content Security Policy, so scripts and connections are limited to Leaf’s own origin, and the site refuses to be shown inside another site’s frame.
- Leaf sets one kind of cookie: the session cookie. Your light/dark choice is kept in this browser’s local storage and is never sent to Leaf.
- Pages are rendered on the server with your data and sent to your browser; nothing is cached in a shared place between people.
CSV imports
A bank export you upload is read in memory to build the preview and the import, up to 2 MB and 5,000 rows. The file itself is not written anywhere. Leaf keeps the rows you chose to import as ordinary transactions, plus a summary of the import (file name, counts, column mapping) so it can be undone.
Logs and monitoring
When something goes wrong on the server, one line is logged with the error type, a shortened message with any email-like text removed, the route and the request method. Request bodies, query strings, cookies, headers, user ids and amounts are never logged. There is no analytics product and no error-monitoring service connected; if one is added later this page will say so.
Your controls
- Export: Settings → Your data gives you everything you have entered as JSON, plus your transactions as CSV.
- Correct: every figure can be edited or removed inside the app.
- Delete: Settings → Security → Delete account removes your sign-in and every record in one database transaction, then sends a confirmation email.
- Emails: Leaf sends account emails only: confirm your address, reset your password, a notice when your password changes, and a notice when your account is deleted. Bill reminders are optional, off by default, and name the bill and due date only, never amounts.
What Leaf does not do or claim
- No bank connections or financial-data aggregators. Choosing an institution only labels your account.
- No two-factor authentication or passkeys yet. Use a long, unique password and a password manager.
- No security certifications (such as SOC 2 or ISO 27001) and no independent penetration test have been obtained. The protections above are built in and tested by the people who build Leaf, not audited by a third party.
- No encryption of individual fields inside the database beyond what the providers apply to their storage. The database provider encrypts data at rest on its infrastructure; Leaf does not add a second layer.
- No guarantee. No system is perfectly secure, and Leaf is run by a very small team.
Reporting a problem
If you believe you have found a security problem, please tell us before telling anyone else. A dedicated reporting address is being set up and will be published here; until then, reply to any account email you have received from Leaf. Please do not test against other people’s accounts.
See also the privacy policy and the terms of use.