Skip to content

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

PAM access page

x032205d7c1ef35f260
diff --git a/frontend/src/hooks/api/pam/maps.ts b/frontend/src/hooks/api/pam/maps.ts
index 1f1148164b..e432baf249 100644
--- a/frontend/src/hooks/api/pam/maps.ts
+++ b/frontend/src/hooks/api/pam/maps.ts
@@ -1,4 +1,4 @@
-import { PamResourceType } from "./enums";
+import { PamAccountType, PamResourceType } from "./enums";
export const PAM_RESOURCE_TYPE_MAP: Record<
PamResourceType,
@@ -23,3 +23,20 @@ export const PAM_RESOURCE_TYPE_MAP: Record<
[PamResourceType.AwsIam]: { name: "AWS IAM", image: "Amazon Web Services.png" },
[PamResourceType.Windows]: { name: "Windows Server", image: "Windows.png" }
};
+
+export const PAM_ACCOUNT_TYPE_MAP: Record<
+ PamAccountType,
+ { name: string; image: string; size?: number }
+> = {
+ [PamAccountType.Postgres]: { name: "PostgreSQL", image: "Postgres.png" },
+ [PamAccountType.MySQL]: { name: "MySQL", image: "MySql.png" },
+ [PamAccountType.SSH]: { name: "SSH", image: "SSH.png" },
+ [PamAccountType.Kubernetes]: { name: "Kubernetes", image: "Kubernetes.png" },
+ [PamAccountType.OracleDB]: { name: "OracleDB", image: "Oracle.png", size: 55 },
+ [PamAccountType.MsSQL]: { name: "Microsoft SQL Server", image: "MsSql.png" },
+ [PamAccountType.Redis]: { name: "Redis", image: "Redis.png" },
+ [PamAccountType.MongoDB]: { name: "MongoDB", image: "MongoDB.png" },
+ [PamAccountType.AwsIam]: { name: "AWS IAM", image: "Amazon Web Services.png" },
+ [PamAccountType.Windows]: { name: "Windows Server", image: "Windows.png" },
+ [PamAccountType.ActiveDirectory]: { name: "Active Directory", image: "Windows.png" }
+};
diff --git a/frontend/src/hooks/api/pam/queries.tsx b/frontend/src/hooks/api/pam/queries.tsx
index 0517d9a714..dda88612c2 100644
--- a/frontend/src/hooks/api/pam/queries.tsx
+++ b/frontend/src/hooks/api/pam/queries.tsx
@@ -3,7 +3,14 @@ import { useQuery, UseQueryOptions } from "@tanstack/react-query";
import { apiRequest } from "@app/config/request";
-import { TListPamAccountsDTO, TPamAccount, TPamSession, TPamSessionLogsPage } from "./types";
+import {
+ TAccessiblePamAccount,
+ TListAccessiblePamAccountsDTO,
+ TListPamAccountsDTO,
+ TPamAccount,
+ TPamSession,
+ TPamSessionLogsPage
+} from "./types";
export const pamKeys = {
all: ["pam"] as const,
@@ -15,12 +22,49 @@ export const pamKeys = {
projectId,
params
],
+ listAccessibleAccounts: (params?: TListAccessiblePamAccountsDTO) => [
+ ...pamKeys.account(),
+ "accessible",
+ params
+ ],
getAccount: (accountId: string) => [...pamKeys.account(), "get", accountId],
getSession: (sessionId: string) => [...pamKeys.session(), "get", sessionId],
listSessions: (projectId: string) => [...pamKeys.session(), "list", projectId]
};
-// Accounts
+// Accessible Accounts (user-facing)
+type TListAccessiblePamAccountsResponse = {
+ accounts: TAccessiblePamAccount[];
+ totalCount: number;
+};
+
+export const useListAccessiblePamAccounts = (
+ params?: TListAccessiblePamAccountsDTO,
+ options?: Omit<
+ UseQueryOptions<
+ TListAccessiblePamAccountsResponse,
+ unknown,
+ TListAccessiblePamAccountsResponse,
+ ReturnType<typeof pamKeys.listAccessibleAccounts>
+ >,
+ "queryKey" | "queryFn"
+ >
+) => {
+ return useQuery({
+ queryKey: pamKeys.listAccessibleAccounts(params),
+ queryFn: async () => {
+ const { data } = await apiRequest.get<TListAccessiblePamAccountsResponse>(
+ "/api/v1/pam/accounts/accessible",
+ { params }
+ );
+ return data;
+ },
+ placeholderData: (prev) => prev,
+ ...options
+ });
+};
+
+// Accounts (admin)
type TListPamAccountsResponse = {
accounts: TPamAccount[];
totalCount: number;
@@ -63,9 +107,11 @@ export const useGetPamAccountById = (
return useQuery({
queryKey: pamKeys.getAccount(accountId || ""),
queryFn: async () => {
- const { data } = await apiRequest.get<TPamAccount>(`/api/v1/pam/accounts/${accountId}`);
+ const { data } = await apiRequest.get<{ account: TPamAccount }>(
+ `/api/v1/pam/accounts/${accountId}`
+ );
- return data;
+ return data.account;
},
enabled: !!accountId && (options?.enabled ?? true),
...options
diff --git a/frontend/src/hooks/api/pam/types/index.ts b/frontend/src/hooks/api/pam/types/index.ts
index 9b30d98f05..65e5748b91 100644
--- a/frontend/src/hooks/api/pam/types/index.ts
+++ b/frontend/src/hooks/api/pam/types/index.ts
@@ -1,6 +1,7 @@
import { OrderByDirection } from "../../generic/types";
import {
PamAccountOrderBy,
+ PamAccountType,
PamAccountView,
PamResourceType,
PamSessionStatus,
@@ -19,7 +20,7 @@ export type TPamAccount = {
templateName: string;
templateAccessPolicy: unknown;
templateSettings: unknown;
- accountType: string;
+ accountType: PamAccountType;
projectId: string;
gatewayId: string | null;
gatewayPoolId: string | null;
@@ -44,7 +45,7 @@ export type TPamAccountTemplate = {
projectId: string;
name: string;
description?: string | null;
- accountType: string;
+ accountType: PamAccountType;
accessPolicy: unknown;
settings: unknown;
createdAt: string;
@@ -128,6 +129,27 @@ export type TPamSessionLogsPage = {
batchCount: number;
};
+export type TAccessiblePamAccount = {
+ id: string;
+ name: string;
+ description: string | null;
+ folderId: string | null;
+ templateId: string;
+ folderName: string | null;
+ templateName: string;
+ accountType: PamAccountType;
+ createdAt: string;
+ updatedAt: string;
+};
+
+export type TListAccessiblePamAccountsDTO = {
+ offset?: number;
+ limit?: number;
+ search?: string;
+ folderId?: string;
+ accountType?: string;
+};
+
// Account DTOs
export type TListPamAccountsDTO = {
diff --git a/frontend/src/hooks/usePamSheetState.ts b/frontend/src/hooks/usePamSheetState.ts
new file mode 100644
index 0000000000..9884372ca8
--- /dev/null
+++ b/frontend/src/hooks/usePamSheetState.ts
@@ -0,0 +1,35 @@
+import { useNavigate, useSearch } from "@tanstack/react-router";
+import { z } from "zod";
+
+export enum PamSheetAction {
+ Launch = "launch"
+}
+
+export const pamSheetSearchParams = z.object({
+ accountId: z.string().optional().catch(undefined),
+ action: z.nativeEnum(PamSheetAction).optional().catch(undefined)
+});
+
+export const usePamSheetState = () => {
+ const navigate = useNavigate();
+ const search = useSearch({ strict: false }) as Record<string, unknown>;
+ const { accountId, action } = search as z.infer<typeof pamSheetSearchParams>;
+
+ return {
+ selectedAccountId: accountId,
+ selectedAction: action,
+ openSheet: (type: PamSheetAction, id: string) => {
+ navigate({
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ search: { ...search, accountId: id, action: type } as any
+ });
+ },
+ closeSheet: () => {
+ const rest = Object.fromEntries(
+ Object.entries(search).filter(([k]) => k !== "accountId" && k !== "action")
+ );
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ navigate({ search: rest as any });
+ }
+ };
+};
diff --git a/frontend/src/pages/pam/PamAccessPage/PamAccessPage.tsx b/frontend/src/pages/pam/PamAccessPage/PamAccessPage.tsx
new file mode 100644
index 0000000000..f2938d567a
--- /dev/null
+++ b/frontend/src/pages/pam/PamAccessPage/PamAccessPage.tsx
@@ -0,0 +1,245 @@
+import { useEffect, useMemo, useRef, useState } from "react";
+import { Helmet } from "react-helmet";
+import { useTranslation } from "react-i18next";
+import { FolderOpen, Layers, Search } from "lucide-react";
+
+import { PageHeader } from "@app/components/v2";
+import {
+ Card,
+ CardContent,
+ Empty,
+ EmptyDescription,
+ EmptyHeader,
+ EmptyTitle,
+ InputGroup,
+ InputGroupAddon,
+ InputGroupInput,
+ Pagination,
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue
+} from "@app/components/v3";
+import { Skeleton } from "@app/components/v3/generic/Skeleton";
+import {
+ getUserTablePreference,
+ PreferenceKey,
+ setUserTablePreference
+} from "@app/helpers/userTablePreferences";
+import {
+ PAM_ACCOUNT_TYPE_MAP,
+ TAccessiblePamAccount,
+ useListAccessiblePamAccounts
+} from "@app/hooks/api/pam";
+import { ProjectType } from "@app/hooks/api/projects/types";
+import { PamSheetAction, usePamSheetState } from "@app/hooks/usePamSheetState";
+
+import { FolderSection } from "./components/FolderSection";
+import { LaunchSessionSheet } from "./components/LaunchSessionSheet";
+
+const DEBOUNCE_MS = 300;
+
+export const PamAccessPage = () => {
+ const { t } = useTranslation();
+ const { selectedAccountId, selectedAction, openSheet, closeSheet } = usePamSheetState();
+
+ const [searchInput, setSearchInput] = useState("");
+ const [debouncedSearch, setDebouncedSearch] = useState("");
+
+ const [selectedAccountType, setSelectedAccountType] = useState<string>("");
+ const [selectedFolderId, setSelectedFolderId] = useState<string>("");
+
+ const [page, setPage] = useState(1);
+ const [perPage, setPerPage] = useState(() =>
+ getUserTablePreference("pamAccessTable", PreferenceKey.PerPage, 20)
+ );
+
+ const debounceTimer = useRef<ReturnType<typeof setTimeout>>();
+
+ useEffect(() => {
+ debounceTimer.current = setTimeout(() => {
+ setDebouncedSearch(searchInput.trim());
+ setPage(1);
+ }, DEBOUNCE_MS);
+ return () => clearTimeout(debounceTimer.current);
+ }, [searchInput]);
+
+ const { data, isLoading } = useListAccessiblePamAccounts({
+ limit: perPage,
+ offset: (page - 1) * perPage,
+ search: debouncedSearch || undefined,
+ accountType: selectedAccountType || undefined,
+ folderId: selectedFolderId || undefined
+ });
+
+ const knownFoldersRef = useRef(new Map<string, string>());
+
+ const folderOptions = useMemo(() => {
+ const accounts = data?.accounts ?? [];
+ accounts.forEach((a) => {
+ if (a.folderId && a.folderName) {
+ knownFoldersRef.current.set(a.folderId, a.folderName);
+ }
+ });
+ return Array.from(knownFoldersRef.current.entries())
+ .map(([id, name]) => ({ id, name }))
+ .sort((a, b) => a.name.localeCompare(b.name));
+ }, [data?.accounts]);
+
+ const sheetAccount = useMemo(() => {
+ if (!selectedAccountId) return null;
+ return (data?.accounts ?? []).find((a) => a.id === selectedAccountId) ?? null;
+ }, [selectedAccountId, data?.accounts]);
+
+ const hasActiveFilters = searchInput.trim() || selectedAccountType || selectedFolderId;
+
+ const folderGroups = useMemo(() => {
+ const accounts = data?.accounts ?? [];
+ const query = searchInput.toLowerCase().trim();
+ const filtered = query
+ ? accounts.filter((a) => a.name.toLowerCase().includes(query))
+ : accounts;
+
+ const groups = new Map<string, TAccessiblePamAccount[]>();
+ filtered.forEach((account) => {
+ const key = account.folderName ?? "Uncategorized";
+ const existing = groups.get(key);
+ if (existing) {
+ existing.push(account);
+ } else {
+ groups.set(key, [account]);
+ }
+ });
+ return Array.from(groups.entries()).sort(([a], [b]) => a.localeCompare(b));
+ }, [data?.accounts, searchInput]);
+
+ return (
+ <>
+ <Helmet>
+ <title>{t("common.head-title", { title: "Access" })}</title>
+ </Helmet>
+ <div className="mx-auto mb-6 w-full max-w-8xl">
+ <PageHeader
+ scope={ProjectType.PAM}
+ title="Access"
+ description="Every account you can connect to or request access to."
+ />
+
+ <Card className="mt-4">
+ <CardContent className="flex items-center gap-3">
+ <InputGroup className="flex-1">
+ <InputGroupAddon align="inline-start">
+ <Search />
+ </InputGroupAddon>
+ <InputGroupInput
+ placeholder="Search accounts..."
+ value={searchInput}
+ onChange={(e) => setSearchInput(e.target.value)}
+ />
+ </InputGroup>
+ <Select
+ value={selectedAccountType}
+ onValueChange={(val) => {
+ setSelectedAccountType(val === "all" ? "" : val);
+ setPage(1);
+ }}
+ >
+ <SelectTrigger>
+ {!selectedAccountType && <Layers className="mr-1.5 size-4 text-muted" />}
+ <SelectValue placeholder="All platforms" />
+ </SelectTrigger>
+ <SelectContent position="popper" align="end" sideOffset={4}>
+ <SelectItem value="all">All platforms</SelectItem>
+ {Object.entries(PAM_ACCOUNT_TYPE_MAP).map(([type, meta]) => (
+ <SelectItem key={type} value={type}>
+ <img
+ src={`/images/integrations/${meta.image}`}
+ alt={meta.name}
+ className="mr-1.5 inline-block size-4 rounded-sm"
+ />
+ {meta.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <Select
+ value={selectedFolderId}
+ onValueChange={(val) => {
+ setSelectedFolderId(val === "all" ? "" : val);
+ setPage(1);
+ }}
+ >
+ <SelectTrigger>
+ <FolderOpen className="mr-1.5 size-4 text-muted" />
+ <SelectValue placeholder="All folders" />
+ </SelectTrigger>
+ <SelectContent position="popper" align="end" sideOffset={4}>
+ <SelectItem value="all">All folders</SelectItem>
+ {folderOptions.map((folder) => (
+ <SelectItem key={folder.id} value={folder.id}>
+ {folder.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </CardContent>
+ <CardContent className="flex flex-col gap-4">
+ {isLoading && (
+ <div className="flex flex-col gap-3">
+ <Skeleton className="h-12 w-full rounded-md" />
+ <Skeleton className="h-12 w-full rounded-md" />
+ <Skeleton className="h-12 w-full rounded-md" />
+ </div>
+ )}
+
+ {!isLoading && folderGroups.length === 0 && (
+ <Empty>
+ <EmptyHeader>
+ <EmptyTitle>
+ {hasActiveFilters ? "No accounts match your filters" : "No accounts available"}
+ </EmptyTitle>
+ <EmptyDescription>
+ {hasActiveFilters
+ ? "Try adjusting your search or filters."
+ : "You don't have access to any accounts yet. Ask an admin to grant you access."}
+ </EmptyDescription>
+ </EmptyHeader>
+ </Empty>
+ )}
+
+ {folderGroups.map(([folderName, accounts]) => (
+ <FolderSection
+ key={folderName}
+ folderName={folderName}
+ accounts={accounts}
+ onLaunch={(account) => openSheet(PamSheetAction.Launch, account.id)}
+ />
+ ))}
+ </CardContent>
+ {(data?.totalCount ?? 0) > 0 && (
+ <Pagination
+ count={data?.totalCount ?? 0}
+ page={page}
+ perPage={perPage}
+ onChangePage={setPage}
+ onChangePerPage={(newPerPage) => {
+ setPerPage(newPerPage);
+ setUserTablePreference("pamAccessTable", PreferenceKey.PerPage, newPerPage);
+ setPage(1);
+ }}
+ />
+ )}
+ </Card>
+ </div>
+
+ <LaunchSessionSheet
+ account={selectedAction === PamSheetAction.Launch ? sheetAccount : null}
+ isOpen={selectedAction === PamSheetAction.Launch && !!sheetAccount}
+ onOpenChange={(open) => {
+ if (!open) closeSheet();
+ }}
+ />
+ </>
+ );
+};
diff --git a/frontend/src/pages/pam/PamAccessPage/components/AccountPlatformIcon.tsx b/frontend/src/pages/pam/PamAccessPage/components/AccountPlatformIcon.tsx
new file mode 100644
index 0000000000..a06b8c272e
--- /dev/null
+++ b/frontend/src/pages/pam/PamAccessPage/components/AccountPlatformIcon.tsx
@@ -0,0 +1,19 @@
+import { PAM_ACCOUNT_TYPE_MAP, PamAccountType } from "@app/hooks/api/pam";
+
+type Props = {
+ accountType: PamAccountType;
+ size?: number;
+};
+
+export const AccountPlatformIcon = ({ accountType, size = 28 }: Props) => {
+ const details = PAM_ACCOUNT_TYPE_MAP[accountType];
+
+ return (
+ <img
+ src={`/images/integrations/${details.image}`}
+ alt={details.name}
+ className="shrink-0 rounded-sm"
+ style={{ width: size, height: size }}
+ />
+ );
+};
diff --git a/frontend/src/pages/pam/PamAccessPage/components/AccountRow.tsx b/frontend/src/pages/pam/PamAccessPage/components/AccountRow.tsx
new file mode 100644
index 0000000000..dcdbf4049b
--- /dev/null
+++ b/frontend/src/pages/pam/PamAccessPage/components/AccountRow.tsx
@@ -0,0 +1,26 @@
+import { Rocket } from "lucide-react";
+
+import { Button } from "@app/components/v3";
+import { TAccessiblePamAccount } from "@app/hooks/api/pam";
+
+import { AccountPlatformIcon } from "./AccountPlatformIcon";
+
+type Props = {
+ account: TAccessiblePamAccount;
+ onLaunch: (account: TAccessiblePamAccount) => void;
+};
+
+export const AccountRow = ({ account, onLaunch }: Props) => {
+ return (
+ <div className="flex items-center gap-3 border-b border-border px-4 py-2 last:border-b-0 hover:bg-container-hover">
+ <AccountPlatformIcon accountType={account.accountType} size={24} />
+ <span className="flex-1 truncate text-sm text-foreground">{account.name}</span>
+ <div className="flex shrink-0 items-center gap-2">
+ <Button variant="pam" size="xs" onClick={() => onLaunch(account)}>
+ <Rocket className="size-3" />
+ Launch
+ </Button>
+ </div>
+ </div>
+ );
+};
diff --git a/frontend/src/pages/pam/PamAccessPage/components/FolderSection.tsx b/frontend/src/pages/pam/PamAccessPage/components/FolderSection.tsx
new file mode 100644
index 0000000000..d5088e8b64
--- /dev/null
+++ b/frontend/src/pages/pam/PamAccessPage/components/FolderSection.tsx
@@ -0,0 +1,33 @@
+import { ChevronDown, Folder } from "lucide-react";
+
+import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@app/components/v3";
+import { TAccessiblePamAccount } from "@app/hooks/api/pam";
+
+import { AccountRow } from "./AccountRow";
+
+type Props = {
+ folderName: string;
+ accounts: TAccessiblePamAccount[];
+ onLaunch: (account: TAccessiblePamAccount) => void;
+};
+
+export const FolderSection = ({ folderName, accounts, onLaunch }: Props) => {
+ return (
+ <Accordion type="single" collapsible defaultValue={folderName}>
+ <AccordionItem value={folderName}>
+ <AccordionTrigger className="[&>[data-slot=accordion-chevron]]:hidden">
+ <div className="flex flex-1 items-center gap-2">
+ <Folder className="size-4 text-product-pam" />
+ <span className="text-sm font-medium">{folderName}</span>
+ </div>
+ <ChevronDown className="size-4 shrink-0 rotate-90 text-label transition-transform duration-200 [[data-state=open]>&]:rotate-0" />
+ </AccordionTrigger>
+ <AccordionContent className="!p-0">
+ {accounts.map((account) => (
+ <AccountRow key={account.id} account={account} onLaunch={onLaunch} />
+ ))}
+ </AccordionContent>
+ </AccordionItem>
+ </Accordion>
+ );
+};
diff --git a/frontend/src/pages/pam/PamAccessPage/components/LaunchSessionSheet.tsx b/frontend/src/pages/pam/PamAccessPage/components/LaunchSessionSheet.tsx
new file mode 100644
index 0000000000..cf28fc7ed2
--- /dev/null
+++ b/frontend/src/pages/pam/PamAccessPage/components/LaunchSessionSheet.tsx
@@ -0,0 +1,107 @@
+import { Link } from "@tanstack/react-router";
+import { FolderOpen, Globe, Rocket, Terminal } from "lucide-react";
+
+import { Badge, Button } from "@app/components/v3";
+import { Sheet, SheetContent } from "@app/components/v3/generic/Sheet";
+import { useOrganization } from "@app/context";
+import { PAM_ACCOUNT_TYPE_MAP, TAccessiblePamAccount } from "@app/hooks/api/pam";
+
+import { AccountPlatformIcon } from "./AccountPlatformIcon";
+
+type Props = {
+ account: TAccessiblePamAccount | null;
+ isOpen: boolean;
+ onOpenChange: (open: boolean) => void;
+};
+
+export const LaunchSessionSheet = ({ account, isOpen, onOpenChange }: Props) => {
+ const { currentOrg } = useOrganization();
+
+ if (!account) return null;
+
+ const typeName = PAM_ACCOUNT_TYPE_MAP[account.accountType]?.name ?? account.accountType;
+
+ return (
+ <Sheet open={isOpen} onOpenChange={onOpenChange}>
+ <SheetContent className="flex w-full !max-w-5xl flex-row gap-0 p-0" side="right">
+ <div className="flex w-[280px] shrink-0 flex-col border-r border-border bg-mineshaft-700/30 p-6">
+ <div className="mb-3 flex size-14 items-center justify-center rounded-md border border-border bg-mineshaft-800 p-2.5">
+ <AccountPlatformIcon accountType={account.accountType} size={32} />
+ </div>
+ <h3 className="text-base font-semibold text-foreground">{account.name}</h3>
+ {account.folderName && (
+ <p className="mt-0.5 flex items-center gap-1 text-xs text-muted">
+ <FolderOpen className="size-3" />
+ {account.folderName}
+ </p>
+ )}
+ <Badge variant="pam" className="mt-2.5 w-fit">
+ {typeName}
+ </Badge>
+ <div className="mt-4 border-t border-border pt-4">
+ {account.description && (
+ <div>
+ <p className="text-xs text-muted">Description</p>
+ <p className="mt-0.5 text-sm text-foreground">{account.description}</p>
+ </div>
+ )}
+ </div>
+ </div>
+
+ <div className="flex flex-1 flex-col">
+ <div className="flex items-center gap-4 border-b border-border px-6 pt-1">
+ <button
+ type="button"
+ className="relative cursor-pointer border-b-2 border-product-pam px-1 pt-2 pb-2 text-sm font-medium text-foreground"
+ >
+ <span className="flex items-center gap-1.5">
+ <Rocket className="size-3.5" />
+ Launch
+ </span>
+ </button>
+ </div>
+
+ <div className="flex-1 p-6">
+ <p className="mb-3 text-sm font-medium text-foreground">Launch method</p>
+ <div className="flex gap-3">
+ <div className="flex flex-1 items-start gap-3 rounded-md border border-product-pam/40 bg-product-pam/5 p-3.5">
+ <Globe className="mt-0.5 size-5 shrink-0 text-foreground" />
+ <div className="text-left">
+ <p className="text-sm font-medium text-foreground">Browser</p>
+ <p className="text-xs text-muted">Connect directly from your browser.</p>
+ </div>
+ </div>
+ <div className="relative flex flex-1 items-start gap-3 rounded-md border border-border p-3.5 opacity-50">
+ <Terminal className="mt-0.5 size-5 shrink-0 text-foreground" />
+ <div className="text-left">
+ <p className="text-sm font-medium text-foreground">CLI</p>
+ <p className="text-xs text-muted">Use a custom client with the Infisical CLI.</p>
+ </div>
+ <Badge variant="warning" className="absolute top-2 right-2">
+ Coming soon
+ </Badge>
+ </div>
+ </div>
+
+ <p className="mt-5 mb-2.5 text-sm text-foreground">Launch browser client</p>
+
+ <Button variant="pam" className="w-full" asChild>
+ <Link
+ to="/organizations/$orgId/pam/accounts/$accountType/$accountId/access"
+ params={{
+ orgId: currentOrg.id,
+ accountType: account.accountType,
+ accountId: account.id
+ }}
+ target="_blank"
+ >
+ <Rocket className="size-4" />
+ Open Terminal client
+ </Link>
+ </Button>
+ </div>
+ </div>
+ </SheetContent>
+ </Sheet>
+ );
+};
diff --git a/frontend/src/pages/pam/PamAccessPage/route.tsx b/frontend/src/pages/pam/PamAccessPage/route.tsx
new file mode 100644
index 0000000000..92943c79d3
--- /dev/null
+++ b/frontend/src/pages/pam/PamAccessPage/route.tsx
@@ -0,0 +1,26 @@
+import { createFileRoute, stripSearchParams } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+
+import { pamSheetSearchParams } from "@app/hooks/usePamSheetState";
+
+import { PamAccessPage } from "./PamAccessPage";
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access/"
+)({
+ validateSearch: zodValidator(pamSheetSearchParams),
+ search: {
+ middlewares: [stripSearchParams({ accountId: undefined, action: undefined })]
+ },
+ beforeLoad: ({ context }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Access"
+ }
+ ]
+ };
+ },
+ component: PamAccessPage
+});