Skip to content

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

chore: add lint warning for pg version (#38280)

Etienne Stalmans70e61c2aa953
diff --git a/apps/studio/components/interfaces/Linter/Linter.utils.tsx b/apps/studio/components/interfaces/Linter/Linter.utils.tsx
index a74ba2b5473..8aed1dac986 100644
--- a/apps/studio/components/interfaces/Linter/Linter.utils.tsx
+++ b/apps/studio/components/interfaces/Linter/Linter.utils.tsx
@@ -300,6 +300,15 @@ export const lintInfoMap: LintInfo[] = [
docsLink: 'https://supabase.com/docs/guides/auth/auth-mfa',
category: 'security',
},
+ {
+ name: 'vulnerable_postgres_version',
+ title: 'Postgres version has security patches available',
+ icon: <LockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
+ link: ({ projectRef }) => `/project/${projectRef}/settings/infrastructure`,
+ linkText: 'View settings',
+ docsLink: 'https://supabase.com/docs/guides/platform/upgrading',
+ category: 'security',
+ },
]
export const LintCTA = ({
diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.ts
index a74db70f9e5..b4fbd0d0645 100644
--- a/packages/api-types/types/api.d.ts
+++ b/packages/api-types/types/api.d.ts
@@ -3692,6 +3692,7 @@ export interface components {
| 'auth_password_policy_missing'
| 'leaked_service_key'
| 'no_backup_admin'
+ | 'vulnerable_postgres_version'
remediation: string
title: string
}[]