Data subject requests arrive by the hundred: "send me my data",
"delete everything". Manual handling does not scale and misses
stores. This skill covers building the automation: verified intake,
a fan out orchestrator that hits every datastore, propagation to
processors, and SLA tracking that proves compliance.
Quick Workflow
- Build verified intake: request types, identity proofing
proportionate to the data's sensitivity, and fraud resistance.
- Maintain the datastore inventory from the privacy registry; the
orchestrator fans out to every entry.
- Implement per store handlers: export, delete, rectify, and
restrict, each idempotent.
- Propagate to processors with receipts; retry failures visibly.
- Handle conflicts: legal holds, other people's data in the
export, and backup windows.
- Track SLAs: deadlines per regulation, escalation before breach.
- Log everything for the regulator: what was done, when, where.
- Test with synthetic subjects quarterly, including the nasty
cases.
1. Orchestrator sketch
#!/usr/bin/env python3
"""DSR orchestrator: fans a request out to registered store handlers."""
import datetime
HANDLERS = {} # store name -> handler object with export/delete methods
def register(name):
def deco(fn):
HANDLERS[name] = fn
return fn
return deco
@register("postgres_users")
def pg_users(action, subject_id):
return {"store": "postgres_users", "action": action,
"subject": subject_id, "status": "done",
"at": datetime.datetime.now(datetime.timezone.utc).isoformat()}
def run_dsr(kind, subject_id):
log = []
for name, fn in HANDLERS.items():
try:
log.append(fn(kind, subject_id))
except Exception as e: # noqa: BLE001 - one store failing must not stop others
log.append({"store": name, "status": "FAILED", "error": str(e)})
return log
print(run_dsr("export", "user_123"))
# Production: persist the log, retry FAILED, alert on repeated failure
2. Identity verification and conflicts
# Verification proportional to risk:
# - export of basic profile: logged in session is enough
# - export of sensitive data: step up auth
# - erasure: confirm explicitly, warn about irreversibility
# Fraud watch: bursts of requests from one source, requests for others
echo "log verification method per request; regulators ask"
# Conflict handling:
# - legal hold: pause erasure for held data, document the hold
# - mixed data (photos with other people): redact third parties in exports
# - backups: erase from live now, purge backups on their cycle, document it
psql "$DB_URL" -c "SELECT * FROM legal_holds WHERE subject_id='user_123';"
Edge cases
- The subject cannot be verified. You may refuse, but you must tell
them why and what would suffice.
- Processors do not confirm. Escalate per contract; repeated failure
is a vendor management issue.
- Request volume spikes (campaign driven). Queue with priority by
deadline, never silently drop.
- The export format must be portable (JSON/CSV), not a PDF
screenshot.
Escalation
- SLA breach imminent: manual triage of the oldest requests while
automation catches up.
- Systemic handler failure: fix the handler, then re run affected
requests; notify subjects if the delay breaches the deadline.
- Regulator inquiry: the per request log is your evidence; keep it
complete and tamper evident.
Detection and defender view
Detect DSR automation gaps with synthetic subjects: submit export,
rectify, and erase requests and verify every store. Monitor handler
failure rates, SLA burn down, and verification fraud signals. The
durable design treats DSR as a product feature with owners and
tests, not a legal chore done in spreadsheets.
Key references
- GDPR Articles 12-22: rights and modalities.
- EDPB guidance on data subject rights.
- Related skills: gdpr-engineering, consent-management.
1---2name: dsr-automation3description: "Use when automating data subject requests: access, erasure, portability, and rectification at scale. Covers request intake and identity verification, orchestration across datastores, processor propagation, and SLA tracking. Also use when manual DSR handling is drowning the privacy team."4version: 1.0.05domain: privacy6lifecycle: stable7last_verified: '2026-10-23'8requires: []9extends: []10relates: [gdpr-engineering, consent-management, privacy-impact-assessment]11tools:12 - name: Python13 version: '3.12'14 - name: PostgreSQL15 version: '17'16metadata:17 source: https://skillmd.com/skills/mizazhaider-ceh/dsr-automation18---1920Data subject requests arrive by the hundred: "send me my data",21"delete everything". Manual handling does not scale and misses22stores. This skill covers building the automation: verified intake,23a fan out orchestrator that hits every datastore, propagation to24processors, and SLA tracking that proves compliance.2526## Quick Workflow27281. Build verified intake: request types, identity proofing29 proportionate to the data's sensitivity, and fraud resistance.302. Maintain the datastore inventory from the privacy registry; the31 orchestrator fans out to every entry.323. Implement per store handlers: export, delete, rectify, and33 restrict, each idempotent.344. Propagate to processors with receipts; retry failures visibly.355. Handle conflicts: legal holds, other people's data in the36 export, and backup windows.376. Track SLAs: deadlines per regulation, escalation before breach.387. Log everything for the regulator: what was done, when, where.398. Test with synthetic subjects quarterly, including the nasty40 cases.4142## 1. Orchestrator sketch4344```python45#!/usr/bin/env python346"""DSR orchestrator: fans a request out to registered store handlers."""47import datetime4849HANDLERS = {} # store name -> handler object with export/delete methods5051def register(name):52 def deco(fn):53 HANDLERS[name] = fn54 return fn55 return deco5657@register("postgres_users")58def pg_users(action, subject_id):59 return {"store": "postgres_users", "action": action,60 "subject": subject_id, "status": "done",61 "at": datetime.datetime.now(datetime.timezone.utc).isoformat()}6263def run_dsr(kind, subject_id):64 log = []65 for name, fn in HANDLERS.items():66 try:67 log.append(fn(kind, subject_id))68 except Exception as e: # noqa: BLE001 - one store failing must not stop others69 log.append({"store": name, "status": "FAILED", "error": str(e)})70 return log7172print(run_dsr("export", "user_123"))73# Production: persist the log, retry FAILED, alert on repeated failure74```7576## 2. Identity verification and conflicts7778```bash79# Verification proportional to risk:80# - export of basic profile: logged in session is enough81# - export of sensitive data: step up auth82# - erasure: confirm explicitly, warn about irreversibility83# Fraud watch: bursts of requests from one source, requests for others84echo "log verification method per request; regulators ask"85```8687```bash88# Conflict handling:89# - legal hold: pause erasure for held data, document the hold90# - mixed data (photos with other people): redact third parties in exports91# - backups: erase from live now, purge backups on their cycle, document it92psql "$DB_URL" -c "SELECT * FROM legal_holds WHERE subject_id='user_123';"93```9495## Edge cases9697- The subject cannot be verified. You may refuse, but you must tell98 them why and what would suffice.99- Processors do not confirm. Escalate per contract; repeated failure100 is a vendor management issue.101- Request volume spikes (campaign driven). Queue with priority by102 deadline, never silently drop.103- The export format must be portable (JSON/CSV), not a PDF104 screenshot.105106## Escalation107108- SLA breach imminent: manual triage of the oldest requests while109 automation catches up.110- Systemic handler failure: fix the handler, then re run affected111 requests; notify subjects if the delay breaches the deadline.112- Regulator inquiry: the per request log is your evidence; keep it113 complete and tamper evident.114115## Detection and defender view116117Detect DSR automation gaps with synthetic subjects: submit export,118rectify, and erase requests and verify every store. Monitor handler119failure rates, SLA burn down, and verification fraud signals. The120durable design treats DSR as a product feature with owners and121tests, not a legal chore done in spreadsheets.122123## Key references124125- GDPR Articles 12-22: rights and modalities.126- EDPB guidance on data subject rights.127- Related skills: gdpr-engineering, consent-management.