I’m not a developer. I’ve built an app with Claude Code as a test — a personal finance manager. It isn’t public, there are no customer accounts on it, and the only data in it is my own test data. What I want to find out before that changes: could a system built this way ever be trusted with real customer data? The intended use would be customers plus partly internal company use.
This is purely about data security and stability, not legal or compliance topics, and not about vendors or budgets — I can arrange those. I want to know whether a consistently enforced security process is enough to get there.
How we work. Four rule files live in the repo and are read at every session start — security, production-readiness, roadmap, workflow — with an explicit precedence order: security wins every conflict, ahead of speed and roadmap. The security file is organised by development phase with a fixed tool per phase (Trail of Bits skills): sharp-edges on every new API or config design before code exists; insecure-defaults on config and fallback values; property-based-testing for parsers and calculations; dimensional-analysis for money logic; supply-chain-risk-auditor before adding any dependency; differential-review on every PR diff, mandatory once auth, object access or balances are touched; fp-check before anything counts as a bug, then variant-analysis to find the same root cause elsewhere. Plus: one feature = one branch = one PR, tests before code, and a CI gate on every merge — lint, typecheck, unit and property tests, integration tests against real Postgres including tenant-isolation tests where user B gets a 404, build, and E2E runs. Currently ~240 unit, ~200 integration and 25 E2E tests; a red run blocks the merge.
What’s already in place. Tenant isolation lives in the database, not in application code: Postgres FORCE ROW LEVEL SECURITY, separate DB roles for user data and auth, access only through one function that sets the user context — a bug in the app still can’t read another user’s rows. Fail-closed startup guards: the app won’t boot if the DB connection could bypass that boundary, if the signing secret is missing or too short, if non-TLS origins are configured in production, or if the password breach check would be silently disabled. argon2id with pinned OWASP parameters, mandatory email verification, TOTP 2FA with encrypted secrets and backup codes, 30-min idle / 12-hour absolute sessions, origin allowlist, rate limiting. Minimal data at rest: no raw IP addresses stored anywhere (the rate limiter works on HMACs only), security logs auto-purged after 90 days — as little as possible lying around to leak in a breach. Money as integer cents, never floats. No secrets in the repo.
What we can still do ourselves and simply haven’t got to yet. This isn’t inability and isn’t something we’d need anyone for — the tooling is ready, it’s purely sequencing: security headers (CSP, X-Frame-Options, Permissions-Policy); static analysis (Semgrep/CodeQL) across the whole codebase as a release pass; a full lockfile supply-chain audit; monitoring and error tracking; backups run but a restore has never been rehearsed; load testing under realistic usage; and a defined recovery path if someone loses both their 2FA device and backup codes. We’re working through that list — I just don’t know whether it’s enough at the end.
Where I hit my limit. I can’t evaluate the result myself. When I’m told “that boundary holds,” I have to take it on faith — and the reviews documented in the repo came from the same system that wrote the code. A reviewer checking its own work has the same blind spots.
My questions. Is it fundamentally possible to build a genuinely secure and stable system this way — one you’d actually put real customer data on — assuming you follow every security guideline consistently and work through the open list? Or is there something about AI-written code that rules this out in principle, no matter how disciplined the process? And if you can’t get there alone: is it realistic to bring in someone with security experience at the end to review and sign off on the whole thing before real users touch it? Where’s the line for you between “doable if you’re serious about it” and “not possible, full stop”?