Haven

Security and data protection

This page is written for data protection officers and whoever writes the DPIA. Everything below describes the service as deployed today. What is missing is listed under Known limitations.

Answers to the usual questions

  • Where is the data stored? In the EU. Database, sign-in, server functions, file storage and backups stay in the same EU region. No transfer of pupil data to a third country in normal operation. The exact region is stated in the processor agreement.
  • Which agreement? A processor agreement on SKR's template (the Swedish Association of Local Authorities and Regions), with our annexes for instructions, security measures and sub-processors. No terms of our own that change the template.
  • Which sub-processors? The list is in section 7 below: who does what, where, and whether they see pupil data. We do not add a sub-processor without first updating the list and notifying the controller.
  • DPIA support material? The full processor summary is on this page, written to be pasted into the controller's DPIA. Print the page as a PDF if you want to attach it.
  • Does Haven score pupils? No. No scores, no ranking, no automated assessment of a pupil. Boards and lists are sorted by date. A repeated incident is flagged, and the judgement is made by a person.
  • Can records be altered afterwards? Every change to a case is written to an append-only audit log. Each row carries a hash of the row before it, so an altered or removed row is detected.
  • Encryption? Free text about pupils is encrypted in a server function before it is stored in the database. The key exists only in the server function's secrets, never in the app, the browser or the database. All traffic uses TLS.
  • Retention? You set retention periods per incident type. Kränkande behandling reports, investigations and disciplinary decisions are retained and never deleted, in line with SKR's retention guidance. When the agreement ends we delete on written instruction and confirm in writing.

We are a small company without ISO 27001 or SOC 2. Instead we describe exactly what we do, and the source code can be reviewed on request. Questions: hello@danielcross.dev.

More questions

Does Haven work alongside our learning platform?

Yes. Haven does not replace the learning platform or the pupil register. Pupils are imported from a CSV or Excel file from your register, and staff sign in with e-mail and password. SS 12000 integration and federated sign-in are planned.

What happens to the data when the agreement ends?

You export what must be retained (reports, investigations and decisions as PDF, incidents as CSV) from the dashboard. We then delete everything on your written instruction and confirm in writing.

Who sees a report that involves staff?

A report where staff are involved goes straight to the rektor and is not shown to the staff member named. The rektor, the administrator, the elevhälsoteam and the person who reported can read the case. Nobody else.

Does Haven score pupils?

No. Haven never adds incidents up into a number per pupil and never ranks pupils. Boards and lists are sorted by date. That is a deliberate choice, partly to avoid the kind of profiling that demands more of the DPIA.

Processor summary for the controller's DPIA

Version 2026-10-26. English translation of `BITRADESUNDERLAG.md`, for international schools and for controllers outside Sweden. Where Swedish law is cited, the Swedish text governs; the obligations under the GDPR apply as written here. Supplied by the Haven provider as processor, to be pasted into the controller's DPIA under Article 35 GDPR and attached to the data processing agreement (DPA). Every statement describes the service as deployed today. Anything missing is listed in section 13.

The school organiser (huvudman) is the controller and owns the impact assessment. The provider assists under Article 28(3)(f). This document does not replace the controller's own assessment of necessity, proportionality and risk to the data subjects.

