Backend architecture for sensitive data
Topics
Five topics, one question: what separates a system you can trust with customer data from one that merely works. Every figure comes with the code to reproduce it.
01
Multi-tenant isolation
How you stop one customer seeing another customer’s data: the tenant invariant, Row Level Security, route audits and IDOR.
Start with Tenant Isolation Is a Structural Property, Not a WHERE Clause
See the article →02
Applied encryption
Field-level encryption without losing search: blind indexes, key rotation and crypto-shredding.
Start with Searching Encrypted Data Without Decrypting It: Blind Indexes in Practice
See the article →03
Traceability and auditability
Records that work as evidence rather than as logs: append-only, non-repudiation, and the tension between erasure and immutability.
Start with An Append-Only Log Is Not a Log: It Is Your Only Version of Events
See the article →04
Boundaries and verification
Where each decision lives and how it gets checked: hexagonal architecture, value objects and tests that break the build.
Start with Hexagonal Architecture in FastAPI: Putting Rules Where They Can Be Checked
See the article →05
Engineering when an agent writes the code
What changes in the design when an agent writes the code: machine-checkable specs, reviewing code you did not write, and what never to delegate.
Start with Spec-First With Coding Agents: Making Invariants Machine-Checkable
See the article →