Architecture portfolio

ADR 004

End-to-end encrypted sync for a home inventory app

Decided, not built2 December 2026Scope: EverydayOS

Context

EverydayOS is a local-first home organiser. Users record where they keep things, what they own, what's valuable and when they travel. Users wanted multi-device sync. To a burglar, that dataset is a shopping list with dates attached. Under India's DPDP Act, anyone who holds that data on a server becomes its data fiduciary, with breach-notification duties.

Options considered

OptionForAgainst
A: server-readable sync (normal API and database)Fastest to build; server-side search and sharing; easy password resetA breach exposes every user's valuables and travel dates; I hold sensitive personal data and its legal duties
No sync (status quo, export and import a file)Zero riskThe top user request goes unmet
B: end-to-end encrypted syncThe server stores only ciphertext, so a breach exposes nothing readable; much smaller compliance surfaceHard key management: device pairing, a recovery key, and no server-side search; losing the recovery key loses the data

Decision

Consequences

Revisit when

At bank scale

The same reasoning applies as data classification. Data minimisation and encryption, with keys the operator can't read, reduce the blast radius and the regulatory scope. In a bank you'd use customer-managed keys in an HSM, field-level encryption for the most sensitive attributes, and tokenisation for card and account numbers.