
# Keep your instance's GDPR register

If you host an instance for an organisation other than your own, three obligations arise at the first hosting, even a free one: a processing agreement (art. 28), a record of processing activities (art. 30) and a breach notification procedure (art. 33, [its guide](rgpd-atteinte-aux-donnees.md)). The agreement is signed before going into production, the register is kept up, the procedure is decided **before** you need it. [What the instance keeps and does not erase](rgpd-limites-a-consigner.md) goes in the register as it is.

> **This is not legal advice.** The exact qualification of the controller in an association and the scope of the assistance undertaking deserve a lawyer's eye.

Hardening is in [`securite.md`](securite.md), operation in [`exploitation.md`](exploitation.md).

## Who is what

| Role | Who | Why |
| --- | --- | --- |
| Controller | The organiser | Employer or principal of the people scheduled, it decides the purposes and means. **Its** information fills the `LEGAL_*` variables ([legal notices](mentions-legales.md)) |
| Processor | Whoever hosts the instance | It processes personal data **on behalf of** the controller, without deciding the purpose |
| Sub-processors | Infrastructure host, SMTP relay, Bugsink, Cloudflare | Each exists only if the matching component runs (see [the entry template](rgpd.md#remplir-une-entrée-du-registre)) |

The GDPR analysis of the services the application uses (SMTP relay, error tracking) is in [`observabilite.md`](observabilite.md#rgpd); what follows covers the host's role towards its client.

## Sign the processing agreement

Before the first production release, even for free hosting, you sign with your client a document whose content art. 28 imposes (not a commercial contract: two pages are enough for a lone integrator and an association). A standalone document is enough; the day general terms of sale exist, it becomes their appendix.

| Point imposed by art. 28.3 | What it holds here |
| --- | --- |
| Subject, duration, nature and purpose | Hosting and operation of a team-scheduling tool, for the duration of the provision |
| Categories of data and people | The base of the [entry template](rgpd.md#remplir-une-entrée-du-registre), including **minors**: that word justifies the reinforced measures |
| Processor's obligations | Act only on documented instruction, confidentiality of authorised persons, security measures, **no sub-processing without authorisation**: name in the document the components of the sub-processor list |
| Fate of the data at the end of the contract | Return or deletion, **at the controller's choice**, to be settled explicitly. Return through the SQL export ([exports and archives](../comprendre/exports-et-archives.md)), deletion through the purge procedure of [`exploitation.md`](exploitation.md) |
| Assistance | Help with data-subject requests, and **breach notification without delay**: copy the clause and the committed delay from [the breach procedure](rgpd-atteinte-aux-donnees.md) |
| Audit | Making available the instance's register and the description of its hardening ([Expose the instance on the Internet](securite.md)) |

Do not copy a generic DPA template: they are written for multi-client SaaS providers and promise what a lone integrator cannot keep (on-call duty, on-site audit, certified sub-processors), and an obligation signed but not kept is an enforceable commitment. Start from the CNIL's template for small organisations.

## Keep the record of processing (art. 30)

The exemption for bodies under 250 employees **does not apply** to regular processing, and hosting a staff schedule is one. The register to keep is the **processor's** (art. 30.2), with five headings:

1. the identity and contact details of the host and of **each** controller it acts for;
2. the categories of processing carried out for each;
3. transfers outside the EU, if any;
4. the sub-processors;
5. a general description of the security measures.

Categories of data and retention periods are not required of a processor; the [entry template](rgpd.md#remplir-une-entrée-du-registre) keeps them anyway (the CNIL's model), and it serves as a handover sheet when somebody else takes over the instance. The register names clients: keep it outside the repository, in a spreadsheet or a versioned document, with **one entry per hosted instance**.

## Fill in a register entry

The base is **identical for every instance** (same application, same model, same measures); only the variable block is filled per client, **at the same time as the `.env.prod`**.

### The common base

| Heading | Content |
| --- | --- |
| Categories of people | Staff members, **including minors**; supervisors and managers |
| Categories of data | Name, first name, **date of birth** (never read by the read-only account, which only reads whether the person is a minor on the event's first day), e-mail address (optional, never read by the read-only account), **phone (optional, to call a replacement on the day, or somebody who has not answered their schedule; only the administrator and the organiser read it (record, Today, lines to call in Share), never the read-only account, and no export of the list carries it, bar the event-day control sheet ([limits to record](rgpd-limites-a-consigner.md)); the staff member corrects it themselves in their espace, and the history keeps only the field name)**, skills, assignment wishes, unavailable days, **two access tokens** (staff space and calendar subscription), **wall-display links** (hashed token, label, last access), assignments and swaps, **availability declarations, including a free comment**, **carpool requests** (named teammates), schedule snapshots, sessions and access logs, **action history** (ids and field names, no values), **outcome of each e-mail to a staff member** (sent or failed, and why, with no address or content; neither the log nor the error tracker receives the address a relay's refusal might quote), **emergency contact and legal representative** (name and phone, optional: a third party's data), **phone and contact address published by the organisation to its staff, per edition** (often a coordinator's personal number: personal data of the supervisors, shown to every staff member of the edition) |
| Processing carried out | Hosting, scheduling and solving, **display of the day's schedule on a control-room screen** (first name and initial by default), **import of a staff file** (processed in memory, never kept), sending e-mails (access codes, individual schedules, swaps, **night reminders and follow-ups**) **and recording their outcome**, backup, **logging of admin actions**, purge |
| Recipients | The organiser through administration; the staff member through their space **and the calendar application to which they give their subscription address**; other staff for the visible part of the schedule ([`securite.md`](securite.md)); **anyone in front of a wall display**; the SMTP relay |
| Security measures | TLS and HSTS; CSP and `Referrer-Policy` headers (**tokens travel in the URL**); session encryption; rate limiting on space codes and lockout of the sign-in form; origin unreachable other than through the reverse proxy; nightly `pg_dump` backup rotated in a dedicated volume, whose **encrypted off-machine copy remains the operator's responsibility** ([`exploitation.md`](exploitation.md)) |

### The variable block, per instance

| Heading | Where to read it |
| --- | --- |
| Controller and contact | keys `responsable-traitement` and `contact` of `LEGAL_MENTIONS` |
| Declared legal basis | key `base-legale` of `LEGAL_MENTIONS` |
| Announced retention period | key `conservation` of `LEGAL_MENTIONS`; see [the retention limit](rgpd-limites-a-consigner.md#aucune-purge-automatique) |
| Infrastructure host | key `hebergeur` of `LEGAL_MENTIONS` |
| SMTP relay | `MAIL_HOST` |
| Error tracking | `SENTRY_DSN` set ⇒ Bugsink, EU hosting, **no transfer to declare** |
| Audience measurement | `CLOUDFLARE_WEB_ANALYTICS_TOKEN` set ⇒ **transfer outside the EU to declare**. The default is empty: setting nothing switches it off (the `%prod` profile once carried the publisher's token, see [`observabilite.md`](observabilite.md)) |
| Update check | On a tagged version, the **signed-in administrator's** browser asks `api.github.com` whether a newer release exists ([`versioning.md`](versioning.md)). No staff data leaves: only the administrator's IP address reaches GitHub Inc. (United States), the staff space never does it. Nothing to declare in the register, but the privacy policy says so, since no empty variable switches it off. To switch it off, remove `https://api.github.com` from `connect-src` in `CSP` ([the browser headers](securite-navigateur.md#réglage)) |
| Outgoing webhooks | Settings › Instance ⇒ Slack, Discord, Telegram, a Matrix bridge or an automation tool receive the events. **No personal data**: counts and technical ids, never a name, address, date of birth or token (`WebhookFormatsTest` checks every event and format). Accepted trade-off: the absence and replacement events give a date and a seat, with no name or reason; in a very small team that date may be enough to recognise the person, so tick them only for a channel you control. Deliveries kept 30 days, outside the SQL export |
| Push notifications of the space (experimental) | **Technical processors**: the push service of the person's browser (Google, Apple, Mozilla or Microsoft) receives an **end-to-end encrypted** message (RFC 8291) it cannot read, and only learns **that a notification was sent to that device**, when, and the server's IP address. Nothing is sent without the person's explicit activation; with no VAPID pair, no call at all ([the variables](variables-environnement.md)). A notification's text names nobody and says nothing about a minor. The device address is **encrypted at rest**, appears in no export or dump, and leaves with the fiche; to be entered in the register with these services |
| Weather service (`METEO_URL`) | Technical recipient, **no personal data**: each morning the rounded coordinates (0.01°) of the places and the dates go to Open-Meteo with the server's IP address, never a browser's. `METEO_ENABLED=false` switches it off |
| Notification contact and deputy | Named in the agreement ([whom to call](rgpd-atteinte-aux-donnees.md#qui-on-appelle)): **a person, not a generic address** |
| Dates | Start and end of the hosting |

## Keep the purge and restore log

The purge procedure of [`exploitation.md`](exploitation.md) ends with "note the date and scope in the register": one line per operation, in the same document as the register.

| Column | Content |
| --- | --- |
| Date | Date of the operation |
| Nature | Retention purge, deletion on request, or restore |
| Scope | Edition deleted, or staff record; deletion cascades over the tables carrying `edition_id` |
| Dump archived | Reference of the encrypted backup taken before the operation |
| Check | Staff space **and subscription address** of a deleted token answering `404` |

A manual purge with no written trace proves nothing: only this log makes the period announced by the `conservation` key tenable.

## The maintenance rhythm

| When | What |
| --- | --- |
| Before each first production release | Agreement signed on both sides, then creation of the register entry |
| At each change of third-party component | Update the sub-processors and transfers: an environment-variable change is a register change |
| At each purge or restore | One line in the purge log |
| At each breach, notified or not | One line in the [breach log](rgpd-atteinte-aux-donnees.md#qui-on-appelle); art. 33.5 makes no distinction |
| Once a year, after the event | Review of all entries, with the purge |
| At the end of hosting | Fate of the data decided and carried out, date entered in the register |
