> The index of all pages is at https://docs.afffast.com/llms.txt.

# Data processing agreement, summary (draft)

A summary of the data processing agreement between the operator and the customer. Draft text. A lawyer must review it before launch.

> **Draft. Needs legal review.** This page is a summary, not the agreement. A lawyer must write the final agreement. Text in [square brackets] is open.

This page summarizes the terms that Article 28 of the GDPR requires. The customer is the controller of the workspace data. The operator of the platform is the processor.

## 1. Parties and scope

- **Controller:** the customer that owns the workspace.
- **Processor:** [open: legal entity, address, contact].
- **Subject:** the processing of the workspace data in the platform. The [privacy policy](https://docs.afffast.com/docs/legal/privacy.md) lists the data.
- **Length:** as long as the workspace exists, and until the delete is finished (see section 8).

## 2. What the processor does

- The processor processes the workspace data only on the instructions of the controller. The settings and the API calls of the controller are the instructions.
- The processor tells the controller at once if it thinks that an instruction breaks the law.

## 3. Kinds of data and data subjects

| Data subjects                               | Kinds of data                                                                                       |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| Visitors of the websites of the controller  | Click data: the salted hash of the IP address, the country, the device, the referrer, the subids    |
| Buyers (as far as a network gives the data) | Order data of a conversion: the order ID, the coupon, the amounts, the status, the subids           |
| Members and invitees of the workspace       | Name, email address, role                                                                           |
| Callers of the API of the controller        | The network of the IP address (IPv4 /24, IPv6 /48) and the user agent in the request logs (30 days) |

The platform does not ask the networks for the name or the address of a buyer.

## 4. Confidentiality

Each person who works for the processor and can see workspace data must keep it confidential. [Open: the internal process.]

## 5. Security measures

- Envelope encryption of network credentials and webhook secrets. The master key is not in the database.
- The platform separates workspaces and modes (live and test) in the application and in the database (row-level security).
- A credential is write-only after the save.
- API keys are stored as a hash. A key can have a narrow scope.
- Salted IP hashes for visitors. The platform does not store the IP address of a visitor.
- HTTPS for all traffic. [Open: confirm in M6.]
- Backups and their encryption. [Open: M6.]
- Access to production data by staff is limited and logged. [Open: the process and the audit log of the internal operations view.]

## 6. Sub-processors

- The controller gives a general permission for the sub-processors in the [sub-processor list](https://docs.afffast.com/docs/legal/sub-processors.md).
- The processor tells the controller about a new sub-processor [open: for example 30 days] before it starts. The controller can object. If the parties cannot agree, the controller can end the contract.
- The processor signs an agreement with each sub-processor with the same duties.

## 7. Help for the controller

- **Data subject rights.** The platform gives the controller tools: a data export of the whole workspace (settings or `POST /v1/workspace/exports`) and the API to change or delete data. If a data subject asks the processor, the processor sends the request to the controller.
- **Breach.** The processor tells the controller about a personal data breach without undue delay [open: and in 48 hours at the latest]. The message says what happened, which data it touched and what the processor does.
- **Impact assessments and authorities.** The processor gives the information that it has, on request.

## 8. Delete and return

- The controller can export all data at any time and can delete the workspace at any time. After the request, a grace period of 7 days starts. Then the platform deletes all data of the workspace (see the privacy policy, section 9).
- The processor deletes the click data after 13 months, the request logs after 30 days and the raw postback events after 90 days, also without a delete request.
- Backups: [open: the period in which deleted data leaves the backups.]
- The law can require the processor or a sub-processor to keep some data (for example invoices). Then the processor keeps only this data, and only for the period that the law gives.

## 9. Audits

The processor gives the controller the information that it needs to show that the processor follows this agreement. The processor allows audits and inspections [open: how often, who pays, how much notice].

## 10. Transfers outside the EU and the EEA

[Open: the hosting region and the sub-processors outside the EU. If data goes outside the EU, the agreement must name the legal basis, for example the standard contractual clauses.]

## 11. Liability and law

[Open: the lawyer decides the liability, the governing law and the court.]

## Open items for the lawyer

1. The legal entity, the address and the contact.
2. The final text of the agreement, with the signature process (a click-through or a signed copy).
3. The notice periods: new sub-processor, breach.
4. The audit rules.
5. The transfer basis and the hosting region.
6. Liability and law.
