RoPA as Code: Generating Your Article 30 Record From Infrastructure Metadata

An Article 30 record maintained by hand drifts from reality the moment a system changes. By the time a supervisor asks to see it, the spreadsheet describes an estate you no longer run.

The record of processing activities is the least glamorous obligation in the GDPR and one of the most quietly dangerous to get wrong. Article 30 asks you to keep a record of what personal data you process, why, for whom, where it goes and how long you hold it. Most organisations satisfy this the same way: a privacy lead builds a spreadsheet once, circulates a questionnaire to system owners, and thereafter updates it when someone remembers. The record is accurate on the day it is signed and stale within a quarter. A stale register is worse than none, because it is a document you have attested to that no longer matches the systems a regulator can inspect.

The systems that actually process personal data already emit metadata about themselves. Service catalogues, cloud inventories, data-store tags, pipeline definitions and infrastructure-as-code state all describe what is deployed. The argument here is simple: your Article 30 record should be assembled from that metadata, not maintained in parallel to it by hand.

Free · 4 minutes

Do you know where AI is already being used in your business — and what it can see?

Fourteen questions on shadow AI, data exposure, oversight, and governance debt — the gap between how fast AI is arriving and how much control you have over it. Banded finding on screen, full sheet by email.

What Article 30 actually requires you to hold

Strip the record to its fields and it is a structured object, not a narrative. A controller’s record under Article 30(1) must contain the controller and DPO contact details, the purposes of the processing, a description of the categories of data subjects and of personal data, the categories of recipients, any transfers to third countries with their safeguards, and — where possible — the envisaged retention periods and a general description of the technical and organisational security measures. A processor’s record under Article 30(2) is narrower: who you process for, the categories of processing, transfers and, where possible, the security measures.

Two features of that list matter for automation. First, almost every field maps onto something a well-run platform already knows or could tag: purpose, data categories, recipients and retention are properties of a system, not free text a lawyer should be inventing. Second, the record must be kept in writing including electronic form and made available to the supervisory authority on request. There is no requirement that a human types it. If you can generate it on demand and it is correct, you have met the obligation more convincingly than a spreadsheet ever will.

The small-organisation carve-out in Article 30(5) traps people. The exemption for enterprises employing fewer than 250 persons falls away if the processing is likely to result in a risk, is not occasional, or involves special-category or criminal-offence data. For any regulated firm, at least one of those conditions is always true. Assume you are in scope. A 2025 Commission proposal would widen the exemption, but it is not yet law; build to the current text and treat the change as prospective.

Declared processing versus discovered processing

The generation model has two inputs and produces two outputs. The first input is a declarative statement of processing activities — purpose, lawful basis, data categories, retention — held as code and reviewed like code. This is the part a privacy owner genuinely needs to author, because purpose and lawful basis are judgements, not facts you can scrape. The second input is the discovered inventory: the data stores, queues, buckets and services actually running, carrying tags that link each back to a declared activity.

The first output is the Article 30 register itself, assembled by joining the two. The second, and more valuable, output is the set of discrepancies. A declared activity with no backing system is dead weight in your record, or a system that was decommissioned without anyone updating the register. A discovered store tagged as holding personal data but mapped to no declared activity is undocumented processing — the finding that actually matters, because it is the thing a regulator would treat as a breach of Article 30. Surfacing that gap is the point of doing this as code. The tagging discipline it depends on is the same discipline that makes detecting personal data in pipelines tractable rather than a manual audit.

A generator that emits the register and the gaps

The following combines a processing-activity manifest with a discovered inventory, emits the Article 30 fields, and reports both kinds of drift. It is deliberately small; the value is in the join and the two reconciliation checks, not in the formatting.

#!/usr/bin/env python3
"""Assemble a GDPR Article 30 register from declared activities plus discovered inventory.
Reconciles the two and surfaces drift as findings. British English throughout."""
import sys, yaml, json

# processing_activities.yaml: the judgements a privacy owner must author
#   id, purpose, lawful_basis, data_subjects, data_categories,
#   recipients, third_country_transfers, retention
activities = {a["id"]: a for a in yaml.safe_load(open("processing_activities.yaml"))}

# inventory.json: emitted by cloud/catalogue tooling; each store tagged with
#   personal_data: true/false and activity: <declared id> (or null)
inventory = json.load(open("inventory.json"))

register, undeclared, orphaned = [], [], []
backed = set()

for store in inventory:
    if not store.get("personal_data"):
        continue
    aid = store.get("activity")
    if aid not in activities:
        # personal data with no declared purpose: an Article 30 gap
        undeclared.append(store["name"])
        continue
    backed.add(aid)
    a = activities[aid]
    register.append({
        "purpose": a["purpose"],
        "lawful_basis": a["lawful_basis"],
        "data_subjects": a["data_subjects"],
        "data_categories": a["data_categories"],
        "recipients": a["recipients"],
        "transfers": a["third_country_transfers"],
        "retention": a["retention"],
        "system": store["name"],
    })

# declared but never seen in the estate: stale or decommissioned
orphaned = [aid for aid in activities if aid not in backed]

json.dump(register, open("article30_register.json", "w"), indent=2)

if undeclared or orphaned:
    print("Undeclared processing (personal data, no activity):", undeclared)
    print("Declared activity with no backing system:", orphaned)
    sys.exit(1)   # fail the pipeline until the record matches reality
print(f"Register current: {len(register)} activity/system pairs.")

Run it in continuous integration against the live inventory and the register regenerates on every change. The non-zero exit on drift is the mechanism that keeps declared and deployed in step: an engineer who stands up a store holding personal data without a declared activity breaks the build, and the fix is to declare the processing rather than to remember to update a spreadsheet next quarter.

Where the tagging discipline has to live

None of this works without the link between a running system and a declared activity being maintained at deployment time, not reconstructed afterwards. That means the personal-data classification and the activity tag are conditions of provisioning — enforced in the infrastructure-as-code templates, the catalogue schema, or a policy check — so a store cannot reach production untagged. The generator is a few dozen lines; the tagging convention is the actual engineering commitment, and it is where organisations that try this either succeed or quietly revert to the spreadsheet.

This is the same pattern as generating AI Act Annex IV documentation from your pipeline: a compliance artefact that regulators treat as a static document is better produced as a derived output of the systems it describes. The register stops being something you defend the accuracy of and becomes something the estate proves.

A supervisor asking for your Article 30 record is really asking whether you know what you process. Hand them a spreadsheet and you are asking them to trust that it is current. Hand them a register generated an hour ago from the systems in front of you, with the reconciliation log showing zero undeclared stores, and the question answers itself.

Most technology problems are not technology problems. They are control problems.

The systems exist. The investment has been made. The question is whether leadership can understand, direct, evidence, and sustain what those systems produce. Find out where control exists — and where it only appears to.

Full Governance by Sixteen Pillars

Govern your business. Prove your compliance.

A board assurance cockpit for EU-regulated financial firms — tamper-evident, hash-chained proof of governance across DORA, GDPR, NIS2, ISO 27001, the EU AI Act and MiCA. In development.

See what's coming