Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

📝 Render DPA Annex 2 from a data file and block unnoticed sub-processor changes (#3366)

Luke Vella933044dd3d88
diff --git a/.github/workflows/subprocessor-notice.yml b/.github/workflows/subprocessor-notice.yml
new file mode 100644
index 000000000..8846e6d89
--- /dev/null
+++ b/.github/workflows/subprocessor-notice.yml
@@ -0,0 +1,34 @@
+name: Sub-processor notice
+on:
+ pull_request:
+ branches:
+ - main
+ # `edited` reruns the check when the notice-sent line is added to the body.
+ types: [opened, edited, synchronize, reopened]
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
+ cancel-in-progress: true
+
+jobs:
+ check:
+ name: Sub-processor notice
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+ - name: Fetch base branch
+ run: git fetch --depth=1 origin "$BASE_REF"
+ env:
+ BASE_REF: ${{ github.event.pull_request.base.ref }}
+ - uses: actions/setup-node@v4
+ with:
+ node-version: "24"
+ - name: Check DPA section 6.3 notice
+ run: node scripts/check-subprocessor-notice.mjs "origin/$BASE_REF"
+ env:
+ BASE_REF: ${{ github.event.pull_request.base.ref }}
+ PR_BODY: ${{ github.event.pull_request.body }}
diff --git a/apps/landing/src/app/[locale]/(main)/dpa/page.tsx b/apps/landing/src/app/[locale]/(main)/dpa/page.tsx
index c9667036e..73d166866 100644
--- a/apps/landing/src/app/[locale]/(main)/dpa/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/dpa/page.tsx
@@ -2,9 +2,24 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
+import DateFormatter from "@/components/blog/date-formatter";
import { LegalPageLayout } from "@/components/legal-page-layout";
import { Section } from "@/components/section";
import { LinkBase } from "@/i18n/client/link";
+import data from "./subprocessors.json";
+
+type Subprocessor = {
+ name: string;
+ url: string;
+ purpose: string;
+ dataProcessed: string;
+ location: string;
+ transferMechanism: string;
+ effectiveDate?: string;
+};
+
+const subprocessors: Subprocessor[] = data.subprocessors;
+const changelog: { date: string; summary: string }[] = data.changelog;
export default async function DataProcessingAgreement() {
cacheLife("max");
@@ -12,7 +27,7 @@ export default async function DataProcessingAgreement() {
<Section>
<LegalPageLayout
title="Data processing agreement"
- lastUpdated="2026-09-14"
+ lastUpdated="2026-09-24"
>
<p>
This Data Processing Agreement (&quot;DPA&quot;) forms part of the{" "}
@@ -380,7 +395,10 @@ export default async function DataProcessingAgreement() {
</h2>
<p>
We use the following Sub-processors to provide the Service. Changes to
- this list are notified as set out in Section 6.
+ this list are notified as set out in Section 6 and recorded under{" "}
+ <a href="#annex-2-changes">Changes to Annex 2</a>. A Sub-processor
+ shown with a start date does not process Customer Data before that
+ date.
</p>
<div className="overflow-x-auto">
<table className="whitespace-nowrap lg:whitespace-normal">
@@ -388,142 +406,43 @@ export default async function DataProcessingAgreement() {
<tr>
<th>Provider</th>
<th>Purpose</th>
+ <th>Data processed</th>
<th>Location</th>
<th>Transfer mechanism</th>
</tr>
</thead>
<tbody>
- <tr>
- <td>
- <a
- href="https://security.vercel.com/"
- target="_blank"
- rel="noreferrer noopener"
- >
- Vercel
- </a>
- </td>
- <td>Application hosting</td>
- <td>United States</td>
- <td>EU-US DPF + UK Extension (SCCs fallback)</td>
- </tr>
- <tr>
- <td>
- <a
- href="https://neon.com/security"
- target="_blank"
- rel="noreferrer noopener"
- >
- Neon
- </a>
- </td>
- <td>Managed PostgreSQL database</td>
- <td>United States</td>
- <td>
- EU-US DPF + UK Extension, certified under Databricks, Inc.
- (SCCs fallback)
- </td>
- </tr>
- <tr>
- <td>
- <a
- href="https://upstash.com/docs/common/help/compliance"
- target="_blank"
- rel="noreferrer noopener"
- >
- Upstash
- </a>
- </td>
- <td>Session data, rate limiting</td>
- <td>United States</td>
- <td>EU-US DPF + UK Extension (SCCs + UK Addendum fallback)</td>
- </tr>
- <tr>
- <td>
- <a
- href="https://aws.amazon.com/compliance/"
- target="_blank"
- rel="noreferrer noopener"
- >
- Amazon Web Services
- </a>
- </td>
- <td>Transactional email, object storage</td>
- <td>United States</td>
- <td>
- EU-US DPF + UK Extension, certified under Amazon.com, Inc.
- (SCCs fallback)
- </td>
- </tr>
- <tr>
- <td>
- <a
- href="https://openai.com/policies/business-terms/"
- target="_blank"
- rel="noreferrer noopener"
- >
- OpenAI
- </a>
- </td>
- <td>
- Automated content moderation (poll title, description and
- location only, when flagged by pattern matching)
- </td>
- <td>United States</td>
- <td>SCCs + UK Addendum (OpenAI Data Processing Addendum)</td>
- </tr>
- <tr>
- <td>
- <a
- href="https://stripe.com/docs/security"
- target="_blank"
- rel="noreferrer noopener"
- >
- Stripe
- </a>
- </td>
- <td>Payment processing (billing contact data only)</td>
- <td>United States</td>
- <td>EU-US DPF + UK Extension (SCCs + UK Addendum fallback)</td>
- </tr>
- <tr>
- <td>
- <a
- href="https://posthog.com/privacy"
- target="_blank"
- rel="noreferrer noopener"
- >
- PostHog (EU)
- </a>
- </td>
- <td>Product analytics</td>
- <td>European Union</td>
- <td>EU data residency (no US transfer)</td>
- </tr>
- <tr>
- <td>
- <a
- href="https://sentry.io/security/"
- target="_blank"
- rel="noreferrer noopener"
- >
- Sentry
- </a>
- </td>
- <td>Error monitoring</td>
- <td>United States</td>
- <td>EU-US DPF + UK Extension (SCCs + UK Addendum fallback)</td>
- </tr>
+ {subprocessors.map((subprocessor) => (
+ <tr key={subprocessor.name}>
+ <td>
+ <a
+ href={subprocessor.url}
+ target="_blank"
+ rel="noreferrer noopener"
+ >
+ {subprocessor.name}
+ </a>
+ {subprocessor.effectiveDate ? (
+ <>
+ <br />
+ <small>
+ From{" "}
+ <DateFormatter
+ dateString={subprocessor.effectiveDate}
+ />
+ </small>
+ </>
+ ) : null}
+ </td>
+ <td>{subprocessor.purpose}</td>
+ <td>{subprocessor.dataProcessed}</td>
+ <td>{subprocessor.location}</td>
+ <td>{subprocessor.transferMechanism}</td>
+ </tr>
+ ))}
</tbody>
</table>
</div>
- <p>
- OpenAI was added to this annex on 14 September 2026. Automated content
- moderation has sent flagged poll content to OpenAI since it launched
- on 3 March 2025, so this entry is a disclosure of existing processing
- rather than the advance notice described in Section 6.3. The objection
- right in Section 6.4 applies from the date this entry was added.
- </p>
<p>
Stripe, PostHog, and Sentry primarily support processing for which we
act as a controller (billing, product analytics, and error monitoring)
@@ -533,6 +452,25 @@ export default async function DataProcessingAgreement() {
<hr />
+ <h2 id="annex-2-changes" className="scroll-mt-24">
+ Changes to Annex 2
+ </h2>
+ <p>
+ Every change to Annex 2 is recorded here on the date it was published.
+ </p>
+ <ul>
+ {changelog.map((change) => (
+ <li key={`${change.date}-${change.summary}`}>
+ <strong>
+ <DateFormatter dateString={change.date} />:
+ </strong>{" "}
+ {change.summary}
+ </li>
+ ))}
+ </ul>
+
+ <hr />
+
<h2>Contact</h2>
<p>
Questions about this DPA, requests for a countersigned copy, and
diff --git a/apps/landing/src/app/[locale]/(main)/dpa/subprocessors.json b/apps/landing/src/app/[locale]/(main)/dpa/subprocessors.json
new file mode 100644
index 000000000..e5399a36b
--- /dev/null
+++ b/apps/landing/src/app/[locale]/(main)/dpa/subprocessors.json
@@ -0,0 +1,82 @@
+{
+ "subprocessors": [
+ {
+ "name": "Vercel",
+ "url": "https://security.vercel.com/",
+ "purpose": "Application hosting",
+ "dataProcessed": "All Customer Data in transit, and request logs including IP addresses",
+ "location": "United States",
+ "transferMechanism": "EU-US DPF + UK Extension (SCCs fallback)"
+ },
+ {
+ "name": "Neon",
+ "url": "https://neon.com/security",
+ "purpose": "Managed PostgreSQL database",
+ "dataProcessed": "All Customer Data at rest, including backups",
+ "location": "United States",
+ "transferMechanism": "EU-US DPF + UK Extension, certified under Databricks, Inc. (SCCs fallback)"
+ },
+ {
+ "name": "Upstash",
+ "url": "https://upstash.com/docs/common/help/compliance",
+ "purpose": "Session data, rate limiting",
+ "dataProcessed": "Session records including user IDs, IP addresses and device information; rate limit counters keyed by user ID or IP address",
+ "location": "United States",
+ "transferMechanism": "EU-US DPF + UK Extension (SCCs + UK Addendum fallback)"
+ },
+ {
+ "name": "Amazon Web Services",
+ "url": "https://aws.amazon.com/compliance/",
+ "purpose": "Transactional email, object storage",
+ "dataProcessed": "Recipient names and email addresses, and the content of emails we send; uploaded images such as profile pictures and logos",
+ "location": "United States",
+ "transferMechanism": "EU-US DPF + UK Extension, certified under Amazon.com, Inc. (SCCs fallback)"
+ },
+ {
+ "name": "OpenAI",
+ "url": "https://openai.com/policies/business-terms/",
+ "purpose": "Automated content moderation (poll title, description and location only, when flagged by pattern matching)",
+ "dataProcessed": "Poll title, description and location of flagged polls, without account data",
+ "location": "United States",
+ "transferMechanism": "SCCs + UK Addendum (OpenAI Data Processing Addendum)"
+ },
+ {
+ "name": "Stripe",
+ "url": "https://stripe.com/docs/security",
+ "purpose": "Payment processing (billing contact data only)",
+ "dataProcessed": "Billing contact name, email address and billing address",
+ "location": "United States",
+ "transferMechanism": "EU-US DPF + UK Extension (SCCs + UK Addendum fallback)"
+ },
+ {
+ "name": "PostHog (EU)",
+ "url": "https://posthog.com/privacy",
+ "purpose": "Product analytics",
+ "dataProcessed": "User IDs, names, email addresses, IP addresses and product usage events",
+ "location": "European Union",
+ "transferMechanism": "EU data residency (no US transfer)"
+ },
+ {
+ "name": "Sentry",
+ "url": "https://sentry.io/security/",
+ "purpose": "Error monitoring",
+ "dataProcessed": "Error reports and diagnostic context, including user IDs",
+ "location": "United States",
+ "transferMechanism": "EU-US DPF + UK Extension (SCCs + UK Addendum fallback)"
+ }
+ ],
+ "changelog": [
+ {
+ "date": "2026-09-24",
+ "summary": "Added a Data processed column describing the processing each Sub-processor already performs. No Sub-processors were added or changed."
+ },
+ {
+ "date": "2026-09-14",
+ "summary": "Added OpenAI. Automated content moderation has sent flagged poll content to OpenAI since it launched on 3 March 2025, so this entry is a disclosure of existing processing rather than the advance notice described in Section 6.3. The objection right in Section 6.4 applies from the date this entry was added."
+ },
+ {
+ "date": "2026-08-31",
+ "summary": "Annex 2 published with Vercel, Neon, Upstash, Amazon Web Services, Stripe, PostHog and Sentry."
+ }
+ ]
+}
diff --git a/scripts/check-subprocessor-notice.mjs b/scripts/check-subprocessor-notice.mjs
new file mode 100644
index 000000000..95ae11d97
--- /dev/null
+++ b/scripts/check-subprocessor-notice.mjs
@@ -0,0 +1,214 @@
+#!/usr/bin/env node
+// Merge guard for DPA section 6.3. Annex 2 on rallly.co/dpa renders from
+// SUBPROCESSORS_FILE, and 6.3 promises that a new or replacement
+// Sub-processor is listed at least 30 days before it first processes
+// Customer Data, with an email notice to every customer who asked for one.
+//
+// Subscribers are the Resend segment "Subprocessor notifications"
+// (97e2359e-7e1c-4f7f-95dc-48d35e271ad8). Requests arrive at
+// [email protected] with that subject; add the requester's address to the
+// segment. Notices go out as transactional email to each contact, never as a
+// broadcast: broadcasts carry an unsubscribe link, and honouring it would
+// silently break the contractual commitment.
+//
+// Rules, compared against the base branch:
+// - An added Sub-processor needs `notice-sent: YYYY-MM-DD` in the PR body, an
+// effectiveDate at least 30 days after both the notice and today, and a new
+// changelog entry.
+// - A changed purpose, data, location or transfer mechanism on an existing
+// entry needs `notice-sent: YYYY-MM-DD` or `notice-not-required: <reason>`
+// in the PR body, and a new changelog entry.
+// - Bringing forward or removing a pending effectiveDate counts as adding.
+// - Removals, link changes and changelog edits pass.
+//
+// Usage: PR_BODY="..." node scripts/check-subprocessor-notice.mjs <base-ref>
+
+import { execFileSync } from "node:child_process";
+import { readFileSync } from "node:fs";
+import { pathToFileURL } from "node:url";
+
+const SUBPROCESSORS_FILE =
+ "apps/landing/src/app/[locale]/(main)/dpa/subprocessors.json";
+const NOTICE_PERIOD_DAYS = 30;
+const MATERIAL_FIELDS = [
+ "purpose",
+ "dataProcessed",
+ "location",
+ "transferMechanism",
+];
+
+const DAY_MS = 24 * 60 * 60 * 1000;
+
+function parseDate(value) {
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value ?? "")) {
+ return null;
+ }
+ const date = new Date(`${value}T00:00:00Z`);
+ if (Number.isNaN(date.getTime())) {
+ return null;
+ }
+ // Date rolls impossible days over (2026-02-30 becomes 2026-03-02).
+ return date.toISOString().slice(0, 10) === value ? date : null;
+}
+
+function daysBetween(from, to) {
+ return Math.round((to.getTime() - from.getTime()) / DAY_MS);
+}
+
+export function checkSubprocessorNotice({ base, head, prBody, today }) {
+ const errors = [];
+ const baseByName = new Map(base.subprocessors.map((s) => [s.name, s]));
+
+ // A pending start date brought forward or removed shortens the notice
+ // period, so it is checked as if the entry were new.
+ const added = head.subprocessors.filter((s) => {
+ const previous = baseByName.get(s.name);
+ if (!previous) {
+ return true;
+ }
+ const previousStart = parseDate(previous.effectiveDate);
+ if (!previousStart || previousStart <= today) {
+ return false;
+ }
+ const start = parseDate(s.effectiveDate);
+ return !start || start < previousStart;
+ });
+ const changed = head.subprocessors.filter((s) => {
+ const previous = baseByName.get(s.name);
+ return (
+ previous && MATERIAL_FIELDS.some((field) => previous[field] !== s[field])
+ );
+ });
+
+ if (added.length === 0 && changed.length === 0) {
+ return errors;
+ }
+
+ const noticeSentMatch = prBody.match(/^notice-sent:\s*(\S+)\s*$/m);
+ const noticeNotRequired = /^notice-not-required:\s*\S.*$/m.test(prBody);
+ const noticeSent = noticeSentMatch ? parseDate(noticeSentMatch[1]) : null;
+
+ if (noticeSentMatch && !noticeSent) {
+ errors.push(
+ `"notice-sent: ${noticeSentMatch[1]}" is not a valid YYYY-MM-DD date.`,
+ );
+ }
+ if (noticeSent && noticeSent > today) {
+ errors.push("notice-sent is in the future. Send the notice first.");
+ }
+
+ if (added.length > 0) {
+ const names = added.map((s) => s.name).join(", ");
+ if (!noticeSentMatch) {
+ errors.push(
+ `Adding or bringing forward ${names} requires a "notice-sent: YYYY-MM-DD" line in the PR body, asserting the change notice was emailed to the Subprocessor notifications segment.`,
+ );
+ }
+ for (const subprocessor of added) {
+ const effectiveDate = parseDate(subprocessor.effectiveDate);
+ if (!effectiveDate) {
+ errors.push(
+ `${subprocessor.name} needs an effectiveDate (YYYY-MM-DD): the first day it may process Customer Data.`,
+ );
+ continue;
+ }
+ if (daysBetween(today, effectiveDate) < NOTICE_PERIOD_DAYS) {
+ errors.push(
+ `${subprocessor.name} takes effect ${subprocessor.effectiveDate}, less than ${NOTICE_PERIOD_DAYS} days after Annex 2 is published today.`,
+ );
+ }
+ if (
+ noticeSent &&
+ daysBetween(noticeSent, effectiveDate) < NOTICE_PERIOD_DAYS
+ ) {
+ errors.push(
+ `${subprocessor.name} takes effect ${subprocessor.effectiveDate}, less than ${NOTICE_PERIOD_DAYS} days after the notice was sent.`,
+ );
+ }
+ }
+ }
+
+ if (changed.length > 0 && !noticeSentMatch && !noticeNotRequired) {
+ const names = changed.map((s) => s.name).join(", ");
+ errors.push(
+ `Changing ${names} requires "notice-sent: YYYY-MM-DD" or "notice-not-required: <reason>" in the PR body.`,
+ );
+ }
+
+ const baseChanges = new Set(
+ base.changelog.map((c) => `${c.date}\n${c.summary}`),
+ );
+ const hasNewChange = head.changelog.some(
+ (c) => !baseChanges.has(`${c.date}\n${c.summary}`),
+ );
+ if (!hasNewChange) {
+ errors.push(
+ "Add an entry to the changelog in subprocessors.json describing this change.",
+ );
+ }
+
+ return errors;
+}
+
+function main() {
+ const baseRef = process.argv[2];
+ if (!baseRef) {
+ console.error(
+ "Usage: node scripts/check-subprocessor-notice.mjs <base-ref>",
+ );
+ process.exit(2);
+ }
+
+ try {
+ execFileSync("git", ["rev-parse", "--verify", `${baseRef}^{commit}`], {
+ stdio: "ignore",
+ });
+ } catch {
+ console.error(`Base ref ${baseRef} not found.`);
+ process.exit(2);
+ }
+
+ const baseBlob = `${baseRef}:${SUBPROCESSORS_FILE}`;
+ // ls-tree prints nothing for a missing path and throws on real git errors.
+ const baseListing = execFileSync(
+ "git",
+ [
+ "--literal-pathspecs",
+ "ls-tree",
+ "--name-only",
+ baseRef,
+ "--",
+ SUBPROCESSORS_FILE,
+ ],
+ { encoding: "utf8" },
+ );
+ if (baseListing.trim() === "") {
+ console.log(
+ `${SUBPROCESSORS_FILE} does not exist on ${baseRef}; nothing to compare.`,
+ );
+ return;
+ }
+ const baseSource = execFileSync("git", ["cat-file", "blob", baseBlob], {
+ encoding: "utf8",
+ });
+
+ const errors = checkSubprocessorNotice({
+ base: JSON.parse(baseSource),
+ head: JSON.parse(readFileSync(SUBPROCESSORS_FILE, "utf8")),
+ prBody: process.env.PR_BODY ?? "",
+ today: parseDate(new Date().toISOString().slice(0, 10)),
+ });
+
+ if (errors.length > 0) {
+ console.error("Sub-processor change blocked (DPA section 6.3):");
+ for (const error of errors) {
+ console.error(`- ${error}`);
+ }
+ process.exit(1);
+ }
+ console.log("Sub-processor notice check passed.");
+}
+
+if (import.meta.url === pathToFileURL(process.argv[1]).href) {
+ main();
+}