Skip to content

Commit 70e61c2

Browse files
authored
chore: add lint warning for pg version (supabase#38280)
1 parent 7bd4a9e commit 70e61c2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

apps/studio/components/interfaces/Linter/Linter.utils.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,15 @@ export const lintInfoMap: LintInfo[] = [
300300
docsLink: 'https://supabase.com/docs/guides/auth/auth-mfa',
301301
category: 'security',
302302
},
303+
{
304+
name: 'vulnerable_postgres_version',
305+
title: 'Postgres version has security patches available',
306+
icon: <LockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
307+
link: ({ projectRef }) => `/project/${projectRef}/settings/infrastructure`,
308+
linkText: 'View settings',
309+
docsLink: 'https://supabase.com/docs/guides/platform/upgrading',
310+
category: 'security',
311+
},
303312
]
304313

305314
export const LintCTA = ({

packages/api-types/types/api.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3692,6 +3692,7 @@ export interface components {
36923692
| 'auth_password_policy_missing'
36933693
| 'leaked_service_key'
36943694
| 'no_backup_admin'
3695+
| 'vulnerable_postgres_version'
36953696
remediation: string
36963697
title: string
36973698
}[]

0 commit comments

Comments
 (0)