) || {}),
ipAddress: req.ip || '',
}).catch(console.error)
return origJson(body)
}
next()
}
}
```
## Privacy Policy Checklist
```
Controller identity [ ] Company name, address, contact, VERBiS number
Data collected [ ] Full list of categories with examples
Legal basis [ ] Purpose + legal basis for each activity
Retention periods [ ] How long each type is kept
Data subject rights [ ] Access, rectification, erasure, portability, objection
Consent withdrawal [ ] Clear opt-out instructions
Cookie policy [ ] Categories, purposes, opt-out
International transfer [ ] Countries, safeguards (SCCs, adequacy)
Third parties [ ] Processors and sub-processors
Automated decisions [ ] Profiling details, right to object
Breach procedure [ ] Notification timeline and method
DPO contact [ ] Data Protection Officer details
```
## DPA Template Reference
Every third-party processor needs a Data Processing Agreement with these clauses:
```
Subject & duration What data, how long, why
Processor obligations Process only on documented instructions
Sub-processors Prior written auth, flow-down obligations
Security measures Encryption, access controls, incident response
Audit rights Controller can inspect compliance
Data return/deletion Return or destroy data at contract end
Breach notification Notify controller without undue delay
International transfer SCCs if data leaves TR/EU
```
## Contrast: GOOD vs BAD Consent
```typescript
// BAD: blanket consent - violates KVKK Art 3, GDPR Art 7
function BadForm() {
return (
)
}
// GOOD: granular opt-in per purpose
function GoodForm() {
return (
)
}
```
**Core rule**: Compliance is not a one-time feature. Build data protection into every flow, log every access, and assume regulators will ask "show me the evidence."