From b4d0d085d3de6b6de3f4887df52e80204386dc8f Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Tue, 10 Nov 2026 15:34:35 -0700 Subject: [PATCH] Record the retention and hosting facts the privacy policy still has in brackets. Login links work for 60 minutes, unused rows are gone within a day, logs last 14 days, and backups are 30 days on MEDLab Cloudron in the United States. Live /privacy stays on the current page until counsel reads this text. --- docs/README.md | 3 ++ docs/privacy-policy-facts.md | 56 +++++++++++++++++++++++++++++ messages/en/pages/login.json | 2 +- messages/en/pages/privacy.json | 2 +- tests/unit/privacyRetention.test.ts | 11 ++++++ 5 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 docs/privacy-policy-facts.md create mode 100644 tests/unit/privacyRetention.test.ts diff --git a/docs/README.md b/docs/README.md index 2de86de..7f8fc5a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,6 +8,9 @@ User-facing docs. Implementation conventions live in `.cursor/rules/`. URLs, persistence. Source of truth for product/eng alignment. - [testing-guide.md](./testing-guide.md) — Testing philosophy, layer coverage, and Prisma migration smoke before merge. +- [privacy-policy-facts.md](./privacy-policy-facts.md) — Periods and + hosting facts for the privacy policy counsel will read. Live `/privacy` + stays on the current page until that review. - [figma-component-registry.md](./figma-component-registry.md) — Figma Community Rule System file ↔ `app/components/` (and route-colocated admin UI) map. diff --git a/docs/privacy-policy-facts.md b/docs/privacy-policy-facts.md new file mode 100644 index 0000000..e470cca --- /dev/null +++ b/docs/privacy-policy-facts.md @@ -0,0 +1,56 @@ +# Privacy policy facts + +Numbers and hosting details the new privacy policy leaves in brackets. +Live `/privacy` stays on the current page until university counsel has +read this text. Do not switch the route on from this file. + +## How long things are kept + +| What | Period | Where it is built | +| --- | --- | --- | +| Login and save-progress links | Work for **60 minutes**. Unused rows, and any draft they carry, are deleted once expired. A daily job runs the delete, so they are gone **within 24 hours** of expiry. | `MAGIC_LINK_TTL_MS`, Cloudron scheduler `prune-expired` | +| Email-change links | Same as login links: **60 minutes**, then gone within **24 hours**. | `EMAIL_CHANGE_TTL_MS` | +| Unused invitation tokens | The unused token is cleared once the invite expires. Gone within **24 hours** of expiry. The invitation row stays so it can be sent again. | Daily prune | +| Workshop inquiries that do not lead to a workshop | **12 months**, then deleted. | `WORKSHOP_INQUIRY_RETENTION_MS` | +| Ask an organizer messages | **Not stored** on CommunityRule. They are emailed to MEDLab. MEDLab deletes mailbox copies after **12 months**. | Mail only | +| Unused accounts | **Kept until the person deletes the account.** There is no unused-account timer at launch. | — | +| Server logs (app logs and Cloudron request logs) | **14 days.** Cloudron removes logs older than that. That is the shortest period the platform allows. | Cloudron log viewer | +| Backups | **30 days** (`30 daily` on the Cloudron backup site). Cloudron also keeps a pre-update snapshot for up to three extra weeks. | Operator setting, see the runbook | +| Reply to a data request | **30 days** | Process, not an app timer | + +Invitation **lifetime while it still works** is a product decision, not +set here. At launch the invite token uses the same 60-minute window as +login. + +## Where it runs + +Servers are in the **United States**. MEDLab operates them with +**Cloudron**: the app, the PostgreSQL database, mail, and file storage +on that host. Sign-in mail relays through Amazon SES. + +## Who reads workshop inquiries + +Only the people who answer them: MEDLab staff with the workshop inbox +and the operator page. Inquiries live in the `WorkshopInquiry` table +until the 12-month delete. + +## Analytics + +**Umami**, self-hosted beside the app, with no cookies and aggregate +counts only. Name it in the policy. The counter itself ships with the +counts-by-group work, not this pass. + +## Product copy the build already matches + +- **Login sent.** A login link works for **60 minutes**. The sent state + and the login email both say so. +- **Offline.** Answers stay in this browser until the person reconnects. + The offline notice already says that. + +## After counsel, and after launch + +- `/privacy` can show the new policy only after university counsel has + read it, including the Colorado Open Records Act line, Terms, Cookies, + the legal cards, and CC0 for cards and templates. +- An email to every account holder before a change to who can read Rules + is after launch. Nothing about who can read Rules changes at launch. diff --git a/messages/en/pages/login.json b/messages/en/pages/login.json index eff0895..85d176d 100644 --- a/messages/en/pages/login.json +++ b/messages/en/pages/login.json @@ -13,7 +13,7 @@ "emailPlaceholder": "you@example.com", "sendMagicLink": "Send me a magic link", "successTitle": "Check your email", - "successBody": "We sent a login link. Open it on this device to continue. If you don't see it, check spam or promotions.", + "successBody": "We sent a login link that works for 60 minutes. Open it on this device to continue. If you don't see it, check spam or promotions.", "legalPrefix": "By continuing, you agree to our ", "legalAnd": " and ", "legalSuffix": ".", diff --git a/messages/en/pages/privacy.json b/messages/en/pages/privacy.json index 6dd10c6..6533400 100644 --- a/messages/en/pages/privacy.json +++ b/messages/en/pages/privacy.json @@ -1,5 +1,5 @@ { - "_comment": "Privacy policy. Owns personal data, hosting, and how ranking works. API usage and licenses live on Terms. Grounded in MEDLab Cloudron + SES mail relay + facet-matrix recommendations. Not a substitute for university counsel review.", + "_comment": "Privacy policy currently on /privacy. Owns personal data, hosting, and how ranking works. API usage and licenses live on Terms. Grounded in MEDLab Cloudron + SES mail relay + facet-matrix recommendations. Periods and hosting facts for the new policy live in docs/privacy-policy-facts.md. Do not switch /privacy to that text until university counsel has read it.", "banner": { "title": "Privacy Policy", "description": "What we collect, where it is stored, and how template recommendations work.", diff --git a/tests/unit/privacyRetention.test.ts b/tests/unit/privacyRetention.test.ts new file mode 100644 index 0000000..133a75d --- /dev/null +++ b/tests/unit/privacyRetention.test.ts @@ -0,0 +1,11 @@ +import { describe, expect, it } from "vitest"; +import login from "../../messages/en/pages/login.json"; +import { MAGIC_LINK_TTL_MINUTES } from "../../lib/privacyRetention"; + +describe("privacy retention copy", () => { + it("states the login link lifetime in the sent state", () => { + expect(login.successBody).toContain( + `works for ${MAGIC_LINK_TTL_MINUTES} minutes`, + ); + }); +});