Backend architecture for sensitive data
Start here
If you’re new here, this is the order I’d suggest: one article per topic, the one that best explains what that topic is about, and what to read next.
Tenant Isolation Is a Structural Property, Not a WHERE Clause
The foundation for everything else: why isolation between customers can’t depend on nobody ever forgetting a line.
Opens the series Isolation.
The Multi-tenant isolation article →02 · Applied encryption
Searching Encrypted Data Without Decrypting It: Blind Indexes in Practice
The problem that shows up as soon as you encrypt a field: still being able to search it without decrypting it.
The Applied encryption article →03 · Traceability and auditability
An Append-Only Log Is Not a Log: It Is Your Only Version of Events
What separates a record that works as evidence from a log anyone with the right permissions can rewrite.
The Traceability and auditability article →04 · Boundaries and verification
Hexagonal Architecture in FastAPI: Putting Rules Where They Can Be Checked
The structure the rest of the topic builds on: where each rule lives and how to check it without booting the app.
The Boundaries and verification article →05 · Engineering when an agent writes the code
Spec-First With Coding Agents: Making Invariants Machine-Checkable
Why an agent is held back less by the model than by how precisely the requirement is written.
The Engineering when an agent writes the code article →