Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat(www): add hidden Legal Hub subprocessor list page (draft) (#48100)

claude[bot]ffd5a93f3773
diff --git a/apps/www/app/api-v2/submit-form-subprocessor-updates/route.tsx b/apps/www/app/api-v2/submit-form-subprocessor-updates/route.tsx
new file mode 100644
index 00000000000..b9128e6e174
--- /dev/null
+++ b/apps/www/app/api-v2/submit-form-subprocessor-updates/route.tsx
@@ -0,0 +1,62 @@
+import * as Sentry from '@sentry/nextjs'
+
+import { CustomerioTrackClient } from '~/lib/customerio'
+
+const corsHeaders = {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+}
+
+const isValidEmail = (email: string): boolean => {
+ const emailPattern = /^[\w-\.+]+@([\w-]+\.)+[\w-]{2,8}$/
+ return emailPattern.test(email)
+}
+
+export async function POST(req: Request) {
+ const body = await req.json()
+ const { firstName, lastName, email } = body
+
+ if (!firstName || !lastName || !email) {
+ return new Response(JSON.stringify({ message: 'All fields are required' }), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ status: 422,
+ })
+ }
+
+ if (!isValidEmail(email)) {
+ return new Response(JSON.stringify({ message: 'Invalid email address' }), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ status: 422,
+ })
+ }
+
+ try {
+ const customerioSiteId = process.env.CUSTOMERIO_SITE_ID
+ const customerioApiKey = process.env.CUSTOMERIO_API_KEY
+
+ if (!customerioSiteId || !customerioApiKey) {
+ throw new Error('Customer.io credentials not configured')
+ }
+
+ const cio = new CustomerioTrackClient(customerioSiteId, customerioApiKey)
+
+ await cio.createOrUpdateProfile(email, {
+ firstName,
+ lastName,
+ // Subprocessor Alerts subscription topic. Per Prashant: subscription topic id 4.
+ // (The security newsletter route uses topic_2 for its own topic.)
+ 'cio_subscription_preferences.topics.topic_4': true,
+ })
+
+ return new Response(JSON.stringify({ message: 'Subscription successful' }), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ status: 200,
+ })
+ } catch (error: any) {
+ Sentry.captureException(error)
+ return new Response(JSON.stringify({ error: error.message }), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ status: 500,
+ })
+ }
+}
diff --git a/apps/www/components/SubprocessorUpdatesForm.tsx b/apps/www/components/SubprocessorUpdatesForm.tsx
new file mode 100644
index 00000000000..17d094a0a1c
--- /dev/null
+++ b/apps/www/components/SubprocessorUpdatesForm.tsx
@@ -0,0 +1,126 @@
+import { useState } from 'react'
+import Link from 'next/link'
+import { Button, Input, Label } from 'ui'
+
+const isValidEmail = (email: string): boolean => {
+ const emailPattern = /^[\w-\.+]+@([\w-]+\.)+[\w-]{2,8}$/
+ return emailPattern.test(email)
+}
+
+/**
+ * Subscribe form for subprocessor update notifications.
+ * Mirrors components/SecurityNewsletterForm.tsx, posting to the
+ * /api-v2/submit-form-subprocessor-updates route (Customer.io "Subprocessor Alerts", topic_4).
+ */
+const SubprocessorUpdatesForm = () => {
+ const [firstName, setFirstName] = useState('')
+ const [lastName, setLastName] = useState('')
+ const [email, setEmail] = useState('')
+ const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle')
+ const [errorMessage, setErrorMessage] = useState('')
+
+ const handleSubmit = async (e: React.FormEvent) => {
+ e.preventDefault()
+ setErrorMessage('')
+
+ if (!firstName || !lastName || !email) {
+ setErrorMessage('All fields are required.')
+ return
+ }
+
+ if (!isValidEmail(email)) {
+ setErrorMessage('Please enter a valid email address.')
+ return
+ }
+
+ setStatus('loading')
+
+ try {
+ const res = await fetch('/api-v2/submit-form-subprocessor-updates', {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ firstName, lastName, email }),
+ })
+
+ if (!res.ok) {
+ const data = await res.json()
+ throw new Error(data.message || 'Something went wrong')
+ }
+
+ setStatus('success')
+ } catch (err: any) {
+ setStatus('error')
+ setErrorMessage(err.message || 'Something went wrong. Please try again.')
+ }
+ }
+
+ return (
+ <div className="border rounded-xl bg-surface-75 p-4 md:p-6 w-full max-w-lg not-prose">
+ <p className="text-foreground-light text-sm text-pretty mb-6">
+ <strong className="text-foreground">Subscribe to updates</strong>. Receive an email
+ notification when Supabase updates its sub-processors. By submitting this form, you
+ acknowledge and agree that Supabase will process your personal information in accordance
+ with our{' '}
+ <Link
+ href="https://supabase.com/privacy"
+ className="text-brand-link hover:underline"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ Privacy Policy
+ </Link>
+ .
+ </p>
+
+ {status === 'success' ? (
+ <p className="text-foreground text-sm">
+ Thanks for subscribing! You'll receive an email when Supabase updates its sub-processors.
+ </p>
+ ) : (
+ <form onSubmit={handleSubmit} className="flex flex-col gap-4">
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div className="flex flex-col gap-2">
+ <Label htmlFor="subprocessor-first-name">First name</Label>
+ <Input
+ id="subprocessor-first-name"
+ type="text"
+ value={firstName}
+ onChange={(e) => setFirstName(e.target.value)}
+ placeholder="First name"
+ required
+ />
+ </div>
+ <div className="flex flex-col gap-2">
+ <Label htmlFor="subprocessor-last-name">Last name</Label>
+ <Input
+ id="subprocessor-last-name"
+ type="text"
+ value={lastName}
+ onChange={(e) => setLastName(e.target.value)}
+ placeholder="Last name"
+ required
+ />
+ </div>
+ </div>
+ <div className="flex flex-col gap-2">
+ <Label htmlFor="subprocessor-email">Email</Label>
+ <Input
+ id="subprocessor-email"
+ type="email"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ placeholder="Email"
+ required
+ />
+ </div>
+ {errorMessage && <p className="text-destructive text-sm">{errorMessage}</p>}
+ <Button variant="primary" size="large" type="submit" loading={status === 'loading'}>
+ Subscribe
+ </Button>
+ </form>
+ )}
+ </div>
+ )
+}
+
+export default SubprocessorUpdatesForm
diff --git a/apps/www/pages/legal/customer-resources/subprocessor-list.tsx b/apps/www/pages/legal/customer-resources/subprocessor-list.tsx
new file mode 100644
index 00000000000..4a06d662cc2
--- /dev/null
+++ b/apps/www/pages/legal/customer-resources/subprocessor-list.tsx
@@ -0,0 +1,66 @@
+import DefaultLayout from '~/components/Layouts/Default'
+import SectionContainer from '~/components/Layouts/SectionContainer'
+import PageBreadcrumb from '~/components/Sections/PageBreadcrumb'
+import PageHeader from '~/components/Sections/PageHeader'
+import SubprocessorUpdatesForm from '~/components/SubprocessorUpdatesForm'
+import { Download } from 'lucide-react'
+import { NextSeo } from 'next-seo'
+import { Button } from 'ui'
+
+/**
+ * TO UPDATE THE SUBPROCESSOR LIST:
+ * 1. Drop the new dated PDF into `apps/www/public/legal/subprocessor-list/`
+ * (filename in `Month-D-YYYY.pdf` format, e.g. `September-1-2026.pdf`).
+ * 2. Change the single `CURRENT_PDF` constant below (both `file` and `displayDate`).
+ * This constant is the ONLY thing that needs to change on each update.
+ */
+const CURRENT_PDF = {
+ file: 'June-1-2026.pdf',
+ displayDate: 'June 1, 2026',
+}
+
+const PDF_PATH = `/legal/subprocessor-list/${CURRENT_PDF.file}`
+
+const meta = {
+ title: 'Subprocessor List',
+ description: 'The list of third-party sub-processors Supabase uses to provide its services.',
+}
+
+// NOTE: This page is intentionally HIDDEN for now — it is not linked from the Legal Hub
+// index (`pages/legal/index.tsx`) or any navigation. It is also marked noindex/nofollow
+// so search engines do not index it while it is in draft. Remove `noindex`/`nofollow` and
+// add a link from the Legal Hub index when Legal is ready to publish it.
+export default function SubprocessorListPage() {
+ return (
+ <DefaultLayout>
+ <NextSeo {...meta} noindex nofollow />
+ <PageHeader
+ breadcrumb={
+ <PageBreadcrumb
+ items={[
+ { label: 'Legal', href: '/legal' },
+ { label: 'Customer Legal Resources', href: '/legal#customer-legal-resources' },
+ ]}
+ />
+ }
+ h1="Subprocessor List"
+ subheader="The third-party sub-processors Supabase engages to help provide its services are indicated in the latest linked Subprocessor List available below. This page is updated with an updated Subprocessor List as our sub-processors change. You can subscribe to receive notifications of updates to this page, below."
+ />
+ <SectionContainer className="prose">
+ <div className="flex flex-col gap-4">
+ <div className="not-prose">
+ <Button asChild variant="default" icon={<Download />}>
+ <a href={PDF_PATH} download target="_blank" rel="noopener noreferrer">
+ Subprocessor List - Updated {CURRENT_PDF.displayDate}
+ </a>
+ </Button>
+ </div>
+ </div>
+
+ <div className="mt-16 flex flex-col items-start gap-4">
+ <SubprocessorUpdatesForm />
+ </div>
+ </SectionContainer>
+ </DefaultLayout>
+ )
+}
diff --git a/apps/www/public/legal/subprocessor-list/June-1-2026.pdf b/apps/www/public/legal/subprocessor-list/June-1-2026.pdf
new file mode 100644
index 00000000000..94b5804f3cd
Binary files /dev/null and b/apps/www/public/legal/subprocessor-list/June-1-2026.pdf differ