# GDPR (AVG)

> Use Berth's data register, customer data export, erasure with a signed statement, log retention and IP masking to meet your GDPR obligations as a host, with all data on servers you control and nothing loaded from third parties.

Source: https://www.berthpanel.app/library/gdpr/ · Category: compliance · Updated: 2026-10-30

As a hosting provider you process personal data for your customers: their contact details, their visitors' IP addresses in logs, the mail in their mailboxes. The GDPR (in Dutch: AVG) gives those people rights, and gives you duties. Berth has tools for the parts a hosting panel can handle: knowing where data is, handing it over, erasing it with proof, and keeping logs no longer than needed.

This article describes those tools. It is not legal advice. Your own processing agreements and policies still apply.

## Data stays on your servers

Berth is self-hosted. The panel, its database, customer sites, mail and databases all run on servers you control, and backups go to the locations you choose, encrypted before they leave the server. See [Backups overview](https://www.berthpanel.app/library/backups-overview/).

**Nothing is loaded from third parties.** The panel's pages load scripts, styles, fonts and images only from the panel itself. A strict Content Security Policy enforces this. There are no external fonts, CDNs, trackers or analytics, so opening the panel tells no other company who your administrators and customers are.

Apart from connections you set up yourself (backup places, DNS providers, log drains, webhooks, notification channels, a SIEM), the server's own outbound connections carry no customer content, and most can be switched off:

| Connection | What it sends | Can be switched off |
|---|---|---|
| Licence check | Licence information only | No (sites keep running if it fails, see [Licence and trial](https://www.berthpanel.app/library/licence-and-trial/)) |
| Updates of Berth and the OS | Normal package downloads | Use offline bundles instead |
| Certificates (Let's Encrypt) | The domain names on the certificate and the contact address; the names are public in Certificate Transparency logs anyway | Needed for HTTPS; you can choose [another certificate authority](https://www.berthpanel.app/library/certificates/#other-certificate-authorities) |
| Vulnerability data | Downloads only; the optional NVD lookup sends a CVE number | Yes, offline mode with signed bundles |
| Breach-password check | The first five characters of a password's SHA-1 hash (k-anonymity) | Yes, see [Sign-in security](https://www.berthpanel.app/library/sign-in-security/) |
| Country data for geoblocking and sign-in alerts | Download of a database; lookups happen locally | Optional; without it, sign-in alerts report new devices only |
| AI features | Only when you configure an AI provider, and then only what a user sends to it | Off unless you configure a provider, see [AI assistant and MCP](https://www.berthpanel.app/library/ai-assistant-and-mcp/) |
| Core Web Vitals (Google PageSpeed Insights) | The site's address | Off by default; switched on per site |

## The data register

For each customer Berth can show where their data is and how long it is kept: account and login details, the activity log, notification channels, monthly reports, and per subscription the system user, website files, logs, certificates, mailboxes, databases, scheduled tasks, FTP accounts, SSH keys, uptime monitors, local backups and statistics. It also lists the external backups and the current retention periods.

- **Administrators and resellers:** the customer's page → *Data (GDPR)*, or `berth privacy register --customer acme`.
- **Customers themselves:** *Account → My data*, where they see where their data is, how long it stays, and can download it.

The register is a good starting point for the record of processing activities you need for your own administration.

## Export: the right of access and portability

The export contains everything the panel knows about a customer as JSON: the account, the logins, the subscriptions with their domains, mailboxes, aliases, databases, scheduled tasks, FTP accounts, SSH keys and uptime monitors, the notification channels, the data register and the customer's entries in the activity log. Secrets are never included: no password hashes, keys or tokens. The content itself (website files, mail, database data) is not in the JSON. That comes from a backup or a transfer file.

- In the panel: *Data (GDPR)* or *My data* → download.
- On the server: `berth privacy export --customer acme > acme.json`

Downloading an export is a sensitive action and asks for a fresh confirmation, see [Sign-in security](https://www.berthpanel.app/library/sign-in-security/#re-authentication-for-sensitive-actions).

## Erasure with a signed statement

When a customer leaves and asks to be forgotten, an administrator or the customer's reseller erases them in one go: every subscription with its system user, websites and logs, mailboxes, databases, scheduled tasks, FTP accounts, local backups, local history, uptime monitors and statistics, then the notification channels, the logins and the customer record.

1. Open the customer's *Data (GDPR)* page and go to the erasure section.
2. Enter a reason and type the customer's login to confirm.
3. Berth erases everything and produces an **erasure statement**: what was removed, when, by whom, on which server and why.

```bash
berth privacy erase --customer acme --confirm acme --reason "Contract ended, erasure requested on 2026-10-28"
```

The statement is signed with the installation's Ed25519 key, and lists what was deliberately kept:

- **Activity log entries** about the customer stay until the log's retention period ends. They are needed for accountability, and removing them would break the hash chain.
- **External backups**, which are encrypted, still contain the data until they expire under their own retention policy.
- **The statement itself**, with the customer's name and login, as proof of the erasure.

The names of the customer's removed domains also stay reserved for 30 days, together with the former customer's login, so that no one else can take over their mail or certificates while DNS still points here. See [Domains and subscriptions](https://www.berthpanel.app/library/domains-and-subscriptions/#reserved-for-30-days); an administrator can release them earlier with `berth domain release`.

Give the statement to the customer as proof. Anyone can check that it is genuine and unaltered:

```bash
berth privacy verify statement.json
```

Statements are kept under *Settings → Privacy*, section *Erasure statements*, for download later.

## Log retention and IP masking

Web server logs contain visitors' IP addresses, which are personal data. Keep them only as long as you need them. Under *Settings → Privacy*, section *Retention periods*, set:

- how long access logs, error logs and PHP logs of websites are kept;
- how long the system journal with the mail logs is kept;
- after how many days IP addresses in rotated access logs are masked.

Masking keeps the logs useful for statistics and troubleshooting while removing the individual: an IPv4 address keeps its first three parts (`203.0.113.0`), an IPv6 address its first 48 bits (`2001:db8:1::`). Masking must happen before the logs are deleted.

```bash
berth privacy settings                           # show
berth privacy settings --access-days 30 --mask-after 7
berth privacy mask-logs                          # mask existing old logs now
```

Log drains to an external log service can mask IP addresses too, see [Logs and log drains](https://www.berthpanel.app/library/logs-and-log-drains/). The activity log has its own retention period, see [Audit trail and approvals](https://www.berthpanel.app/library/audit-trail-and-approvals/).

## A processing agreement template

Under *Settings → Privacy* you can download a template for a data processing agreement (verwerkersovereenkomst) between you and your customers, in Markdown, or print it with `berth privacy dpa-template`. Have a lawyer review it before you use it.

## Security of processing

Article 32 of the GDPR requires appropriate technical and organisational measures. For an overview of what Berth does, see [Security model](https://www.berthpanel.app/library/security-model/). For proof towards a customer, a supervisory authority or an auditor, see [Evidence for audits](https://www.berthpanel.app/library/evidence-for-audits/).
