Now booking new projects — book a free 30-minute consultation. Book now
Engineering

Data Protection by Design: A Practical Engineering Guide

31 Aug 2026 8 min read
Data Protection by Design: A Practical Engineering Guide

If your product handles personal data — customer emails, payment details, health records, even just names and IP addresses — data protection by design isn’t paperwork you bolt on before launch. It’s an architecture decision, made in the same conversations as your database schema and your authentication model. This guide is for founders and CTOs who want to build GDPR compliant software properly from the first sprint, rather than retrofitting it after a customer, investor or regulator asks awkward questions.

Under UK GDPR Article 25, “data protection by design and by default” isn’t optional guidance — it’s a legal requirement for anyone controlling personal data about UK or EU individuals. But treat it as a compliance checkbox and you’ll miss the point. Done well, privacy by design also makes your product simpler, your database smaller, and your incident response calmer. Done badly — or not at all — it becomes the reason a due diligence process stalls or a security audit turns up findings nobody wants to explain to the board.

What data protection by design actually means

The ICO’s guidance on this is unambiguous: data protection by design means considering privacy and security from the outset of a project, not as a review stage before go-live. Data protection by default is the narrower, more concrete sibling — it means your system should only collect and use the personal data actually necessary for each specific purpose, and privacy-friendly settings should be the starting point, not something a user has to dig through settings to switch on.

In practice, this splits into decisions your engineering team makes every week:

  • What fields actually belong in a signup form, and which ones you’re collecting “just in case”
  • Whether a field needs to be queryable in plain text, or can be hashed or encrypted
  • How long you keep data after an account is closed, and whether deletion is a one-click job or a multi-table archaeology project
  • Which third-party services — analytics, email, payment processors — receive a copy of that data, and under what agreement

None of this is exotic. It’s the same rigour you’d apply to database schema design — except the growth you’re planning for here is regulatory scrutiny, not user volume.

Why retrofitting privacy costs more than building it in

Startups have one genuine advantage over incumbents here: no accumulated technical debt and no legacy processes to unpick. A team that decides on day one that user IDs are pseudonymised, that soft-deleted records get hard-deleted on a schedule, and that admin access to personal data is logged, never has to have the much more painful conversation eighteen months later about migrating a live production database to add those things after the fact.

We see this pattern most often in three places:

Multi-tenant data isolation

If you’re building a B2B SaaS product, your tenant isolation model is also your privacy model. A row-level security mistake or a poorly scoped query doesn’t just create a bug — it creates a data breach where one customer sees another’s personal data. Our guide to choosing the right multi-tenant isolation model covers the architectural trade-offs; the privacy implications are the same conversation, not a separate one.

Authentication and access sprawl

Every login method, every third-party SSO integration, every admin panel is a place personal data can leak or be over-shared. Decisions here — including whether to build or buy your authentication layer — have direct data protection consequences: who can reset a password, who can see an account’s raw personal data, and how login attempts are logged without themselves becoming a privacy problem.

Retention that nobody designed

Ask most founders how long an inactive user’s data is kept and the honest answer is “forever, because nobody built deletion.” Retention limits are one of the UK GDPR’s core principles (storage limitation), and they’re far easier to build as a scheduled job at launch than as an emergency script once a user exercises their right to erasure.

The engineering checklist

Treat the following as design inputs, reviewed at the same point you’d review a new feature’s architecture — not as a separate compliance pass:

  • Data minimisation. For every field you store, ask what breaks if you don’t collect it. If nothing breaks, don’t collect it.
  • Pseudonymisation and encryption. Personal identifiers that don’t need to be human-readable in day-to-day queries should be hashed, tokenised or encrypted at rest. This limits the blast radius of a breach and is explicitly recommended in Article 25.
  • Least-privilege access. Support staff and admin tooling should default to redacted views of personal data, with full access requiring a deliberate, logged action.
  • Deletion that actually deletes. Map every table, cache, backup and third-party system a user’s data lands in, and make sure your “delete account” flow reaches all of them — or has a documented retention exception.
  • Data flow mapping. Know which subprocessors (hosting, email, analytics, payments) receive personal data, and confirm each has an appropriate data processing agreement in place.
  • Privacy-friendly defaults. Marketing opt-ins unchecked by default, minimal data shared with third-party scripts, and settings that don’t require a user to find the “off” switch for tracking.

