JitDbAccessPreview.tsx26 lines · main
1import { useParams } from 'common'
2
3import { InlineLink } from '@/components/ui/InlineLink'
4
5export const JitDbAccessPreview = () => {
6 const { ref = '_' } = useParams()
7
8 return (
9 <div className="space-y-4">
10 <p className="text-sm text-foreground-light">
11 Grant project members temporary database role access through short-lived tokens, controlled
12 in <InlineLink href={`/project/${ref}/database/settings`}>Database Settings</InlineLink>.
13 </p>
14 <div className="space-y-2">
15 <p className="text-sm">Enabling this preview will:</p>
16 <ul className="list-disc pl-6 text-sm text-foreground-light space-y-1">
17 <li>Show temporary access controls in Database Settings</li>
18 <li>Allow configuring role grants and member-level temporary access rules</li>
19 </ul>
20 </div>
21 <p className="text-sm text-foreground-light">
22 The minimum Postgres version needed for this feature is 17.6.1.081 (or higher).
23 </p>
24 </div>
25 )
26}