diff --git a/apps/studio/components/interfaces/Settings/Database/JITAccess.tsx b/apps/studio/components/interfaces/Settings/Database/JITAccess.tsx index 9848a5d9c86..df44b7acf3c 100644 --- a/apps/studio/components/interfaces/Settings/Database/JITAccess.tsx +++ b/apps/studio/components/interfaces/Settings/Database/JITAccess.tsx @@ -4,7 +4,7 @@ import { DocsButton } from 'components/ui/DocsButton' import { InlineLink } from 'components/ui/InlineLink' import dayjs from 'dayjs' import { DOCS_URL } from 'lib/constants' -import { EllipsisVertical, Pencil, Trash2, UserPlus } from 'lucide-react' +import { EllipsisVertical, Pencil, Plus, Trash2 } from 'lucide-react' import Link from 'next/link' import { useMemo, useState } from 'react' import { toast } from 'sonner' @@ -372,8 +372,9 @@ function RoleRuleEditor({
@@ -750,7 +754,7 @@ export const JITAccess = () => { type="note" layout="responsive" title="Postgres upgrade required" - description="Just-in-time access requires a newer Postgres version. Upgrade your project to enable JIT." + description="Just-in-time access requires a newer Postgres version. Upgrade your project to enable JIT access." className="mb-0 rounded-none border-0" actions={ projectRef ? ( @@ -770,13 +774,13 @@ export const JITAccess = () => {
-

User rules

+

JIT access rules

- Define which members can receive temporary database access. + Configure which members can request temporary database access.

-
@@ -794,8 +798,10 @@ export const JITAccess = () => { {users.length === 0 ? ( -

No user rules yet

-

Grant JIT access above

+

No JIT access rules

+

+ Add your first JIT access rule above +

) : ( @@ -891,16 +897,16 @@ export const JITAccess = () => { > - {sheetMode === 'edit' ? 'Edit JIT access' : 'Grant JIT access'} + {sheetMode === 'edit' ? 'Edit JIT access rule' : 'New JIT access rule'} - Configure user role grants and restrictions for JIT database access. + Configure which database roles a user can request with JIT access.
- + { {sheetMode === 'edit' && (

- The user cannot be changed when editing an existing JIT access rule. + The member cannot be changed when editing an existing JIT access rule.

)} @@ -975,7 +981,8 @@ export const JITAccess = () => { > custom Postgres roles {' '} - before granting JIT access. Narrow roles limit the impact of direct access. + before creating a JIT access rule. Narrow roles limit the impact of direct + database access.

{showInlineValidation && inlineValidation.roles && ( @@ -988,10 +995,7 @@ export const JITAccess = () => { {sheetMode === 'edit' && editingUser && (
-
@@ -1000,7 +1004,7 @@ export const JITAccess = () => { Cancel
@@ -1044,10 +1048,9 @@ export const JITAccess = () => {

- Enabling JIT will immediately activate {activeRuleCount} existing user rule - {activeRuleCount === 1 ? '' : 's'}, allowing{' '} - {activeRuleCount === 1 ? 'that user' : 'those users'} to request temporary - database access. + Enabling JIT will allow {activeRuleCount} configured member + {activeRuleCount === 1 ? '' : 's'} to request temporary database access + immediately.