This checklist overlaps heavily with general application security — encryption, access control and logging show up in both — which is exactly why it belongs in the same conversation as our broader web app security checklist for founders. Privacy and security aren’t separate workstreams; a security gap is very often a privacy incident waiting to happen.

When you need a Data Protection Impact Assessment

A Data Protection Impact Assessment (DPIA) is a formal risk assessment required under UK GDPR Article 35 for processing that’s likely to result in high risk to individuals — large-scale profiling, systematic monitoring of public spaces, or processing special category data (health, biometric, financial fraud signals) at scale, for example. Most early-stage products won’t cross that threshold on day one, but plenty grow into it: adding a recommendation engine that profiles behaviour, or a fraud-detection model that scores every transaction, can tip a product over the line without anyone noticing.

The practical move is to treat “does this feature need a DPIA?” as a standing question in your product discovery process, not a one-off exercise. If you already run structured discovery sessions, this fits naturally alongside the technical questions covered in our product discovery workshop guide.

Common mistakes we see

The failure pattern is consistent across founder-led products:

  1. Collecting data “for later”. Extra profile fields, unused analytics events, and speculative tracking add regulatory surface area with no product benefit.
  2. No owner for deletion requests. Erasure requests get handled manually, inconsistently, and slowly — a problem that scales badly once you have real customers.
  3. Treating the privacy policy as the whole job. A well-written policy describing data you shouldn’t be collecting in the first place doesn’t make the collection lawful.
  4. Skipping due diligence on subprocessors. Sending user data to a new SaaS tool without checking its data processing terms is a routinely overlooked gap — and one of the first things surfaced in a technical due diligence review ahead of investment or acquisition.

Each of these is cheap to fix at the design stage and expensive to fix once real customer data is involved.

Making it part of how you build, not a one-off audit

The teams that get this right don’t run a single “GDPR project” and move on. They fold privacy questions into the same rituals they already use for engineering quality: architecture reviews ask “what personal data does this touch and why”, pull requests that add new fields get a one-line justification, and retention jobs are treated as production infrastructure, not a nice-to-have backlog item. That’s a process change more than a technical one, and it costs almost nothing if it starts on day one.

If you’re scoping a new product or reviewing an existing one and want a second opinion on where the privacy risk actually sits, that’s exactly the kind of technical conversation worth having early — get in touch to book a free consultation.

FAQ

Do UK startups need to comply with GDPR, or just larger companies?
Company size doesn’t exempt you. If you process personal data about individuals in the UK, UK GDPR and the Data Protection Act 2018 apply regardless of headcount or revenue, though the ICO does scale its expectations to what’s proportionate for a small organisation.

What’s the difference between data protection by design and a DPIA?
Data protection by design is an ongoing engineering principle applied to every feature. A Data Protection Impact Assessment is a specific, formal risk assessment required under Article 35 for particular high-risk processing activities. You practise the former continuously; you carry out the latter when a specific feature warrants it.

Does using a third-party cloud provider make us non-compliant?
No, but it doesn’t remove your responsibility either. You remain the data controller and need a data processing agreement with each subprocessor, an understanding of where data is stored, and confidence in their security measures.

Can we add data protection by design to an existing product, or does it only work for new builds?
It works for existing products too — it’s simply more work, since you’re mapping data flows and adding controls to systems already running in production. It’s exactly the kind of gap a code audit tends to surface before it becomes a bigger problem.

#data protection by design #gdpr #privacy #saas compliance #software engineering
Keep reading

More insights.

Monolith vs Microservices: What Startups Should Build First
Engineering

Monolith vs Microservices: What Startups Should Build First

Most startups get talked into microservices too early. Here's why a well-structured modular monolith is usually the right starting point, and the concrete signals that tell you it's time to split.

7 min read
Observability for Startups: What to Monitor Before You Scale
Engineering

Observability for Startups: What to Monitor Before You Scale

What early-stage teams actually need to monitor before scaling, and why a lean observability stack beats an enterprise platform bought too soon.

7 min read
A Web App Security Checklist Every Founder Should Demand
Engineering

A Web App Security Checklist Every Founder Should Demand

A practical, non-technical security checklist for founders commissioning a web app, built around the new OWASP Top 10:2025 and what to actually demand from a development team.

10 min read

Have a project in mind?

Let's talk about what you're building.

Chat on WhatsAppBook a 30-min call

A senior engineer replies personally — usually within the hour.

Chat on WhatsAppBook a call