Security Model

Keep authentication, organization scoping, provider keys, and parser access explicit.

Better Accountant treats accounting state and source evidence as sensitive workspace data.

Security controls belong in the backend, not only in the interface.

Core controls

ControlEnforcement point
AuthenticationBetter Auth with Convex-backed user resolution.
Organization scopeConvex queries, mutations, and actions.
Provider secretsEncrypted before storage and only used server-side.
Parser accessShared-secret protected service endpoints.
File source allowlistParser downloads only from allowed storage hosts.
Runtime validationConvex validators and domain checks before state changes.

AI permissions

AI-assisted tools should be evaluated before they mutate accounting state. High-impact or amount-bearing actions require approval boundaries appropriate to the user role and risk.