Skip to content

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

feat: remove pandadoc dpa request flow (#48525)

Pamela Chiac4c58ef3e3b2
diff --git a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
index d66e124a097..974ccc2621f 100644
--- a/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/DPA.tsx
@@ -1,5 +1,3 @@
-import { useState } from 'react'
-import { toast } from 'sonner'
import { Button } from 'ui'
import {
@@ -8,96 +6,38 @@ import {
ScaffoldSectionDetail,
} from '@/components/layouts/Scaffold'
import { InlineLink } from '@/components/ui/InlineLink'
-import { TextConfirmModal } from '@/components/ui/TextConfirmModalWrapper'
-import { useDpaRequestMutation } from '@/data/documents/dpa-request-mutation'
-import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'
-import { useProfile } from '@/lib/profile'
import { useTrack } from '@/lib/telemetry/track'
export const DPA = () => {
- const { profile } = useProfile()
- const { data: organization } = useSelectedOrganizationQuery()
- const slug = organization?.slug
-
- const [isOpen, setIsOpen] = useState(false)
-
const track = useTrack()
- const { mutate: requestDpa, isPending: isRequesting } = useDpaRequestMutation({
- onSuccess: () => {
- toast.success('DPA request sent successfully')
- setIsOpen(false)
- },
- })
-
- const onConfirmRequest = async () => {
- if (!slug) return toast.error('Organization not found.')
- if (!profile?.primary_email) return toast.error('Profile email not found.')
- requestDpa({ recipient_email: profile?.primary_email, slug: slug })
- }
return (
- <>
- <ScaffoldSection className="py-12">
- <ScaffoldSectionDetail>
- <h4 className="mb-5">Data Processing Addendum (DPA)</h4>
- <div className="space-y-2 text-sm text-foreground-light [&_p]:m-0">
- <p>
- All organizations can sign our Data Processing Addendum ("DPA") as part of their GDPR
- compliance.
- </p>
- <p>
- You can review a static PDF version of our latest DPA document{' '}
- <InlineLink
- href="https://supabase.com/downloads/docs/Supabase+DPA+260601.pdf"
- onClick={() => track('dpa_pdf_opened', { source: 'studio' })}
- >
- here
- </InlineLink>
- .
- </p>
- </div>
- </ScaffoldSectionDetail>
- <ScaffoldSectionContent>
- <div className="@lg:flex items-center justify-center h-full">
- <Button
- onClick={() => {
- setIsOpen(true)
- track('dpa_request_button_clicked')
- }}
- variant="default"
- >
- Request DPA
- </Button>
- </div>
- </ScaffoldSectionContent>
- </ScaffoldSection>
-
- <TextConfirmModal
- visible={isOpen}
- title="Request executable DPA to sign"
- loading={isRequesting}
- confirmPlaceholder="Enter your email address"
- confirmString={profile?.primary_email ?? ''}
- confirmLabel="Send DPA request"
- errorMessage="Email must match your account email."
- onCancel={() => setIsOpen(false)}
- onConfirm={() => onConfirmRequest()}
- >
- <div className="space-y-2 text-sm">
+ <ScaffoldSection className="py-12">
+ <ScaffoldSectionDetail>
+ <h4 className="mb-5">Data Processing Addendum (DPA)</h4>
+ <div className="space-y-2 text-sm text-foreground-light [&_p]:m-0">
<p>
- To make the DPA legally binding, you need to sign and complete the details through a
- PandaDoc document that we prepare.
- </p>
- <p>
- Please enter your email address to request an executable version of the DPA. You will
- receive a document link via PandaDoc in the next 24 hours.
- </p>
- <p>
- Once signed, the DPA will be considered executed and you'll be notified of any future
- updates via this email.
+ Our Data Processing Addendum is incorporated into our{' '}
+ <InlineLink href="https://supabase.com/terms">Terms of Service</InlineLink>, so all
+ organizations get its protections automatically. No separate signed DPA is needed.
</p>
+ <p>If you signed a DPA with us previously, that agreement remains binding.</p>
+ </div>
+ </ScaffoldSectionDetail>
+ <ScaffoldSectionContent>
+ <div className="@lg:flex items-center justify-center h-full">
+ <Button asChild variant="default">
+ <a
+ href="https://supabase.com/legal/customer-resources/data-processing-addendum"
+ target="_blank"
+ rel="noreferrer noopener"
+ onClick={() => track('document_view_button_clicked', { documentName: 'DPA' })}
+ >
+ View DPA
+ </a>
+ </Button>
</div>
- </TextConfirmModal>
- </>
+ </ScaffoldSectionContent>
+ </ScaffoldSection>
)
}
diff --git a/apps/studio/data/documents/dpa-request-mutation.ts b/apps/studio/data/documents/dpa-request-mutation.ts
deleted file mode 100644
index 276e382ea38..00000000000
--- a/apps/studio/data/documents/dpa-request-mutation.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-import { useMutation } from '@tanstack/react-query'
-import { toast } from 'sonner'
-
-import { handleError, post } from '@/data/fetchers'
-import type { ResponseError, UseCustomMutationOptions } from '@/types'
-
-export type DpaRequestVariables = {
- recipient_email: string
- slug: string
-}
-
-export async function requestDpa({ recipient_email, slug }: DpaRequestVariables) {
- const { data, error } = await post(`/platform/organizations/${slug}/documents/dpa` as any, {
- // Fix type later
- body: { recipient_email },
- })
- if (error) handleError(error)
- return data
-}
-
-type DpaRequestData = Awaited<ReturnType<typeof requestDpa>>
-
-export const useDpaRequestMutation = ({
- onSuccess,
- onError,
- ...options
-}: Omit<
- UseCustomMutationOptions<DpaRequestData, ResponseError, DpaRequestVariables>,
- 'mutationFn'
-> = {}) => {
- return useMutation<DpaRequestData, ResponseError, DpaRequestVariables>({
- mutationFn: (vars) => requestDpa(vars),
- async onSuccess(data, variables, context) {
- await onSuccess?.(data, variables, context)
- },
- async onError(data, variables, context) {
- if (onError === undefined) {
- toast.error(`Failed to request DPA: ${data.message}`)
- } else {
- onError(data, variables, context)
- }
- },
- ...options,
- })
-}
diff --git a/apps/www/components/SubprocessorUpdatesForm.tsx b/apps/www/components/SubprocessorUpdatesForm.tsx
index 17d094a0a1c..b89dff34769 100644
--- a/apps/www/components/SubprocessorUpdatesForm.tsx
+++ b/apps/www/components/SubprocessorUpdatesForm.tsx
@@ -1,5 +1,6 @@
-import { useState } from 'react'
+import { useSendTelemetryEvent } from '~/lib/telemetry'
import Link from 'next/link'
+import { useState } from 'react'
import { Button, Input, Label } from 'ui'
const isValidEmail = (email: string): boolean => {
@@ -18,6 +19,7 @@ const SubprocessorUpdatesForm = () => {
const [email, setEmail] = useState('')
const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle')
const [errorMessage, setErrorMessage] = useState('')
+ const sendTelemetryEvent = useSendTelemetryEvent()
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault()
@@ -48,6 +50,7 @@ const SubprocessorUpdatesForm = () => {
}
setStatus('success')
+ sendTelemetryEvent({ action: 'www_subprocessor_updates_subscribed' })
} catch (err: any) {
setStatus('error')
setErrorMessage(err.message || 'Something went wrong. Please try again.')
diff --git a/apps/www/data/Footer.ts b/apps/www/data/Footer.ts
index 367dd67321c..cb5a27a3498 100644
--- a/apps/www/data/Footer.ts
+++ b/apps/www/data/Footer.ts
@@ -104,10 +104,6 @@ const footerData = [
text: 'Security & Compliance',
url: '/security',
},
- {
- text: 'DPA',
- url: '/legal/dpa',
- },
{
text: 'SOC2',
url: '/security',
diff --git a/apps/www/data/legal/privacy/v3.mdx b/apps/www/data/legal/privacy/v3.mdx
index 6e4fcc79f8d..41cba2be632 100644
--- a/apps/www/data/legal/privacy/v3.mdx
+++ b/apps/www/data/legal/privacy/v3.mdx
@@ -6,7 +6,7 @@ Thank you for your interest in Supabase, Inc., ("**_Supabase_**," "**_we_**", "*
This Privacy Notice explains how we use your personal information when you use the Service, either as an individual customer or when you access the Service through one of our enterprise customers' accounts. We are the data controller of your personal information when we use it as described in this Privacy Notice, meaning that we determine and are responsible for how your personal information is processed.
-Our Service allows customers to submit, manage or otherwise use content relating to others, such as end users of applications built and managed through the Service or their employees and contractors (“**_Customer Data_**”). We use such Customer Data primarily as a processor, meaning we process such Customer Data on behalf of and under the instructions of the relevant customer, in accordance with our [data processing addendum](/legal/dpa). This Privacy Notice does not apply to such processing; if you believe your personal information has been included in any Customer Data, we recommend you read the Privacy Notice of the respective customer.
+Our Service allows customers to submit, manage or otherwise use content relating to others, such as end users of applications built and managed through the Service or their employees and contractors (“**_Customer Data_**”). We use such Customer Data primarily as a processor, meaning we process such Customer Data on behalf of and under the instructions of the relevant customer, in accordance with our [data processing addendum](/legal/customer-resources/data-processing-addendum). This Privacy Notice does not apply to such processing; if you believe your personal information has been included in any Customer Data, we recommend you read the Privacy Notice of the respective customer.
This Privacy Notice sets out how we use personal information. It does not cover our use of information that is not "personal information", "personal information" or similar terms under applicable law. This means that it does not cover our use of aggregated or anonymized information.
diff --git a/apps/www/lib/redirects.js b/apps/www/lib/redirects.js
index 33e95d0c4dd..2ec7c41125d 100644
--- a/apps/www/lib/redirects.js
+++ b/apps/www/lib/redirects.js
@@ -1747,6 +1747,11 @@ module.exports = [
source: '/privacy-250528',
destination: '/privacy?version=v1',
},
+ {
+ permanent: true,
+ source: '/legal/dpa',
+ destination: '/legal/customer-resources/data-processing-addendum',
+ },
{
permanent: true,
source: '/docs/company/sla',
diff --git a/apps/www/pages/legal/dpa.tsx b/apps/www/pages/legal/dpa.tsx
deleted file mode 100644
index 51458b76b4c..00000000000
--- a/apps/www/pages/legal/dpa.tsx
+++ /dev/null
@@ -1,71 +0,0 @@
-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 { useSendTelemetryEvent } from '~/lib/telemetry'
-import CTABanner from 'components/CTABanner/index'
-import { NextSeo } from 'next-seo'
-
-const meta = {
- title: 'Data Processing Addendum',
- description: 'Supabase Data Processing Addendum',
-}
-
-const DPA = () => {
- const sendTelemetryEvent = useSendTelemetryEvent()
-
- return (
- <DefaultLayout>
- <NextSeo {...meta} />
- <PageHeader
- breadcrumb={
- <PageBreadcrumb
- items={[
- { label: 'Legal', href: '/legal' },
- { label: 'Customer Legal Resources', href: '/legal#customer-legal-resources' },
- ]}
- />
- }
- h1="Data Processing Addendum"
- />
- <SectionContainer className="prose">
- <p>
- We have a long-standing commitment to customer privacy and data protection. As part of
- this commitment, we have prepared a Data Processing Addendum ("DPA"). You can review a
- static PDF version of our latest DPA document{' '}
- <a
- href="https://supabase.com/downloads/docs/Supabase+DPA+260601.pdf"
- target="_blank"
- rel="noopener noreferrer"
- className="text-brand-link hover:underline"
- onClick={() =>
- sendTelemetryEvent({
- action: 'dpa_pdf_opened',
- properties: { source: 'www' },
- })
- }
- >
- here
- </a>
- .
- </p>
-
- <p>
- To make the DPA legally binding, you need to sign and complete the details through a
- PandaDoc document that we prepare. To get this version of the DPA,{' '}
- <a
- href="https://supabase.com/dashboard/org/_/documents"
- target="_blank"
- rel="noopener noreferrer"
- className="text-brand-link hover:underline"
- >
- request it from the legal documents page
- </a>{' '}
- of your Supabase dashboard.
- </p>
- </SectionContainer>
- <CTABanner />
- </DefaultLayout>
- )
-}
-export default DPA
diff --git a/apps/www/public/downloads/docs/Supabase+DPA+250314.pdf b/apps/www/public/downloads/docs/Supabase+DPA+250314.pdf
deleted file mode 100644
index 04afcb94a5e..00000000000
Binary files a/apps/www/public/downloads/docs/Supabase+DPA+250314.pdf and /dev/null differ
diff --git a/apps/www/public/downloads/docs/Supabase+DPA+250805.pdf b/apps/www/public/downloads/docs/Supabase+DPA+250805.pdf
deleted file mode 100644
index 1a7482cc1dc..00000000000
Binary files a/apps/www/public/downloads/docs/Supabase+DPA+250805.pdf and /dev/null differ
diff --git a/apps/www/public/downloads/docs/Supabase+DPA+260317.pdf b/apps/www/public/downloads/docs/Supabase+DPA+260317.pdf
deleted file mode 100644
index a419a111823..00000000000
Binary files a/apps/www/public/downloads/docs/Supabase+DPA+260317.pdf and /dev/null differ
diff --git a/apps/www/public/downloads/docs/Supabase+DPA+260601.pdf b/apps/www/public/downloads/docs/Supabase+DPA+260601.pdf
deleted file mode 100644
index a07284b75d3..00000000000
Binary files a/apps/www/public/downloads/docs/Supabase+DPA+260601.pdf and /dev/null differ
diff --git a/packages/common/telemetry-constants.ts b/packages/common/telemetry-constants.ts
index 16b212fa948..fde7ad9de42 100644
--- a/packages/common/telemetry-constants.ts
+++ b/packages/common/telemetry-constants.ts
@@ -1079,6 +1079,17 @@ export interface WwwEventPageCtaClickedEvent {
}
}
+/**
+ * User successfully subscribed to subprocessor list update notifications.
+ *
+ * @group Events
+ * @source www
+ * @page /legal/customer-resources/subprocessor-list
+ */
+export interface WwwSubprocessorUpdatesSubscribedEvent {
+ action: 'www_subprocessor_updates_subscribed'
+}
+
/**
* User clicked the GitHub button in the homepage header section. The button is hidden in mobile view.
*
@@ -2101,22 +2112,6 @@ export interface BranchSelectorManageClickedEvent {
groups: TelemetryGroups
}
-/**
- * User clicked on a DPA PDF link to open it.
- *
- * @group Events
- * @source www, studio
- */
-export interface DpaPdfOpenedEvent {
- action: 'dpa_pdf_opened'
- properties: {
- /**
- * The source of the click, e.g. www, studio
- */
- source: 'www' | 'studio'
- }
-}
-
/**
* User clicked on an activity stat in HomeV2.
*
@@ -2303,18 +2298,6 @@ export interface HomeSectionRowsMovedEvent {
groups: TelemetryGroups
}
-/**
- * User clicked the Request DPA button to open the confirmation modal.
- *
- * @group Events
- * @source studio
- * @page /dashboard/org/{slug}/documents
- */
-export interface DpaRequestButtonClickedEvent {
- action: 'dpa_request_button_clicked'
- groups: Omit<TelemetryGroups, 'project'>
-}
-
/**
* User clicked a document view/download button to access a document.
*
@@ -2328,7 +2311,7 @@ export interface DocumentViewButtonClickedEvent {
/**
* The name of the document being viewed, e.g. TIA, SOC2, Standard Security Questionnaire
*/
- documentName: 'TIA' | 'SOC2' | 'ISO27001' | 'Standard Security Questionnaire'
+ documentName: 'TIA' | 'SOC2' | 'ISO27001' | 'Standard Security Questionnaire' | 'DPA'
}
groups: Omit<TelemetryGroups, 'project'>
}
@@ -3743,6 +3726,7 @@ export type TelemetryEvent =
| HomepageProductCardClickedEvent
| WwwPricingPlanCtaClickedEvent
| WwwEventPageCtaClickedEvent
+ | WwwSubprocessorUpdatesSubscribedEvent
| HomepageGithubButtonClickedEvent
| HomepageDiscordButtonClickedEvent
| HomepageCustomerStoryCardClickedEvent
@@ -3812,7 +3796,6 @@ export type TelemetryEvent =
| BranchSelectorBranchClickedEvent
| BranchSelectorCreateClickedEvent
| BranchSelectorManageClickedEvent
- | DpaPdfOpenedEvent
| HomeConnectSectionExposedEvent
| HomeConnectActionClickedEvent
| ConnectSheetOpenedEvent
@@ -3822,7 +3805,6 @@ export type TelemetryEvent =
| HomeProjectUsageChartClickedEvent
| HomeCustomReportBlockAddedEvent
| HomeCustomReportBlockRemovedEvent
- | DpaRequestButtonClickedEvent
| DocumentViewButtonClickedEvent
| HipaaRequestButtonClickedEvent
| TableCreatedEvent