JitDbAccessPreview.tsx 1008 B

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