Agent Wranglers

Privacy Required

Keep only what you need and delete it on time

Collect only the data a task needs. Keep it only as long as needed, and delete it on schedule and on request.

How to do it

List each field you collect and why, and drop the rest. Keep logs without IP addresses or query strings. Default formats, such as nginx's combined, log both. Delete records automatically after a fixed time, and delete on request. Keep passwords and tokens out of logs too, as in keep private data out of logs.

Example

# Access log without IP addresses
log_format noip '$time_iso8601 "$request_method $uri" $status $body_bytes_sent';
access_log /var/log/nginx/access.log noip;
# crontab: every night at 03:00, delete enquiries older than 12 months
0 3 * * * sqlite3 /var/lib/app/data.db "DELETE FROM enquiries WHERE created_at < date('now', '-12 months')"

How to check

A scheduled job deletes expired data, and a test checks it.

For agents: if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/privacy/data-minimization.