Provider: [provider's legal name, registration number, address]. Data protection contact: [e-mail].

1. What Haven is

Haven is an app for school staff and a web dashboard for the head teacher (rektor), administrators and the student health team (EHT). Staff log praise and incidents about pupils. The head teacher handles reports of degrading treatment under chapter 6 section 10 of the Swedish Education Act from report to follow-up. The student health team sees cases and repeat incidents before its meetings. The head teacher can write a handover document under chapter 3 section 12 j when a pupil changes school.

Haven serves one school unit at a time. Each school unit is its own organisation in the service and sees only its own data.

2. Purposes

The controller determines the purposes. The purposes the service is built for are:

  1. Document incidents and praise concerning pupils in support of pedagogical work and the school's rules of conduct (chapter 5 of the Education Act).
  2. Meet the duty to report, investigate and act on degrading treatment (chapter 6 section 10).
  3. Give the student health team material for its preventive work (chapter 2 section 25).
  4. Hand over the information needed to ease the transition when a pupil changes school unit (chapter 3 section 12 j).
  5. Record that external reports were made (police report, concern report to social services, report to the Work Environment Authority) with date and reference number.

Haven is not used for grading, ranking or scoring pupils and has no such function.

3. Data subjects and categories of personal data

Data subjectsDataSensitivity
PupilsName, class, year group, external ID from the pupil register (optional at import), mentor. Incidents and praise with time, type, severity, place, subject and free text. Reports of degrading treatment with category, free text on what happened, witnesses, immediate action, measures and closure. Handover documents with the head teacher's summary and incident counts. Disciplinary measure linked to an incident.High. Free text may contain data on health, ethnic origin, religion or sexual orientation (Article 9) and data on criminal offences or suspicion of them (Article 10) where a report requires it. Children under 18.
StaffName, e-mail address, role (teacher, head teacher, administrator), EHT flag, login credentials (passwords hashed by Supabase Auth), push token for the phone. Who reported, handled and exported.Normal
GuardiansNone. Haven has no contact function, no login and stores no data on guardians. Free text must not be used to store guardian contact details.–
OrganiserThe organiser's name and one contact e-mail address.Normal

National identity numbers are not processed. The external ID field is intended for the pupil register's own ID and must not be filled with identity numbers; the controller instructs its administrator accordingly.

4. Legal basis

The legal basis is the controller's. The service assumes Article 6(1)(e) (task in the public interest or exercise of official authority) grounded in the Education Act, and for special categories Article 9(2)(g) (substantial public interest with a basis in law), together with chapter 3 section 3 of the Swedish Data Protection Act (2018:218). For data on offences at the time of a report, Article 10 applies with chapter 3 sections 8–9 of the same Act for public authorities. Consent from pupil or guardian is not used as a legal basis and is not required for handover under chapter 3 section 12 j (a statutory duty to disclose, chapter 10 section 28 of the Public Access to Information and Secrecy Act). The controller's lawyer or data protection officer confirms the basis for its own operations. A controller outside Sweden substitutes its own national basis.

5. Data flows

  1. The app (iOS and Android) talks directly to Supabase in the EU with the staff member's own login. Free text is encrypted in a server function before it is stored. The app stores a report locally on the phone when offline and sends it when the connection returns. The session is kept in the phone's secure storage (Keychain/Keystore). The app locks in the background and opens with a code or biometrics.
  2. The dashboard (web) runs in the user's browser and talks directly to Supabase. The web host (Vercel) only delivers the program code and sees no pupil data.
  3. Server functions in Supabase encrypt and decrypt free text, create PDF exports, create staff accounts and send notifications. The encryption key exists only in the server functions' secrets, never in the app, the dashboard or the database.
  4. Push notifications to staff phones go via Expo and on via Apple and Google. Notifications about incidents and reports carry a generic text and a case ID, never a pupil's name or any free text. The app fetches the content from Supabase only when the user opens the notification.
  5. E-mail (once Resend is enabled, see section 13): invitations and password resets to staff, a notice to head teacher and administrators on a new report and on an overdue follow-up, and a notice to the organiser's contact address when the head teacher has reported. The e-mail holds the school name, a case ID and a link to the dashboard. Never a pupil's name, never free text, never a PDF attachment.
  6. The report to the organiser leaves Haven when the head teacher downloads the PDF and sends it through the organiser's ordinary channel for registration. Haven does not e-mail the PDF.

6. Where the data is stored

Production runs at Supabase in a region in the EU. Database, authentication, server functions, file storage and backups stay in that region. The exact region is stated in the processor agreement. No transfer of pupil data to a third country takes place in normal operation; see the sub-processors below for the parts outside the EU and what they receive.

7. Sub-processors

Sub-processorTaskLocationPupil data
Supabase Inc. (on AWS)Database, login, server functions, file storage, backupsEUYes. Free text is additionally encrypted at application level.
Vercel Inc.Web hosting for the dashboard (static files) and the marketing siteGlobal CDNNo. No pupil data passes through Vercel.
Expo (650 Industries, Inc.)Relay of push notificationsUSANo. Generic text and case ID. Group-focus notifications carry the group name and a text typed by staff; staff are instructed not to write pupil names there.
Apple Inc. (APNs), Google LLC (FCM)Delivery of push notifications to phonesGlobalSame content as above.
Resend, Inc.E-mail (invitation, password reset, notices)EU regionNo. Recipient address, school name, case ID, link. Planned; not enabled today.

The provider does not add a sub-processor without first updating this list and notifying the controller under the DPA. Supabase and Vercel are covered by standard contractual clauses (2021/914) for the parts involving US providers; for Supabase the data processing itself takes place within the EU.

8. Access and permissions

  • Accounts are created by invitation from the school's administrator. There is no self-registration, no login for pupils and none for guardians or the organiser.
  • Roles: teacher, head teacher, administrator, plus an EHT flag. Everyone reads only data in their own organisation; this is enforced in the database with row-level security (RLS), not only in the interface.
  • Reports of degrading treatment are readable by head teacher, administrator, EHT and the reporter. A report concerning staff is readable by head teacher and administrator only.
  • Exports of pupil record, incident report and CSV can be made by all staff in the organisation; handover, report to the organiser, the archive list and the EHT agenda by head teacher and administrator (the agenda also by EHT). Every export is logged with who, what and when.
  • Pseudonymisation and retention settings are available to head teacher and administrator, and administrator, respectively.
  • The provider's own access to production data uses a service account for operations and support. Supabase logs API and database calls; the retention period follows the provider's Supabase plan (see item 9 in section 13). The provider does not open pupil data without the controller's request.

9. Security measures (Article 32)

  • Encryption of free text. Incident description, action, comments and every free-text field in degrading-treatment reports are encrypted with AES-256-GCM, with a unique initialisation vector per value and a binding to organisation and row, before storage. The key lives in the server functions' secrets. A database dump or backup does not expose the text.
  • Encryption at rest and in transit at Supabase (disk encryption, TLS).
  • Row-level security per organisation on every table. Server functions that read with the service account also filter on the caller's organisation.
  • Append-only audit log: changes to incidents, pupils, staff, degrading-treatment cases, handovers and external reports are logged with a hash of the previous row, so later manipulation can be detected. The log stores the length of free-text fields, not the text.
  • Client protection: app lock with code or biometrics, lockout after failed attempts, session in the phone's secure storage. The dashboard uses Supabase Auth with session tokens.
  • Exports are stored in a private bucket that clients cannot list. Links to PDFs are valid for ten minutes. Temporary exports (pupil record, incident report, agenda) are removed within 15 minutes after the next export.
  • No plaintext fallback: if a text cannot be decrypted the interface shows "Content unavailable" rather than the raw value.
  • Protection against formula injection in CSV exports.
  • Code review and tests: database rules, server functions and interfaces have automated tests. The interface is deployed from GitHub Actions only after every test passes; database changes and server functions are deployed by hand after the same tests have run.

10. Retention, deletion, pseudonymisation and preservation

  • Retention periods are set per organisation by the administrator, separately for incidents and praise, in months. A nightly job deletes incidents older than the period. Incidents linked to a degrading-treatment report or carrying a disciplinary measure are never deleted automatically, because they must be preserved.
  • Pseudonymisation of a pupil (head teacher or administrator) replaces name and external ID with "Elev" and a code, irreversibly. Incidents, praise and reports remain without the name.
  • Preservation. Reports of degrading treatment and handover documents are public records at a Swedish municipal organiser and must be preserved (the National Archives' and SKR's retention guidance no. 2 for education). Haven therefore never alters or deletes a stored PDF, not even at pseudonymisation. Haven is an interim store. The controller's own archive is the archive.
  • Archive export. Head teacher and administrator can at any time list and download every stored degrading-treatment and handover PDF from the organisation page in the dashboard, for registration and archiving in the controller's systems. Incidents can be exported as CSV.
  • At the end of the contract the provider deletes the whole organisation (database rows, stored PDFs, audit log) on written instruction from the controller, within the time the DPA states, and confirms in writing. The controller is responsible for first exporting what must be preserved. Backups at Supabase are overwritten according to their retention cycle.
  • Return. The controller can at any time obtain a complete copy of the organisation's data in machine-readable form from the provider.

11. Data subject rights

The controller answers requests from pupils or guardians. Haven supports this as follows:

  • Access (Article 15): the pupil record PDF shows all of a pupil's incidents and praise with decrypted text; degrading-treatment reports are shown in the dashboard and as PDF.
  • Rectification (Article 16): incidents can be edited by the reporter and by head teacher or administrator; every change is logged. Degrading-treatment reports can be supplemented within the case.
  • Erasure (Article 17): retention according to the controller's decision, pseudonymisation and, at the end of the contract, complete deletion. The provider does not delete records subject to preservation on its own; Article 17(3)(b) and (d).
  • Information (Articles 13–14): the controller informs pupils and guardians about the processing. The provider supplies a description of the service for that purpose on request. The Swedish National Agency for Education expects pupil and guardian to be told what is handed over at a school change; Haven shows the head teacher exactly what the handover contains before it is created.

12. Personal data breaches

The provider notifies the controller without undue delay after becoming aware of a personal data breach concerning the controller's data, with the information Article 33(3) requires, so that the controller can notify the supervisory authority within 72 hours. The provider monitors its server function logs (subscription to Supabase's and Vercel's status notices: see item 10 in section 13). The audit log and export log are used to determine what was affected.

13. Known limitations and open points

These belong in the controller's impact assessment as residual risks or conditions:

  1. E-mail is not enabled. Until Resend is configured, invitations and password resets are sent by Supabase's default mailer, and no notice e-mails go out. Push notifications work. The sub-processor list is updated when Resend is enabled.
  2. Push notifications go via Expo in the USA. The content is generic (no pupil data), but metadata such as time and the recipient's push token leaves the EU. The controller can choose to turn off push for its staff.
  3. Free text is free text. Staff can write things that should not be there, such as a guardian's phone number or other pupils' names. The group-focus field and the reference field of external reports are not encrypted. The controller's instruction to staff needs to cover this. The provider recommends a hint in the interface; it is not built.
  4. Stored PDFs are not affected by pseudonymisation. This is deliberate (preservation), but the controller should know the name remains in the file.
  5. No federated login (SSO). Accounts are e-mail and password. Password policy and two-factor authentication are handled by Supabase Auth; two-factor is not switched on in the service.
  6. No pupil register integration (SS 12000). Pupils are added by CSV import. Import errors are corrected manually.
  7. The provider is a small company without ISO 27001 or equivalent certification. The security work is what is described above and can be reviewed in the source code on request.
  8. Legal review of the preservation question and of the need for prior consultation with the supervisory authority (Article 36) has not been done by a lawyer; the material rests on statute text, the Swedish authority's guidance and SKR's retention guidance.
  9. Logging of the provider's own access happens at Supabase, not in Haven's audit log. How long Supabase keeps those logs depends on the plan and is not verified; the provider confirms the retention period before contract.
  10. Status monitoring. Subscription to Supabase's and Vercel's status pages is not confirmed; the provider sets it up before contract.
  11. Deletion at contract end is a commitment, not an automatic process: the provider runs a purge script on written instruction and confirms in writing.

14. What the controller is responsible for

  • The impact assessment and the decision to start using the service, and any prior consultation with the supervisory authority.
  • The record of processing under Article 30 and information to pupils and guardians under Articles 13–14.
  • A records management plan and retention decisions covering the data in Haven, including the retention periods set in the service.
  • User administration: who is invited, roles, the EHT flag, and closing accounts when staff leave.
  • Instructions to staff on what may be written in free text and in group focus.
  • Registration of reports to the organiser in its own register, and archiving of PDFs from the archive export.
  • A DPA with the provider, with instructions for the processing and for deletion at the end of the contract.

Attachments available on request: data model, list of database rules (RLS), description of the encryption, test records, source code.