Spain · 2026 World Cup champions
AXTO
ComplianceJuly 21, 2026· 8 min read

Privacy by Design: Building Systems That Don't Become Liabilities

Privacy regulation punishes collecting and mishandling personal data. Designing for privacy from the start is cheaper, safer and increasingly non-optional.

Privacy regulations around the world share a common thrust: personal data is a responsibility, not a free resource, and mishandling it carries real penalties. For engineers, this reframes a habit the industry spent years building — collect everything, keep it forever, figure out the use later — into a liability. The durable response is privacy by design: building systems that respect personal data from the first architecture decision, rather than bolting on compliance after a regulator or a breach forces the issue. It is cheaper, safer, and increasingly not optional.

The good news is that most privacy-by-design principles are also just good engineering, aligned with security and simplicity.

Collect less, keep it shorter

The single most powerful privacy principle is data minimization: collect only the personal data you actually need for a defined purpose, and keep it only as long as that purpose requires. Data you never collected cannot be breached, subpoenaed, misused or mismanaged. Data you deleted on schedule is not a growing liability sitting in a database waiting for the worst day. The reflex to hoard "in case it's useful later" is precisely the reflex regulation targets and breaches punish.

This is liberating rather than restrictive: less data means less to secure, less to govern, less to explain to an auditor, and less to lose. Purpose limitation — using data only for what it was collected for — follows naturally and keeps you out of the "we used it for something they never agreed to" trap.

Build the rights in

Modern privacy laws grant individuals rights over their data — to access it, correct it, delete it, and sometimes to have it exported. Systems designed without these in mind make them agonizing: personal data scattered across dozens of services with no way to find, export or delete one person's records. Designing so that data is discoverable and deletable per individual from the start turns a legally required, potentially expensive obligation into a routine operation. The ability to answer "delete everything about this person" cleanly is an architecture decision best made early.

The same discoverability that serves user rights also serves security: knowing exactly where personal data lives is the foundation of protecting it.

Protect and separate

Privacy by design leans on familiar security practices with a privacy lens. Encrypt personal data at rest and in transit. Restrict access to those who genuinely need it, and log that access. Separate and specially protect the most sensitive categories. Where possible, reduce identifiability — pseudonymizing or anonymizing data so that even if it leaks, it reveals less. Consider privacy impact before launching anything that processes personal data at scale, catching problems while they are still cheap to fix.

None of this is exotic; it is the same minimization, access control, encryption and lifecycle discipline that good security already teaches, pointed deliberately at personal data. Build systems that collect less, keep it shorter, make individual rights easy, and protect what remains, and privacy stops being a compliance scramble bolted on under duress. It becomes what it should be: a property of well-designed systems that are, not coincidentally, also more secure and simpler to run.

Where the idea comes from

Privacy by design was formulated in the 1990s by Ann Cavoukian, then Information and Privacy Commissioner of Ontario, as a set of seven foundational principles: be proactive rather than reactive; make privacy the default setting; embed privacy into the design; aim for full functionality without false trade-offs; secure data throughout its lifecycle; keep processing visible and transparent; and respect the interests of users. The European GDPR later turned the idea into law, requiring data protection by design and by default in Article 25. For engineers, the principles translate into concrete, testable design decisions.

Start with a data map

You cannot protect personal data you have not located. For each system, record what personal data it collects, where it comes from, why it is needed, where it is stored, which services and vendors receive it and how long it is kept. Include less obvious places: logs, analytics tools, backups, data warehouses, support tickets and caches. Keeping this map close to the code — for example, as annotations on database schemas or a data catalogue updated during reviews — makes it far more likely to stay accurate than a spreadsheet maintained separately.

Privacy as the default

Defaults matter because most people never change them. New accounts should start with the most privacy-protective settings: profiles not public, optional data sharing switched off, marketing communications opt-in rather than opt-out where law requires it. Collect optional fields only when a user chooses to provide them. When adding a feature that processes personal data in new ways, ask what the most private version of it would look like and start from there, adding more data only when there is a clear need.

