Skip to content

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

chore: better distinction for auth and platform audit logs (#40812)

Kevin Grüneberg3ee1ad6ce2ba
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
index 83916442815..92037e9c9c1 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts
@@ -2409,6 +2409,7 @@ export const security: NavMenuConstant = {
{ name: 'Platform configuration', url: '/guides/security/platform-security' },
{ name: 'Product configuration', url: '/guides/security/product-security' },
{ name: 'Security testing', url: '/guides/security/security-testing' },
+ { name: 'Platform Audit Logs', url: '/guides/security/platform-audit-logs' },
],
},
{
diff --git a/apps/docs/content/guides/security/platform-audit-logs.mdx b/apps/docs/content/guides/security/platform-audit-logs.mdx
new file mode 100644
index 00000000000..af8c66cbd70
--- /dev/null
+++ b/apps/docs/content/guides/security/platform-audit-logs.mdx
@@ -0,0 +1,45 @@
+---
+title: 'Platform Audit Logs'
+description: 'Monitor and track organization member activities via platform API or dashboard.'
+---
+
+Any [Platform API](/docs/reference/api/introduction) or [dashboard](/dashboard) actions performed by organization members are logged automatically for auditing and security purposes. This includes actions such as creating a new project, inviting members, modifying an edge function or changing project settings.
+
+Besides Platform Audit Logs, Supabase Auth also provides [Auth Audit Logs](/docs/guides/auth/audit-logs) to monitor authentication-related activities within your projects.
+
+<Admonition type="note">
+
+Platform Audit Logs are only available on the [Team and Enterprise plans](/pricing).
+
+</Admonition>
+
+## Accessing audit logs
+
+Platform Audit Logs can be found under your [organization's audit logs](/dashboard/org/_/audit).
+
+<Image
+ alt="Platform audit logs"
+ src={{
+ light: '/docs/img/guides/security/platform-audit-logs--light.png',
+ dark: '/docs/img/guides/security/platform-audit-logs--dark.png',
+ }}
+ zoomable
+/>
+
+For each audit log, you can see additional details by clicking on the log entry:
+
+- Timestamp of action
+- Actor who performed the action
+ - IP address
+ - Email
+ - Token Type
+- Action performed
+ - Name
+ - Metadata such as route and response status
+- Action Target (Project, organization, Edge Function, ...)
+
+## Limitations
+
+- There is currently no way to export the logs via dashboard
+- There is currently no way to set up a log drain of platform audit logs
+- Retention periods depend on your plan
diff --git a/apps/docs/public/img/guides/security/platform-audit-logs--dark.png b/apps/docs/public/img/guides/security/platform-audit-logs--dark.png
new file mode 100644
index 00000000000..aad7f6225fe
Binary files /dev/null and b/apps/docs/public/img/guides/security/platform-audit-logs--dark.png differ
diff --git a/apps/docs/public/img/guides/security/platform-audit-logs--light.png b/apps/docs/public/img/guides/security/platform-audit-logs--light.png
new file mode 100644
index 00000000000..a84587a4bbe
Binary files /dev/null and b/apps/docs/public/img/guides/security/platform-audit-logs--light.png differ
diff --git a/apps/www/components/Pricing/PricingTableRow.tsx b/apps/www/components/Pricing/PricingTableRow.tsx
index 9e926021318..3d85ca7addd 100644
--- a/apps/www/components/Pricing/PricingTableRow.tsx
+++ b/apps/www/components/Pricing/PricingTableRow.tsx
@@ -63,6 +63,7 @@ export const pricingTooltips: PricingTooltips = {
'auth.thirdPartyMAUs': {
main: 'Users who use the Supabase platform through a third-party authentication provider (Firebase Auth, Auth0 or Cognito).\nBilling is based on the sum of distinct third-party users requesting your API through the billing period. Resets every billing cycle.',
},
+
'storage.size': {
main: "The sum of all objects' size in your storage buckets.\nBilling is prorated down to the hour and will be displayed as GB-Hrs on your invoice.",
},
@@ -108,6 +109,35 @@ export const pricingTooltips: PricingTooltips = {
'security.customDomains': {
enterprise: 'Volume discounts available.',
},
+
+ 'auth.auditLogs': {
+ main: (
+ <span className="prose text-xs">
+ Auth Audit Logs provide comprehensive tracking of authentication events. Audit logs are
+ automatically captured for all authentication events and help you monitor user
+ authentication activities, detect suspicious behavior, and maintain compliance with security
+ requirements. Read more in our{' '}
+ <Link href="/docs/guides/auth/audit-logs" target="_blank">
+ docs
+ </Link>
+ .
+ </span>
+ ),
+ },
+
+ 'security.platformAuditLogs': {
+ main: (
+ <span className="prose text-xs">
+ Any Platform API/Dashboard actions performed by organization members are logged
+ automatically for auditing and security purposes. Includes actions such as creating a new
+ project, inviting members or changing project settings. Read more in our{' '}
+ <Link href="/docs/guides/security/platform-audit-logs" target="_blank">
+ docs
+ </Link>
+ .
+ </span>
+ ),
+ },
}
export const PricingTableRowDesktop = (props: any) => {
diff --git a/packages/shared-data/pricing.ts b/packages/shared-data/pricing.ts
index c7507541c63..a4f4054bc60 100644
--- a/packages/shared-data/pricing.ts
+++ b/packages/shared-data/pricing.ts
@@ -45,7 +45,7 @@ export type FeatureKey =
| 'auth.socialOAuthProviders'
| 'auth.customSMTPServer'
| 'auth.removeSupabaseBranding'
- | 'auth.auditTrails'
+ | 'auth.auditLogs'
| 'auth.basicMFA'
| 'auth.advancedMFAPhone'
| 'auth.thirdPartyMAUs'
@@ -69,7 +69,7 @@ export type FeatureKey =
| 'realtime.messagesPerMonth'
| 'realtime.maxMessageSize'
| 'dashboard.teamMembers'
- | 'dashboard.auditTrails'
+ | 'security.platformAuditLogs'
| 'security.byoc'
| 'security.logRetention'
| 'security.logDrain'
@@ -289,8 +289,8 @@ export const pricing: Pricing = {
usage_based: false,
},
{
- key: 'auth.auditTrails',
- title: 'Audit trails',
+ key: 'auth.auditLogs',
+ title: 'Auth Audit Logs',
plans: {
free: '1 hour',
pro: '7 days',
@@ -556,17 +556,6 @@ export const pricing: Pricing = {
},
usage_based: false,
},
- {
- key: 'dashboard.auditTrails',
- title: 'Audit trails',
- plans: {
- free: false,
- pro: false,
- team: true,
- enterprise: true,
- },
- usage_based: false,
- },
],
},
security: {
@@ -606,6 +595,17 @@ export const pricing: Pricing = {
},
usage_based: true,
},
+ {
+ key: 'security.platformAuditLogs',
+ title: 'Platform Audit Logs',
+ plans: {
+ free: false,
+ pro: false,
+ team: true,
+ enterprise: true,
+ },
+ usage_based: false,
+ },
{
key: 'security.metricsEndpoint',
title: 'Metrics endpoint',