Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: a few more polishes

Sheen Capadngan3e68c36b2e09
diff --git a/frontend/src/helpers/project.ts b/frontend/src/helpers/project.ts
index a39283e60e..8fe48fab2d 100644
--- a/frontend/src/helpers/project.ts
+++ b/frontend/src/helpers/project.ts
@@ -157,7 +157,7 @@ export const getProjectDescription = (type: ProjectType) => {
[ProjectType.SecretScanning]:
"Continuously scan repositories, builds, and runtime artifacts for leaked secrets and misconfigurations.",
[ProjectType.PAM]:
- "Grant privileged users and machines just-in-time access with session brokering and credential vaulting."
+ "Connect to databases and servers securely with session brokering, recording, and credential vaulting."
};
return descriptions[type] ?? "";
};
diff --git a/frontend/src/pages/pam/PamAccessPage/PamAccessPage.tsx b/frontend/src/pages/pam/PamAccessPage/PamAccessPage.tsx
index 2c8b7dd1f9..90421794dc 100644
--- a/frontend/src/pages/pam/PamAccessPage/PamAccessPage.tsx
+++ b/frontend/src/pages/pam/PamAccessPage/PamAccessPage.tsx
@@ -109,7 +109,8 @@ export const PamAccessPage = () => {
emptyDescription = "Try adjusting your search or filters.";
} else if (canManageAccounts) {
emptyTitle = "No accounts yet";
- emptyDescription = "Onboard your first privileged account from the Accounts page to get started.";
+ emptyDescription =
+ "Onboard your first privileged account from the Accounts page to get started.";
} else {
emptyTitle = "No accounts available";
emptyDescription = "Ask your PAM admin to grant you access to a folder or account.";
@@ -125,14 +126,14 @@ export const PamAccessPage = () => {
scope={ProjectType.PAM}
icon={KeyRound}
title="My Access"
- description="Connect to or request access to privileged accounts."
+ description="Launch sessions for accounts you have access to."
/>
<Card className="mt-4">
<CardHeader>
<CardTitle>My Access</CardTitle>
<CardDescription>
- Every account you can connect to or request access to.
+ Accounts you can connect to. Launch a session or request approval for gated accounts.
</CardDescription>
</CardHeader>
<CardContent className="flex items-center gap-3">
diff --git a/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx b/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx
index 476de78496..342b13666c 100644
--- a/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/PamAccountsPage.tsx
@@ -18,6 +18,7 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
+ DropdownMenuLabel,
DropdownMenuTrigger,
Empty,
EmptyDescription,
@@ -39,6 +40,7 @@ import {
TableRow
} from "@app/components/v3";
import { Skeleton } from "@app/components/v3/generic/Skeleton";
+import { useOrganization } from "@app/context";
import {
PamAccountType,
useDeletePamAccount,
@@ -64,6 +66,7 @@ const SKELETON_KEYS = ["s1", "s2", "s3", "s4", "s5"];
export const PamAccountsPage = () => {
const { t } = useTranslation();
+ const { currentOrg } = useOrganization();
const [searchInput, setSearchInput] = useState("");
const [selectedFolderId, setSelectedFolderId] = useState<string>("");
const [selectedTemplateId, setSelectedTemplateId] = useState<string>("");
@@ -154,7 +157,7 @@ export const PamAccountsPage = () => {
</Helmet>
<PageHeader
title="Accounts"
- description="Manage privileged accounts grouped into folders."
+ description="Onboard and configure privileged accounts."
scope={ProjectType.PAM}
icon={FolderOpen}
/>
@@ -166,8 +169,7 @@ export const PamAccountsPage = () => {
<DocumentationLinkBadge href={PamDocsUrls.accounts.overview} />
</CardTitle>
<CardDescription>
- Privileged accounts organized by access into folders, each inheriting governance rules
- from an account template.
+ Onboard accounts and manage who can access them.
</CardDescription>
<CardAction>
<ButtonGroup>
@@ -194,6 +196,7 @@ export const PamAccountsPage = () => {
sideOffset={4}
onClick={(e) => e.stopPropagation()}
>
+ <DropdownMenuLabel>New</DropdownMenuLabel>
<DropdownMenuItem onClick={() => handlePopUpOpen("createFolder")}>
<FolderPlus />
Add Folder
@@ -302,6 +305,12 @@ export const PamAccountsPage = () => {
filterActive={filterActive}
onOpenAccount={(id, tab) => accountSheet.openSheet(id, tab)}
onDeleteAccount={(target) => handlePopUpOpen("deleteAccount", target)}
+ onLaunchAccount={(accountId, accountType) => {
+ window.open(
+ `/organizations/${currentOrg.id}/pam/accounts/${accountType}/${accountId}/access`,
+ "_blank"
+ );
+ }}
onOpenFolder={(tab) => folderSheet.openSheet(folder.id, tab)}
onFolderAddAccount={() =>
handlePopUpOpen("createAccount", { folderId: folder.id })
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/AccountActionsMenu.tsx b/frontend/src/pages/pam/PamAccountsPage/components/AccountActionsMenu.tsx
index 8a0173d32b..cde4a947ee 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/AccountActionsMenu.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/AccountActionsMenu.tsx
@@ -1,5 +1,5 @@
import { useState } from "react";
-import { MoreHorizontal, Trash2 } from "lucide-react";
+import { MoreHorizontal, Rocket, Trash2 } from "lucide-react";
import {
DropdownMenu,
@@ -18,16 +18,18 @@ type Props = {
accountId: string;
onOpenTab: (tab: PamSheetTab) => void;
onDelete: () => void;
+ onLaunch?: () => void;
};
-export const AccountActionsMenu = ({ accountId, onOpenTab, onDelete }: Props) => {
+export const AccountActionsMenu = ({ accountId, onOpenTab, onDelete, onLaunch }: Props) => {
// Defer the permission fetch until the menu is first opened to avoid a request per row
const [hasOpened, setHasOpened] = useState(false);
const { can, isLoading } = usePamAccountActions(accountId, hasOpened);
const tabs = visiblePamTabs(PAM_ACCOUNT_TABS, can);
const canDelete = can(PamResourcePermissionActions.DeleteAccounts);
- const hasAnyAction = tabs.length > 0 || canDelete;
+ const canLaunch = can(PamResourcePermissionActions.LaunchSessions);
+ const hasAnyAction = tabs.length > 0 || canDelete || canLaunch;
return (
<DropdownMenu onOpenChange={(open) => open && setHasOpened(true)}>
@@ -47,6 +49,15 @@ export const AccountActionsMenu = ({ accountId, onOpenTab, onDelete }: Props) =>
{!isLoading && !hasAnyAction && (
<DropdownMenuItem isDisabled>No actions available</DropdownMenuItem>
)}
+ {canLaunch && onLaunch && (
+ <>
+ <DropdownMenuItem onClick={onLaunch}>
+ <Rocket />
+ Launch Session
+ </DropdownMenuItem>
+ {tabs.length > 0 && <DropdownMenuSeparator />}
+ </>
+ )}
{tabs.map((tab) => (
<DropdownMenuItem key={tab.value} onClick={() => onOpenTab(tab.value)}>
<tab.icon />
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx b/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx
index 5c1cf6d252..cedf224265 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/CreateAccountSheet.tsx
@@ -48,6 +48,7 @@ import {
accountTypeRequiresRecording,
PamAccountType,
useCreatePamAccount,
+ useGetPamAccessCapabilities,
useListPamAccountTemplates,
useListPamAccountTypes,
useListPamFoldersAdmin,
@@ -80,6 +81,8 @@ export const CreateAccountSheet = ({ isOpen, onOpenChange, defaultFolderId, onCr
const createAccount = useCreatePamAccount();
const { currentOrg } = useOrganization();
+ const { data: capabilities } = useGetPamAccessCapabilities();
+ const isProductAdmin = Boolean(capabilities?.isProductAdmin);
const [step, setStep] = useState<1 | 2>(1);
const [templateSearch, setTemplateSearch] = useState("");
@@ -260,7 +263,7 @@ export const CreateAccountSheet = ({ isOpen, onOpenChange, defaultFolderId, onCr
<>
<Sheet open={isOpen} onOpenChange={handleOpenChange}>
<SheetContent>
- <SheetHeader className="border-b">
+ <SheetHeader>
<SheetTitle>Add Account</SheetTitle>
<SheetDescription>
Pick a folder and an account template. The account inherits its type and governance
@@ -322,21 +325,23 @@ export const CreateAccountSheet = ({ isOpen, onOpenChange, defaultFolderId, onCr
<FieldLabel>
Account Template<span className="text-product-pam">*</span>
</FieldLabel>
- <Button
- variant="ghost"
- size="xs"
- className="text-muted hover:text-foreground"
- asChild
- >
- <Link
- to="/organizations/$orgId/pam/templates"
- params={{ orgId: currentOrg.id }}
- target="_blank"
+ {isProductAdmin && (
+ <Button
+ variant="ghost"
+ size="xs"
+ className="text-muted hover:text-foreground"
+ asChild
>
- Manage Templates
- <ArrowUpRight />
- </Link>
- </Button>
+ <Link
+ to="/organizations/$orgId/pam/templates"
+ params={{ orgId: currentOrg.id }}
+ target="_blank"
+ >
+ Manage Templates
+ <ArrowUpRight />
+ </Link>
+ </Button>
+ )}
</div>
<FieldContent className="min-h-0 flex-1">
<InputGroup>
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/FolderAccountRows.tsx b/frontend/src/pages/pam/PamAccountsPage/components/FolderAccountRows.tsx
index 4e56d33bcb..f3c794f549 100644
--- a/frontend/src/pages/pam/PamAccountsPage/components/FolderAccountRows.tsx
+++ b/frontend/src/pages/pam/PamAccountsPage/components/FolderAccountRows.tsx
@@ -28,6 +28,7 @@ type Props = {
filterActive: boolean;
onOpenAccount: (accountId: string, tab?: PamSheetTab) => void;
onDeleteAccount: (target: DeleteTarget) => void;
+ onLaunchAccount: (accountId: string, accountType: PamAccountType) => void;
onOpenFolder: (tab?: PamSheetTab) => void;
onFolderAddAccount: () => void;
onFolderDelete: () => void;
@@ -43,6 +44,7 @@ export const FolderAccountRows = ({
filterActive,
onOpenAccount,
onDeleteAccount,
+ onLaunchAccount,
onOpenFolder,
onFolderAddAccount,
onFolderDelete,
@@ -154,6 +156,7 @@ export const FolderAccountRows = ({
accountType
})
}
+ onLaunch={() => onLaunchAccount(account.id, accountType)}
/>
</div>
</TableCell>
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx b/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
index ea4b530526..fb77f1891e 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/PamDiscoveryPage.tsx
@@ -9,7 +9,12 @@ import { HighlightText } from "@app/components/v2/HighlightText";
import {
Button,
Card,
+ CardAction,
CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ DocumentationLinkBadge,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
@@ -44,6 +49,7 @@ import { usePamSheetState } from "@app/hooks/usePamSheetState";
import { usePopUp } from "@app/hooks/usePopUp";
import { PAM_DISCOVERY_TABS } from "../components/pamResourceTabs";
+import { PamDocsUrls } from "../pam-docs-urls";
import { AddDiscoverySourceSheet } from "./components/AddDiscoverySourceSheet";
import { DiscoverySourceDetailSheet } from "./components/DiscoverySourceDetailSheet";
import { DiscoveryStatusBadge } from "./components/DiscoveryStatusBadge";
@@ -103,6 +109,21 @@ export const PamDiscoveryPage = () => {
/>
<Card className="mt-4">
+ <CardHeader>
+ <CardTitle>
+ Discovery Sources
+ <DocumentationLinkBadge href={PamDocsUrls.discovery.overview} />
+ </CardTitle>
+ <CardDescription>
+ Scan external systems for privileged accounts and import them into PAM.
+ </CardDescription>
+ <CardAction>
+ <Button variant="pam" onClick={() => handlePopUpOpen("addSource")}>
+ <Plus />
+ Add Source
+ </Button>
+ </CardAction>
+ </CardHeader>
<CardContent className="flex items-center gap-3">
<InputGroup className="flex-1">
<InputGroupAddon align="inline-start">
@@ -114,10 +135,6 @@ export const PamDiscoveryPage = () => {
onChange={(e) => setSearch(e.target.value)}
/>
</InputGroup>
- <Button variant="pam" onClick={() => handlePopUpOpen("addSource")}>
- <Plus />
- Add Source
- </Button>
</CardContent>
{isLoading && (
@@ -131,7 +148,7 @@ export const PamDiscoveryPage = () => {
{!isLoading && filtered.length === 0 && (
<CardContent>
- <Empty>
+ <Empty className="border">
<EmptyHeader>
<EmptyTitle>No discovery sources yet</EmptyTitle>
<EmptyDescription>Add a source to start discovering accounts.</EmptyDescription>
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
index 96901c146a..a4596921cc 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
@@ -26,6 +26,7 @@ import {
RadioGroupItem,
Sheet,
SheetContent,
+ SheetDescription,
SheetFooter,
SheetHeader,
SheetTitle
@@ -395,6 +396,9 @@ export const AddDiscoverySourceSheet = ({ isOpen, onOpenChange }: Props) => {
<SheetContent>
<SheetHeader>
<SheetTitle>Add Discovery Source</SheetTitle>
+ <SheetDescription>
+ Choose a source type to scan for privileged accounts in your infrastructure.
+ </SheetDescription>
</SheetHeader>
{step === 1 && (
diff --git a/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx b/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
index f46ac0a56f..50ebbf4c3b 100644
--- a/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
+++ b/frontend/src/pages/pam/PamTemplatesPage/components/CreateTemplateModal.tsx
@@ -5,12 +5,6 @@ import { z } from "zod";
import { createNotification } from "@app/components/notifications";
import {
Button,
- Dialog,
- DialogContent,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogTitle,
Field,
FieldContent,
FieldError,
@@ -21,6 +15,12 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
+ Sheet,
+ SheetContent,
+ SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetTitle,
TextArea
} from "@app/components/v3";
import {
@@ -81,88 +81,91 @@ export const CreateTemplateModal = ({ isOpen, onOpenChange, onCreated }: Props)
};
return (
- <Dialog
+ <Sheet
open={isOpen}
onOpenChange={(open) => {
if (!open) reset();
onOpenChange(open);
}}
>
- <DialogContent className="max-w-xl">
- <DialogHeader>
- <DialogTitle>Create Account Template</DialogTitle>
- <DialogDescription>
- Templates hold the governance rules inherited by every account created from them,
- including session limits, MFA, and recording.
- </DialogDescription>
- </DialogHeader>
- <form onSubmit={handleSubmit(onSubmit)} className="flex flex-col gap-4">
- <Field>
- <FieldLabel htmlFor="template-name">Name</FieldLabel>
- <FieldContent>
- <Input
- id="template-name"
- placeholder="e.g. production-postgresql"
- isError={!!errors.name}
- {...register("name")}
- />
- <FieldError>{errors.name?.message}</FieldError>
- </FieldContent>
- </Field>
+ <SheetContent>
+ <SheetHeader>
+ <SheetTitle>Create Account Template</SheetTitle>
+ <SheetDescription>
+ Templates define the rules that apply when users connect to accounts, including session
+ limits, MFA, and recording.
+ </SheetDescription>
+ </SheetHeader>
- <Field>
- <FieldLabel>Type</FieldLabel>
- <FieldContent>
- <Select
- value={selectedType}
- onValueChange={(val) =>
- setValue("type", val as PamAccountType, { shouldValidate: true })
- }
- >
- <SelectTrigger className="w-full" isError={!!errors.type}>
- <SelectValue placeholder="Select an account type" />
- </SelectTrigger>
- <SelectContent position="popper" sideOffset={4}>
- {accountTypes.map((meta) => (
- <SelectItem key={meta.type} value={meta.type}>
- <img
- src={`/images/integrations/${meta.icon}`}
- alt={meta.name}
- className="mr-1.5 inline-block size-4 rounded-sm"
- />
- {meta.name}
- </SelectItem>
- ))}
- </SelectContent>
- </Select>
- <FieldError>{errors.type?.message}</FieldError>
- </FieldContent>
- </Field>
+ <form onSubmit={handleSubmit(onSubmit)} className="flex min-h-0 flex-1 flex-col">
+ <div className="flex flex-1 flex-col gap-4 px-4">
+ <Field>
+ <FieldLabel htmlFor="template-name">Name</FieldLabel>
+ <FieldContent>
+ <Input
+ id="template-name"
+ placeholder="e.g. production-postgresql"
+ isError={!!errors.name}
+ {...register("name")}
+ />
+ <FieldError>{errors.name?.message}</FieldError>
+ </FieldContent>
+ </Field>
- <Field>
- <FieldLabel htmlFor="template-description">Description</FieldLabel>
- <FieldContent>
- <TextArea
- id="template-description"
- placeholder="What is this template for?"
- rows={3}
- isError={!!errors.description}
- {...register("description")}
- />
- <FieldError>{errors.description?.message}</FieldError>
- </FieldContent>
- </Field>
+ <Field>
+ <FieldLabel>Type</FieldLabel>
+ <FieldContent>
+ <Select
+ value={selectedType}
+ onValueChange={(val) =>
+ setValue("type", val as PamAccountType, { shouldValidate: true })
+ }
+ >
+ <SelectTrigger className="w-full" isError={!!errors.type}>
+ <SelectValue placeholder="Select an account type" />
+ </SelectTrigger>
+ <SelectContent position="popper" sideOffset={4}>
+ {accountTypes.map((meta) => (
+ <SelectItem key={meta.type} value={meta.type}>
+ <img
+ src={`/images/integrations/${meta.icon}`}
+ alt={meta.name}
+ className="mr-1.5 inline-block size-4 rounded-sm"
+ />
+ {meta.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <FieldError>{errors.type?.message}</FieldError>
+ </FieldContent>
+ </Field>
- <DialogFooter>
+ <Field>
+ <FieldLabel htmlFor="template-description">Description</FieldLabel>
+ <FieldContent>
+ <TextArea
+ id="template-description"
+ placeholder="What is this template for?"
+ rows={3}
+ isError={!!errors.description}
+ {...register("description")}
+ />
+ <FieldError>{errors.description?.message}</FieldError>
+ </FieldContent>
+ </Field>
+ </div>
+
+ <SheetFooter className="justify-end border-t">
<Button type="button" variant="ghost" onClick={() => onOpenChange(false)}>
Cancel
</Button>
<Button type="submit" variant="pam" isPending={createTemplate.isPending}>
Create Template
</Button>
- </DialogFooter>
+ </SheetFooter>
</form>
- </DialogContent>
- </Dialog>
+ </SheetContent>
+ </Sheet>
);
};
diff --git a/frontend/src/pages/pam/pam-docs-urls.ts b/frontend/src/pages/pam/pam-docs-urls.ts
index 57c542d943..ab24785a7a 100644
--- a/frontend/src/pages/pam/pam-docs-urls.ts
+++ b/frontend/src/pages/pam/pam-docs-urls.ts
@@ -57,6 +57,11 @@ export const PamDocsUrls = {
externalStorage: `${PAM_DOCS_BASE_URL}/sessions/external-storage`
},
+ // Discovery
+ discovery: {
+ overview: `${PAM_DOCS_BASE_URL}/discovery/overview`
+ },
+
// Other
auditing: `${PAM_DOCS_BASE_URL}/auditing`,
architecture: `${PAM_DOCS_BASE_URL}/architecture`