Skip to content

Privacy by design: GDPR in IT projects

B2Bnetwork team · · 6 min

Regulations

In brief

Privacy by design is an obligation under Article 25 of the GDPR: from the design of a system and then throughout processing, the controller applies technical and organizational measures such as pseudonymization and data minimization, and by default processes only the data necessary for a given purpose. In an IT project this means decisions in requirements, architecture, testing and maintenance, not a legal review just before go-live. High risk to individuals requires an impact assessment under Article 35.

What exactly Article 25 says

Article 25 has two parts. Paragraph 1 concerns data protection by design: the controller, taking into account the state of the art, the cost of implementation, the nature, scope, context and purposes of processing and the risks to individuals, implements appropriate technical and organizational measures, for example pseudonymization, designed to implement data protection principles effectively. It does so both when determining the means of processing and at the time of the processing itself.

Paragraph 2 concerns data protection by default: by default only the data necessary for each specific purpose is processed. This applies to the amount of data, the extent of processing, the storage period and accessibility. Data must not, by default, be made accessible to an indefinite number of people without the individual's intervention.

The obligation rests on the controller, for example on a bank that orders an application. A software house is usually a processor or a product vendor, but in practice its engineers turn Article 25 into code, so the requirements should go into the contract and the backlog.

Privacy by design across the project lifecycle

PhaseQuestionOutcome
Requirementswhat data is really needed for the purposelist of fields with justification, purposes of processing
Architecturewhere data flows, who has access to it, where it is storeddata flow diagram, permission model
Database designwhich data can be separated, encrypted, pseudonymizedschema with personal data marked
Developmentdoes the code write data to logs, are secrets kept out of the repositorycode review rules, automated tests
Testingdo tests use production datasynthetic or anonymized data
Deploymentwhat are the default settingsconfiguration with minimal scope and visibility
Maintenancewhen is data deletedretention jobs, deletion report

A bank example: a new online cash loan process needs data to assess creditworthiness, but the form does not have to collect all of it on the first screen. When a customer drops out after the calculator, the system should not keep the full application with no purpose and no set deletion date.

Techniques that work in systems

  • Minimization at input. Every form field and every table column has an owner and a purpose. A "just in case" field does not pass the requirements review.
  • Pseudonymization. Analytics and reports work on surrogate identifiers, and the key linking them to a person is in a separate, protected system. Pseudonymized data is still personal data (recital 26 of the GDPR), but a leak does less harm.
  • Encryption. In transit always, at rest for databases, backups and media. Keys are kept in a vault, not in application configuration (see Secrets in applications: from the .env file to a vault).
  • Logs without personal data. PESEL numbers (Polish national ID numbers), addresses and message content do not go into application logs or error tracking tools. Masking is done in the logging library, not by hand.
  • Permissions by need. A call center agent sees the last digits of an account number, and the full number only after a justified action that is recorded.
  • Retention in code. Storage periods are jobs in the system that delete or anonymize data, not an entry in a policy.
  • Test data. Test environments do not get a copy of production without masking. The methods are described in the article Test data and the GDPR: anonymization, masking and synthetic data.

When an impact assessment (DPIA) is needed

Article 35 requires a data protection impact assessment when processing, in particular using new technologies, is likely to result in a high risk to the rights and freedoms of individuals. Article 35(3) lists three cases in which an assessment is always required:

  1. A systematic and extensive evaluation of personal aspects based on automated processing, including profiling, on which decisions are based that produce legal effects or similarly significantly affect the individual.
  2. Large-scale processing of special categories of data, for example health data, or of data relating to criminal convictions.
  3. Systematic large-scale monitoring of a publicly accessible area.

The supervisory authority publishes a list of types of processing that require an assessment. In Poland such a list was issued by the President of UODO (the Polish Data Protection Authority). The assessment contains a description of the operations and purposes, an assessment of necessity and proportionality, an assessment of the risks to individuals and mitigating measures (Article 35(7)). The best time for a DPIA is the architecture stage, when the result can still change the design. A telemedicine application that processes health data is a typical case: you can see this in the scenario security testing of a telemedicine application.

Security of processing under Article 32, and testing

Article 32 complements Article 25 with security. It lists, among other things, pseudonymization and encryption, the ability to ensure the confidentiality, integrity, availability and resilience of systems, the ability to restore the availability of data quickly after an incident, and regular testing, assessing and evaluating the effectiveness of safeguards.

The last point links the GDPR to testing practice. Penetration tests, vulnerability scans and backup restore tests are evidence that safeguards work, not only that they exist in documentation. If the system belongs to a financial entity, the same tests feed the resilience testing program under DORA (see Digital resilience testing under DORA). AI deployments raise questions about data sent to models, described in Company data and language models: deployment security.

Questions and answers

Who is responsible for privacy by design: the customer or the software house?

Article 25 places the obligation on the controller, usually the customer. The processor must provide sufficient guarantees to implement appropriate measures (Article 28). In practice the customer writes the requirements into the contract and acceptance, and the software house is responsible for the code meeting them and for being able to show it.

Does pseudonymization take data outside the GDPR?

No. Pseudonymized data that can be attributed to a person using additional information is still personal data (recital 26 of the GDPR). Pseudonymization reduces risk and is explicitly named as a measure in Articles 25 and 32, but it does not relieve you of obligations. Only irreversibly anonymized data falls outside the GDPR.

Does every IT project require a data protection impact assessment?

No. A DPIA is required when processing is likely to result in a high risk, in particular in the cases in Article 35(3) and on the supervisory authority's list. For other projects a documented risk analysis is enough, showing why an impact assessment is not needed.

Can you test on a copy of production data?

The GDPR does not explicitly prohibit it, but testing is rarely the purpose for which the data was collected, and test environments usually have weaker safeguards and broader permissions. It is safer to use synthetic or masked data. A copy of production is used as an exception, with justification, production-level safeguards and a deletion date.

What it looks like in a project

Preparing your systems for an audit? Talk to an engineer.

Let's talk

Read more: Regulations