Chapter 6: Security, Privacy, and Multi-User Isolation
When you use appreise to manage your finances, you entrust it with your bank connections, your repository access, and your financial history. This chapter explains how your passwords, bank tokens, and ledgers are protected, what your AI assistant can and cannot see, and how accounts are isolated from one another on the hosted service.
1. Who connects to Plaid and who sees your bank passwords
Three separate systems participate when you use appreise: your web browser, appreise (ledgerd), and your AI assistant (such as Claude). Each has a strict boundary:
- Your bank username and password never touch appreise or your AI assistant. When you ask your AI assistant to connect a bank, appreise generates a one-time link (
/plaid/link) valid for 15 minutes and gives it to you. You open that link in your own web browser, where Plaid Link runs directly between your browser and Plaid. - Appreise (
ledgerd), not your AI assistant, connects to Plaid. Once you finish signing in to your bank in the browser, your browser sends a temporary one-time public token to appreise. Appreise exchanges that token directly with Plaid for a persistent Plaid access token, encrypts it immediately, and stores it on appreise's encrypted state disk. - Your AI assistant never sees bank credentials or Plaid tokens. Your AI assistant only receives account names, masked account numbers (such as
4821), balances, and statement lines that appreise fetches into your Git repositories.
What you can ask your AI assistant:
You say: "Which banks do I currently have connected, and how can I disconnect one?"
What happens:
Your assistant lists your connected banks and accounts without ever seeing the underlying Plaid tokens. If you ask to disconnect a bank, appreise revokes the connection at Plaid and deletes the encrypted token from its storage.
2. How your credentials are stored and encrypted at rest
Your financial records (accounts, transactions, balance checkpoints, and statement files) live in your own private Git repositories. Appreise stores only the minimum credentials needed to fetch your banks and push to your repositories, kept outside your Git repositories in per-user files locked to the service process (0600 owner-only file permissions):
- Connected bank tokens (
banks.json): Stored in your dedicated user folder (users/<your-user-id>/banks.json). Every Plaid access token is encrypted at rest using AES-256-GCM (authenticated encryption with a 256-bit key and a fresh random 12-byte nonce for every write). - GitHub repositories: Accessed through the appreise-ledger GitHub App. Appreise never stores a personal GitHub password or long-lived personal access token for GitHub. Instead, when you grant the GitHub App access to specific repositories, appreise checks that the repository is private and requests a short-lived installation token scoped only to the single repository it is reading or updating. Appreise refuses to operate on public GitHub repositories (refusing to list, add, adopt, create, pull, or push any public repository) so your financial records can never be accidentally exposed in public. If a repository is ever created as public by mistake, change its visibility to Private in GitHub (Settings -> Danger Zone -> Change repository visibility) before using it with appreise.
- Other Git hosts (Forgejo, GitLab, or custom SSH/HTTPS servers): If you connect a repository on another Git host using a per-repository access token or SSH deploy key, appreise encrypts that credential at rest with AES-256-GCM in
users/<your-user-id>/repo_credentials.json. It never writes the credential to logs or Git config files, and deletes it immediately when you remove the repository. - Second sign-in factor (
mfa.json): After GitHub sign-in, appreise enforces its own second factor before connecting banks, writing to any ledger, or authorizing an AI app: passkeys (WebAuthn with COSEES256and Ed25519, storing only the credential's public key and signature counter), an optional TOTP authenticator app fallback (encrypted at rest with AES-256-GCM under an HKDF-SHA256 subkey and AAD"appreise-mfa\0<user_id>\0<context>"), and 10 one-time recovery codes shown once at setup and stored only as salted HMAC-SHA256 digests under an independent HKDF subkey. Passing the second step lasts for your 8-hour browser session and is re-asked before sensitive actions (deleting your account, adding or removing a factor, regenerating recovery codes, or inviting a viewer or lender). Every enrollment, factor change, recovery-code use, and operator recovery reset (operator_mfa_reset, which also revokes active browser and AI app sessions) appears in your security activity log at/oauth/web/security.
3. How users are isolated from one another
On the hosted service (https://ledger.appreise.com), multiple users share the same server process while remaining isolated across five independent layers:
- Authenticated identity on every request: Every request from your AI assistant or browser includes an OAuth or Bearer token (stored only as a SHA-256 hash on the server). Appreise verifies the token and binds the request to your unique, validated user ID (such as
gh-<your-github-id>) before any operation runs. - Read-only versus read-write consent: When you sign in from your AI assistant, you choose either Read only or Read and write on appreise's consent page. In a read-only session, every tool that modifies a ledger, connects a bank, or changes a repository is disabled at the server.
- Separate per-user directories: Each user's configuration, encrypted bank tokens, encrypted repository credentials, and Git working checkouts live in a dedicated directory tree (
users/<your-user-id>/). No tool or request can reference paths outside that user's directory. - Cryptographic cross-user binding (AES-256-GCM AAD): When appreise encrypts a Plaid token, a repository credential, or a TOTP authenticator secret, it binds your exact
user_idand purpose context into the AES-256-GCM Additional Authenticated Data (AAD):
- Bank tokens bind
"appreise-plaid\0<user_id>\0<item_id>". - Repository credentials bind
"appreise-repo\0<user_id>\0<repo_url>". - Second-factor TOTP secrets bind
"appreise-mfa\0<user_id>\0<context>"(encrypted under an independent HKDF-SHA256 subkey).
Even if an encrypted entry from one user's file were ever copied into another user's file (or moved to a different repository URL or context), AES-256-GCM authentication fails and appreise refuses to decrypt it.
- Account-bound, short-lived browser links: Every one-time browser link for connecting a bank (
/plaid/link), uploading a statement (/upload), or viewing a printable report (/page/pfsand/page/report) expires after 15 minutes and is bound to the user ID that created it. On the hosted service, opening an upload or printable report link in a browser also verifies that your browser session is signed in as that same GitHub user.
4. What is backed up (and what is not)
Because your ledgers and statements already live in your own Git repositories on GitHub or your chosen Git host, you always hold the primary copy of your books.
Appreise's nightly server backups are designed so that backup archives never contain your plaintext financial history or an usable decryption key:
- What is backed up: Only the small encrypted service state files (
users.json,oauth.json, and each user'srepos.json, encryptedbanks.json, encryptedrepo_credentials.json, andmfa.jsonholding passkey public keys, encrypted TOTP secrets, salted recovery-code digests, and MFA audit records). - What is excluded from backups:
- Your Git checkouts and financial statements (
ws/) are never included in server backup archives. If a server disk is ever replaced, appreise restores the encrypted state files and re-clones your repositories from your Git host. - The AES-256-GCM master encryption key is never stored inside the backup archive. Without that separate key, the encrypted
banks.json,repo_credentials.json, and TOTP secrets inmfa.jsoninside a backup cannot be decrypted.
- Your Git checkouts and financial statements (
5. How to review or revoke access at any time
When you share a ledger or loan account with a Google address, /oauth/web/mfa?step_up=invite states each named ledger, email, and read-only scope before your passkey check. Clicking Share with <email> confirms only the exact shares listed on that page, and multiple pending shares can be confirmed together with one passkey check.
You can see every active viewer, lender, and company-owner share across your ledgers under Shared with others on /oauth/web/security, linked from Settings and the Shared navigation item. Clicking Revoke and confirming with your passkey ends that person's sessions at once, deletes their stored data for that ledger, and records the revocation in your security log.
You also stay in control of every connection you grant to your AI assistant, your banks, and your Git repositories:
- Switch your AI assistant to read-only or sign it out:
You say: "Sign out this AI session so I can reconnect with read-only access."
- Disconnect a bank connection:
You say: "Disconnect my Chase bank connection from appreise."
- Remove a ledger repository from appreise:
You say: "Remove my old sandbox ledger from appreise."
- Revoke GitHub repository access directly on GitHub: Open GitHub Settings -> Applications -> appreise-ledger -> Configure, where you can remove individual repositories or uninstall the GitHub App at any time. Your Beancount files and statements remain yours in your Git repository.