You finished migrating your application stack to a new cloud provider. DNS is pointing to the new IPs, databases are synced, SSL certificates are fresh. Everything works. But somewhere in your consent database, every record still says the old provider is the entity processing your users' personal data. Under Indonesia's Personal Data Protection Law (UU PDP, formally UU No. 27 Tahun 2022), that mismatch is not a cosmetic issue. It is a compliance gap that surfaces the moment anyone audits your data processing chain.
This walkthrough traces the problem from the visible symptom down to the root cause, then covers how to fix it.
The symptom: consent records point to a processor that no longer processes anything
Pull up your consent database or consent management platform. Look at the fields that identify who processes the data. Typically this includes a processor name, a reference to a Data Processing Agreement (DPA), and sometimes a jurisdiction or data center location.
If you migrated from Provider A to Provider B but those fields still say Provider A, you have orphaned processor references. The consent your users gave was for a specific processing arrangement. That arrangement no longer exists.
This matters because UU PDP requires that consent be specific and informed. A consent record that names the wrong processor is neither. If a regulator or an internal auditor pulls your consent trail and cross-references it with your actual infrastructure, the discrepancy is immediate.
Why migrations leave this behind
Migration runbooks focus on uptime. The checklist typically covers compute, storage, networking, DNS, SSL, and application-level smoke tests. Consent records sit in the application database alongside regular business data. They migrate perfectly — that is the problem. They migrate with their old values intact.
No migration tool rewrites consent metadata. No rsync flag updates processor references. No Terraform module touches your consent ledger. The data moves, but the metadata describing who handles the data stays frozen at the moment consent was collected.
Three specific things tend to go stale:
- Processor identity — the legal entity name and registration of the cloud provider acting as your data processor.
- DPA reference — the agreement ID or version that governed the old processing relationship. Your new provider has a different DPA (or you have not signed one yet, which is worse).
- Data location — if the new provider stores data in a different jurisdiction, the consent record may reference a country or region that no longer applies. UU PDP Article 56 imposes requirements on cross-border transfers, so a wrong location reference is not trivial.
Tracing the gap: a practical audit
Start by answering two questions: what do your consent records say, and what is actually true now?
Step 1: Export a sample of consent records.
How you do this depends on your stack. If consent is stored in a relational database, a simple query works:
SELECT user_id, consent_purpose, processor_name, dpa_reference, data_location, consent_timestamp
FROM consent_records
ORDER BY consent_timestamp DESC
LIMIT 100;
Look at the processor_name and data_location columns. If they reference your old provider, you have confirmed the symptom.
Step 2: Document your current processing chain.
Write down, in plain text, who actually processes personal data right now. This includes your new cloud provider, any managed database services, CDN providers, email delivery services, and analytics platforms. Each one that touches personal data is a processor under UU PDP.
Step 3: Compare.
Any processor in Step 2 that does not appear in Step 1 is an undocumented processor. Any processor in Step 1 that is not in Step 2 is a ghost reference. Both are problems.
Red herrings to skip
Before diving into fixes, rule out a few things that look related but are not the root cause:
- "We updated our privacy policy page." Good, but the privacy policy is a disclosure document. It is not the consent record itself. Updating the website text does not retroactively fix the processor reference stored in each individual consent entry.
- "The old provider deleted our data." That addresses data retention on the old side, but it does not fix the fact that your consent records still name them as the active processor.
- "We have a new DPA with the new provider." Necessary, but not sufficient. The DPA exists as a legal document. Your consent records need to reference it. If they still point to the old DPA (or no DPA at all), the chain is broken. For more on what a DPA needs to contain under UU PDP, see How to Check If Your Data Processing Agreement Actually Meets UU PDP Requirements.
The root cause: no migration step for consent metadata
The root cause is straightforward: your migration plan did not include a step to update consent-to-processor mappings. This is not unusual. Most migration documentation, whether from cloud providers or internal DevOps teams, treats compliance artifacts as a legal team problem, not an infrastructure problem. But consent records live in your database, which makes them an infrastructure problem too.
Fixing the mapping
The fix has two parts: updating existing records and preventing future drift.
Updating existing consent records
This is where you need to be careful. Consent records should ideally be append-only — you do not want to silently overwrite history, because that destroys your audit trail. The recommended approach is to add a new entry that supersedes the old one, rather than doing an UPDATE in place.
The exact implementation depends on your schema, but conceptually:
-- Illustrative example: inserting a superseding consent record
INSERT INTO consent_records (
user_id,
consent_purpose,
processor_name,
dpa_reference,
data_location,
consent_timestamp,
supersedes_record_id,
change_reason
) SELECT
user_id,
consent_purpose,
'New Provider Legal Entity Name',
'DPA-2025-NEWPROVIDER-001',
'ID', -- or the actual jurisdiction code
NOW(),
id,
'Processor changed due to infrastructure migration'
FROM consent_records
WHERE processor_name = 'Old Provider Legal Entity Name'
AND supersedes_record_id IS NULL;
This preserves the original record and creates a new one that references it. Your application logic should treat the latest non-superseded record as the active consent.
Important: If the change in processor is material — for example, data now moves to a different country — UU PDP may require you to re-obtain consent rather than simply updating the record. This is a legal determination, not a technical one. Consult with whoever handles your data protection compliance before deciding whether a record update is sufficient or whether users need to be notified and asked to consent again.
Preventing future drift
Add a consent metadata check to your migration runbook. This does not need to be complex. A post-migration verification script that queries your consent table and flags records where the processor name does not match your current provider list is enough:
# Sample check: find consent records referencing a processor not in the current list
# Adjust the query for your database and schema
mysql -u readonly_user -p -e "
SELECT COUNT(*) AS stale_records
FROM consent_records
WHERE processor_name NOT IN ('Current Provider A', 'Current Provider B')
AND supersedes_record_id IS NULL;
" your_database_name
If that returns anything above zero after a migration, you have work to do.
For a broader look at what else breaks during cloud migrations from a UU PDP perspective, Moved Cloud Infra but Skipped UU PDP Technical Audit? Here's What Breaks covers the wider set of technical gaps.
Verification: confirming the fix
After updating records, verify three things:
- No orphaned processor references remain. Run the stale-records query above. Result should be zero.
- Every active processor has a valid DPA. Cross-reference the
dpa_referencefield against your actual signed agreements. A reference to a DPA that does not exist is as bad as a reference to the wrong one. - Data location matches reality. If your consent records say data is stored in Indonesia but your new provider runs workloads in Singapore, that is a discrepancy that has regulatory implications under UU PDP Article 56's cross-border transfer provisions.
Document the audit. Save the query results, the date you ran them, and who reviewed them. If a regulator asks, you want to show not just that the records are correct now, but that you checked.
The practical takeaway
Consent records are infrastructure artifacts, not just legal paperwork. They live in your database, they reference specific processors and agreements, and they go stale the moment you change providers without updating them. Add consent-to-processor mapping verification to your migration checklist, right next to DNS propagation checks and SSL validation. It takes ten minutes to run a query. It takes considerably longer to explain to a regulator why your consent trail points to a provider you stopped using months ago.