Pseudonymization and anonymization

Replacing names and identifiers with tokens reduces risk, but it is important to understand what that achieves. Pseudonymized data can still be linked back to individuals using additional information, so under the GDPR it remains personal data, although it is a recognized safeguard. Truly anonymized data cannot reasonably be re-identified and falls outside data protection law, but genuine anonymization is harder than it looks: combinations of postcode, birth date and gender, or detailed location histories, can identify people even without names. Use aggregation, generalization and careful review before calling a data set anonymous.

Analytics without over-collection

Product analytics often collects far more than needed. Decide which questions the data must answer, and collect events that answer them, rather than recording every click with full user details. Aggregate where possible, shorten identifiers, truncate IP addresses, avoid capturing free-text fields that may contain personal information and set retention periods for raw events. Session-replay tools deserve particular care, because they can record everything typed on a page, including information users never intended to submit.

Third-party code and trackers

Every analytics script, advertising tag, chat widget and software development kit added to a website or app can collect personal data and send it to another company. Maintain an inventory of third-party code, review what each component collects and where it sends it, and remove what is no longer needed. Where consent is required, ensure that trackers are not loaded until the user has agreed, and test this regularly, because changes by marketing tools or tag managers can quietly reintroduce tracking before consent.

Retention you can enforce

Retention policies only work when systems enforce them. Build deletion into the design: time-to-live settings on records and caches, scheduled jobs that remove expired data, and partitioning by date so that old data can be dropped efficiently. Remember derived copies — search indexes, analytics exports, machine learning features and backups. Backups usually cannot be edited record by record, so set their retention to match your policy and make sure deleted data is not restored into live systems when a backup is used.

Tooling for individual rights

Handling requests from individuals to access, correct, export or delete their data is much easier when systems are designed for it. Use a consistent internal user identifier across services, so that a single request can locate all related records. Build internal tools that collect a person's data into a readable export and that delete or anonymize it everywhere, including in downstream systems and with processors who received it. Log each request and its completion, verify the identity of requesters carefully and measure how long requests take to complete.

Keep production data out of testing

Copies of production databases used for development and testing are a frequent source of privacy incidents, because test environments are usually less protected. Generate synthetic data for most testing, and where realistic data is essential, use masked or pseudonymized extracts with access controls equivalent to production. Apply the same rule to logs and screenshots shared in bug reports, and to data used for training machine learning models, where only the minimum needed should be included.

Privacy impact assessments

For processing likely to pose high risks to people, the GDPR requires a data protection impact assessment before the processing begins. Even where it is not legally required, a lightweight privacy review is valuable for any significant new feature: what data is involved, why, who can access it, what could go wrong for the people concerned and which safeguards reduce that risk. Integrating these questions into design documents and pull request templates makes privacy review a normal part of building features rather than a late-stage obstacle.

Breaches and notification

Despite precautions, breaches happen, and privacy law sets timelines for responding. Under the GDPR, a personal data breach must generally be reported to the supervisory authority within 72 hours of becoming aware of it, unless it is unlikely to result in a risk to individuals, and affected people must be told when the risk to them is high. Meeting those deadlines depends on preparation: knowing where personal data lives, having logs that show what was accessed and having a response plan that includes legal and communications roles.

A privacy checklist for every feature

Before shipping, ask: what personal data does this feature collect, and is each item necessary? Are the defaults the most private reasonable option? Where is the data stored, who can access it and is that access logged? How long is it kept, and how is it deleted? Which third parties receive it? Can we find, export and delete it for one person? Has the data map been updated? Answering these questions takes minutes and prevents most of the privacy problems that later become expensive.

Run AI on your own terms

AXTO gives you world-class AI apps and self-hosted editions — on your own keys, your own data.