A record of processing activities (RoPA) is usually written by a privacy team from interviews and questionnaires. It lists what personal data you process, why, for whom and where it goes. Then engineering ships a feature that adds an analytics SDK, a new email provider and a date_of_birth column, and the record quietly falls behind.
The code is the only place where the real answer is written down. This post covers what GDPR Article 30 asks for, which parts a codebase can answer, how to find personal data, processors and flows in it, and where code stops and the privacy team takes over.
What Article 30 asks for
Article 30(1) requires a controller to keep a record that includes:
| Item | Can code answer it? |
|---|---|
| (a) Name and contact details of the controller, joint controller, representative and DPO | No |
| (b) Purposes of the processing | Partly: features hint at purposes, they do not state them |
| (c) Categories of data subjects and of personal data | Personal data categories, mostly yes |
| (d) Categories of recipients, including in third countries | Yes, through SDKs and outbound calls |
| (e) Transfers to third countries and the safeguards | Partly: endpoints and regions, not the legal mechanism |
| (f) Where possible, time limits for erasure | Partly: TTLs and deletion jobs, if they exist |
| (g) Where possible, a description of the security measures in Article 32(1) | Partly |
Article 30(2) asks processors for a similar record of the processing they do on behalf of each controller. Article 30(4) says the record must be made available to the supervisory authority on request. Article 30(5) exempts organisations with fewer than 250 employees, but only when the processing is occasional, unlikely to result in a risk, and does not include special category or criminal offence data. Most software companies that process customer data continuously do not fit that exemption.
Finding personal data fields
Start where data rests and where it crosses the boundary.
- Schemas and migrations. Column names are the most honest inventory you have:
email,phone,dob,national_id,ip_address,lat,lng. - Request and response shapes. DTOs, serializers, validation schemas and OpenAPI definitions show what you collect and what you return.
- Logs and events. Log statements and analytics events carry personal data that never reaches a table.
- Front-end forms and storage. Form fields, cookies and
localStoragekeys.
Remember that GDPR personal data is broader than direct identifiers. Online identifiers such as IP addresses and cookie or device IDs can be personal data, and pseudonymised data is still personal data. Health data, biometrics and other special categories under Article 9 need flagging separately, because they change both the exemption test and the legal basis.
Finding processors and recipients
Item (d) is where records drift most, and code answers it well. A third-party service that receives personal data from your code is a recipient, and usually a processor that needs an Article 28 contract. Look in three places:
- Dependency manifests.
package.json,requirements.txt,go.mod,pom.xmlandcomposer.jsonlist the SDKs for payments, email, SMS, analytics, error tracking, support chat, feature flags and model APIs. - Outbound HTTP calls. Hostnames in client code and config show the APIs called without an SDK.
- Environment variable names.
*_API_KEY,*_DSNand*_WEBHOOK_URLnames are a quick list of external services, even when the values live elsewhere.
Then check what each one actually receives. This is a typical gap:
// Records drift: email and name go to the analytics vendor on every page
analytics.identify(user.email, { email: user.email, name: user.name, plan: user.plan });// Minimised: an internal pseudonymous id and the one attribute the feature needs
analytics.identify(user.analyticsId, { plan: user.plan });The second version still sends personal data (a pseudonymous ID is personal data), so the vendor stays in the record. But the record can now say "pseudonymous identifier and plan" instead of "contact data", which is both more accurate and easier to defend.
Following the flows
A field list and a vendor list are not yet a record. The record needs to connect them: this endpoint collects these fields, stores them here, and sends these to that vendor. Trace each personal data input from the route that receives it, through the services that handle it, to the stores and external calls it reaches. Flows that end in a log line or an outbound request are the ones most often missing from the record.
For item (e), note the region or host of each recipient's endpoint. It does not tell you the transfer mechanism, but it tells the privacy team which recipients to check. For item (f), note whether a TTL, a scheduled deletion job or an account deletion path exists for each store. If none exists, that is a finding, not a record entry.
What code cannot tell you
Purposes, lawful bases, the categories of data subjects, contract terms, transfer mechanisms and retention policies are decisions, not code. A record built from code is a draft that tells the privacy team what is really happening. They decide whether it should be happening and write the rest.
A RoPA draft from Vulkro
Vulkro Core writes a draft Article 30 record from a scan:
vulkro scan . --format ropa-md > ropa.md # Article 30 draft, Markdown
vulkro scan . --format ropa-html > ropa.html # the same draft as HTML
vulkro compliance . --profile gdpr # Article 32 controlsThe RoPA output is a template, not a finished record. It lists the categories of personal data the scan detected (contact data, date of birth, government identifiers, health data and so on), each endpoint with its method, path, auth status and module, and the open personal-data findings to fix before you file it. Placeholders marked <!-- TBD --> are left for the controller, purposes, data subjects, transfers, retention and lawful basis. It does not decide who your processors are.
Two more commands fill the gaps. vulkro dataflow . --sensitive lists only the flows that carry PII, from each input through the functions it passes to the sinks and stores it reaches. vulkro sbom . gives the dependency inventory to start the recipient list from, and vulkro scan . --format aibom lists the AI SDKs and model identifiers the code uses, which are recipients when prompts carry personal data. For Salesforce projects, vulkro-sf compliance ropa seeds a record from the personal data the scan found. Everything runs locally, so the personal data you are mapping never leaves your machine.
FAQ
What must a GDPR Article 30 record of processing contain?
For a controller: contact details of the controller and DPO, purposes, categories of data subjects and personal data, categories of recipients, third-country transfers and safeguards, and where possible erasure time limits and a description of security measures.
Can a RoPA be generated automatically from code?
Partly. Code can show which personal data you process, which third parties receive it and where it flows. Purposes, lawful bases, data subjects and transfer mechanisms are decisions the privacy team records. Treat a generated record as a draft that keeps the real one accurate.
Are third-party SDKs processors under GDPR?
Often, yes. A service that processes personal data on your behalf, such as an email, analytics or error tracking provider, is usually a processor and needs an Article 28 contract. Some vendors act as independent controllers instead, so check each one.
See the compliance evidence use case and the output formats reference, or start a 14-day trial. Related: your database schema is a security document and an AI bill of materials.