Skip to content

0012 Keep the demo's personal data to a minimum

  • Status: Accepted
  • Date: 2026-12-05

Context

The invite-only demo (ADR 0011, Demo site plan) handles personal data of 5 to 10 testers for the first time: a CV, an email address, and a profile that describes someone's career. WFHeaven is run from the EU, so the General Data Protection Regulation (GDPR) applies.

Until now, the only profile was the maintainer's, in the public repository, and the memory of picked jobs used plain SHA-256 hashes of public job IDs, which anyone can recompute (ADR 0006). Neither is acceptable for other people's data.

Decision

Store only what the daily email needs, in one place, and let each tester delete it with one click.

What's stored, in D1 (EU jurisdiction)

Data Why How long
Email address To send the daily picks Until the tester unsubscribes, or the demo ends
Profile: target titles, skills, languages, levels, years of experience, can_work_from, minimum salary, ai_training To rank jobs Same
Consent: the date, and the version of the consent text To show what the tester agreed to Same
Sent jobs, as HMAC-SHA256 hashes of the tester's ID and the job's ID, with the date To avoid sending a job twice 60 days, or until the tester leaves
The SHA-256 hash of a tester's confirmation token, and of the token that sends the link again To check the confirmation link 24 hours, or until it's used
Invite codes, as SHA-256 hashes, with how many CVs each has used To limit uploads Until the demo ends
Only if the site goes public: CVs per visitor, by an HMAC of the IP address To limit uploads without invite codes Until the next day

The sent-job hashes use a secret key, WFHEAVEN_HASH_KEY, held only in GitHub Actions, so nobody can tell from a hash which job was sent. For testers, this replaces the Actions cache of ADR 0006, which is superseded.

Unsubscribe links aren't stored: each is signed with a secret key, so the daily run can build it for every email (ADR 0013).

Sign-ups that aren't confirmed are deleted after 7 days. When the demo ends, or at the latest 6 months after it opens, every tester's data is deleted.

What's not stored

  • The CV. The Worker reads the uploaded file in memory, sends it to Claude, and returns the draft. It never writes the file or its text to D1, to disk, or to a log. The CV exists only for the length of one request.
  • Remarks and questions about the CV are shown in the browser, and not stored. Phase 3, the follow-up chat, keeps the conversation in the browser too, and stores only a message count (ADR 0014).
  • Job data. The job file stays on the GitHub runner and is deleted when the run ends (ADR 0004).
  • Logs show counts only: never an email address, a profile, or a job.

The privacy notice asks testers to remove their photo, date of birth, and home address before uploading, because WFHeaven doesn't need them. The prompt already tells Claude to leave personal data out of the profile (ADR 0010).

Who processes the data

Processor What it gets Where Terms
Cloudflare Hosts the site and D1; Turnstile checks the browser D1 in the EU; request metadata in data centers in the US and Europe Customer DPA, part of the Self-Serve Subscription Agreement
Anthropic The CV, once, to draft the profile US Data Processing Addendum, part of the Commercial Terms; no training by default; kept up to 30 days (ADR 0010)
Resend The email address and each email's content US; logs kept 30 days Data Processing Addendum, pre-signed
GitHub The daily run reads email addresses and profiles from D1 into the runner's memory and temporary files Runners on Azure or AWS, region not stated; GitHub may process data in the US Data Protection Agreement, under customer terms

International transfers

The tester's data leaves the EU in three places. Anthropic receives the CV, Resend the email address and each email, and GitHub's daily run both. All three are US companies. Cloudflare keeps the database in the EU, but its network also processes request metadata in the US.

Each transfer rests on the European Commission's Standard Contractual Clauses (SCCs), Module Two (controller to processor), which each provider's DPA incorporates. Resend, Cloudflare, and GitHub are also certified under the EU-U.S. Data Privacy Framework (DPF). What each provider's own pages say, read on 2026-12-05:

Provider Where it processes Transfer terms
Anthropic Not stated in the DPA; Anthropic is a US company SCCs Modules Two and Three, incorporated by reference and governed by Irish law (DPA, section I and Schedule 3). The DPA doesn't mention the DPF.
Resend "Primary processing operations take place in the United States"; data stored in the US (DPA, section 6.1; GDPR page) SCCs Modules Two and Three (DPA section 6.2); DPF (section 11.1). Choosing the EU sending region doesn't change where data is stored.
Cloudflare D1 in the eu jurisdiction; request metadata in "the United States and Europe" (GDPR page) SCCs Module Two (DPA section 6.2); DPF (section 6.4) (DPA)
GitHub "The United States or any other country" (Data Protection Agreement, section 7) DPF (section 7.B); SCCs Module Two or Three (Privacy Statement)

WFHeaven keeps the data that crosses small: the CV once, and the address, profile, and email content only for the daily run. The tester notice says in plain words that the data goes to the US.

The legal basis is consent, asked for twice, with checkboxes that start cleared. The texts are versioned; a change gets a new version.

At upload, version upload-1, the wording of the approved design:

I agree that my CV is sent to Anthropic, a US company, to draft my profile, and is deleted right after.

"Deleted right after" means WFHeaven's copy. Anthropic keeps API inputs for up to 30 days, which the privacy notice says.

At sign-up, version signup-1, the wording of the approved design:

Send me up to 10 job picks each morning. I can unsubscribe and delete all my data with one click in any email. Privacy notice.

The text links to the privacy notice, which says where the data is stored and for how long. The maintainer joins D1 without the form, with the version maintainer.

The site itself

  • No cookies of its own, and no analytics.
  • The fonts are served from wfheaven.app, not from Google Fonts, so a visit doesn't send the visitor's IP address to Google.
  • The only outside script is Cloudflare's Turnstile, for the bot check.
  • The invite code is checked with a POST request, so it stays out of the request addresses that Cloudflare's logs record.

Unsubscribe and "delete my data"

  • One action. Every email has an "Unsubscribe and delete my data" link, and the List-Unsubscribe and List-Unsubscribe-Post headers for one-click unsubscribing in the mail app. Either deletes the tester's row and their sent-job hashes straight away. The link works without the demo being open. A demo has no reason to keep a profile without the email.
  • A copy or a correction is answered by email, at privacy@wfheaven.app, within a month. A download button isn't worth it for 10 testers.
  • Double opt-in. The address gets one email with a confirmation link, valid for 24 hours. The link opens a page with a button; nothing else is sent until the button is clicked (ADR 0013). "Send it again" sends a new link, counted against the same invite code.

Consequences

  • A leaked D1 database would show email addresses and career profiles, but no CVs, and no way to tell which jobs anyone was sent.
  • Testers' profiles never enter the public repository. profiles/gergely.yaml stays as the reference profile, and the maintainer joins D1 as a tester.
  • The CV still goes to the US once, to Anthropic. The consent text says so.
  • The daily run needs new secrets: a Cloudflare API token for D1, WFHEAVEN_HASH_KEY, and UNSUBSCRIBE_KEY, which the Worker shares.
  • The privacy notice describes this decision for testers.

Open questions

  • Phase 3's chat: store the conversation, or only the updated profile? Answered in ADR 0014: only the profile, and only at sign-up.
  • Milestone 3 and a public launch need a review of this notice by someone qualified in data protection law.