Skip to content

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

misc: address more discrepancy

Sheen Capadngandd5b29dad16e
diff --git a/frontend/src/const/routes.ts b/frontend/src/const/routes.ts
index 65fce0321b..44543b1d27 100644
--- a/frontend/src/const/routes.ts
+++ b/frontend/src/const/routes.ts
@@ -354,10 +354,6 @@ export const ROUTE_PATHS = Object.freeze({
)
},
Pam: {
- AccountsPage: setRoute(
- "/organizations/$orgId/projects/pam/$projectId/accounts",
- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts"
- ),
ResourcesPage: setRoute(
"/organizations/$orgId/projects/pam/$projectId/resources/",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/"
diff --git a/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx
index 7b0a908542..1cbd677766 100644
--- a/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx
+++ b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx
@@ -232,7 +232,6 @@ const PageContent = () => {
isOpen={popUp.accessAccount.isOpen}
onOpenChange={(isOpen) => handlePopUpToggle("accessAccount", isOpen)}
account={popUp.accessAccount.data?.account}
- accountPath={popUp.accessAccount.data?.accountPath}
projectId={projectId!}
/>
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/FolderBreadCrumbs.tsx b/frontend/src/pages/pam/PamAccountsPage/components/FolderBreadCrumbs.tsx
deleted file mode 100644
index f32e3f6820..0000000000
--- a/frontend/src/pages/pam/PamAccountsPage/components/FolderBreadCrumbs.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import { faFolderOpen } from "@fortawesome/free-solid-svg-icons";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { useNavigate } from "@tanstack/react-router";
-
-type Props = {
- path: string;
-};
-
-export const FolderBreadCrumbs = ({ path = "/" }: Props) => {
- const navigate = useNavigate({
- from: "/organizations/$orgId/projects/pam/$projectId/accounts"
- });
-
- const onFolderCrumbClick = (index: number) => {
- let newAccountPath = `/${path.split("/").filter(Boolean).slice(0, index).join("/")}`;
-
- if (!newAccountPath.endsWith("/")) {
- newAccountPath += "/";
- }
-
- if (path === newAccountPath) return;
- navigate({
- search: (prev) => ({ ...prev, accountPath: newAccountPath })
- });
- };
-
- return (
- <div className="flex items-center space-x-2">
- <div
- className="breadcrumb relative z-20 border-solid border-mineshaft-600 bg-mineshaft-800 py-1 pr-2 pl-5 text-sm hover:bg-mineshaft-600"
- onClick={() => onFolderCrumbClick(0)}
- onKeyDown={(e) => {
- if (e.key === "Enter" || e.key === " ") {
- e.preventDefault();
- onFolderCrumbClick(0);
- }
- }}
- role="button"
- tabIndex={0}
- >
- <FontAwesomeIcon icon={faFolderOpen} className="text-primary-700" />
- </div>
- {(path || "")
- .split("/")
- .filter(Boolean)
- .map((pathSegment, index, arr) => (
- <div
- key={`path-${index + 1}`}
- className={`breadcrumb relative z-20 ${
- index + 1 === arr.length ? "cursor-default" : "cursor-pointer"
- } border-solid border-mineshaft-600 py-1 pr-2 pl-5 text-sm text-mineshaft-200`}
- onClick={() => onFolderCrumbClick(index + 1)}
- onKeyDown={(e) => {
- if (e.key === "Enter" || e.key === " ") {
- e.preventDefault();
- onFolderCrumbClick(index + 1);
- }
- }}
- role="button"
- tabIndex={0}
- >
- {pathSegment}
- </div>
- ))}
- </div>
- );
-};
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsSection.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsSection.tsx
deleted file mode 100644
index 05b682873f..0000000000
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsSection.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import { useProject } from "@app/context";
-
-import { PamAccountsTable } from "./PamAccountsTable";
-
-export const PamAccountsSection = () => {
- const { currentProject } = useProject();
-
- return <PamAccountsTable projectId={currentProject.id} />;
-};
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx
deleted file mode 100644
index bcc594b8c5..0000000000
--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountsTable.tsx
+++ /dev/null
@@ -1,588 +0,0 @@
-import { useMemo, useState } from "react";
-import { faCircleXmark } from "@fortawesome/free-regular-svg-icons";
-import {
- faAngleDown,
- faArrowDown,
- faArrowUp,
- faCheckCircle,
- faClipboardCheck,
- faFilter,
- faFolderPlus,
- faMagnifyingGlass,
- faPlus,
- faSearch
-} from "@fortawesome/free-solid-svg-icons";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { useNavigate, useSearch } from "@tanstack/react-router";
-import { twMerge } from "tailwind-merge";
-
-import { ProjectPermissionCan } from "@app/components/permissions";
-import {
- Button,
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuTrigger,
- EmptyState,
- IconButton,
- Input,
- Pagination,
- Table,
- TableContainer,
- TableSkeleton,
- TBody,
- Th,
- THead,
- Tr
-} from "@app/components/v2";
-import { ROUTE_PATHS } from "@app/const/routes";
-import {
- ProjectPermissionActions,
- ProjectPermissionPamAccountActions,
- ProjectPermissionSub
-} from "@app/context/ProjectPermissionContext/types";
-import {
- getUserTablePreference,
- PreferenceKey,
- setUserTablePreference
-} from "@app/helpers/userTablePreferences";
-import { usePagination, usePopUp, useResetPageHelper } from "@app/hooks";
-import { ApprovalPolicyType, useCheckPolicyMatch } from "@app/hooks/api/approvalPolicies";
-import { OrderByDirection } from "@app/hooks/api/generic/types";
-import {
- PAM_RESOURCE_TYPE_MAP,
- PamAccountOrderBy,
- PamAccountView,
- PamResourceType,
- TPamAccount,
- TPamFolder
-} from "@app/hooks/api/pam";
-import { useListPamAccounts, useListPamResources } from "@app/hooks/api/pam/queries";
-
-import { AccountViewToggle } from "./AccountViewToggle";
-import { FolderBreadCrumbs } from "./FolderBreadCrumbs";
-import { PamAccessAccountModal } from "./PamAccessAccountModal";
-import { PamAccountCard } from "./PamAccountCard";
-import { PamAccountRow } from "./PamAccountRow";
-import { PamAddAccountModal } from "./PamAddAccountModal";
-import { PamAddFolderModal } from "./PamAddFolderModal";
-import { PamDeleteAccountModal } from "./PamDeleteAccountModal";
-import { PamDeleteFolderModal } from "./PamDeleteFolderModal";
-import { PamFolderRow } from "./PamFolderRow";
-import { PamRequestAccountAccessModal } from "./PamRequestAccountAccessModal";
-import { PamUpdateAccountModal } from "./PamUpdateAccountModal";
-import { PamUpdateFolderModal } from "./PamUpdateFolderModal";
-import { useAccessAwsIamAccount } from "./useAccessAwsIamAccount";
-
-type PamAccountFilter = {
- resourceIds: string[];
-};
-
-type Props = {
- projectId: string;
-};
-
-export const PamAccountsTable = ({ projectId }: Props) => {
- const navigate = useNavigate({ from: ROUTE_PATHS.Pam.AccountsPage.path });
- const { accessAwsIam, loadingAccountId } = useAccessAwsIamAccount();
- const { mutateAsync: checkPolicyMatch } = useCheckPolicyMatch();
-
- const { popUp, handlePopUpOpen, handlePopUpClose, handlePopUpToggle } = usePopUp([
- "misc",
- "addFolder",
- "updateFolder",
- "deleteFolder",
- "addAccount",
- "accessAccount",
- "requestAccount",
- "updateAccount",
- "deleteAccount"
- ] as const);
-
- const {
- search: initSearch,
- accountPath,
- accountView: initAccountView
- } = useSearch({
- from: ROUTE_PATHS.Pam.AccountsPage.id
- });
-
- const [accountView, setAccountView] = useState<PamAccountView>(
- initAccountView ?? PamAccountView.Flat
- );
-
- const [filter, setFilter] = useState<PamAccountFilter>({
- resourceIds: []
- });
-
- const {
- search,
- debouncedSearch,
- setSearch,
- page,
- perPage,
- setPage,
- setPerPage,
- offset,
- orderDirection,
- toggleOrderDirection,
- orderBy,
- setOrderDirection,
- setOrderBy
- } = usePagination<PamAccountOrderBy>(PamAccountOrderBy.Name, {
- initPerPage: getUserTablePreference("pamAccountsTable", PreferenceKey.PerPage, 18),
- initSearch
- });
-
- const handlePerPageChange = (newPerPage: number) => {
- setPerPage(newPerPage);
- setUserTablePreference("pamAccountsTable", PreferenceKey.PerPage, newPerPage);
- };
-
- const { data, isLoading } = useListPamAccounts({
- projectId,
- accountPath,
- accountView,
- offset,
- limit: perPage,
- search: debouncedSearch,
- orderBy,
- orderDirection,
- filterResourceIds: filter.resourceIds.length ? filter.resourceIds.join(",") : undefined
- });
-
- const accounts = data?.accounts || [];
- const folders = data?.folders || [];
- const totalCount = data?.totalCount || 0;
- const folderPaths = data?.folderPaths || {};
- const currentFolderId = data?.folderId ?? null;
-
- useResetPageHelper({
- totalCount,
- offset,
- setPage
- });
-
- const foldersToRender = useMemo(() => {
- if (accountView === PamAccountView.Flat) {
- return [];
- }
- return folders.filter((folder) =>
- folder.name.toLowerCase().includes(search.trim().toLowerCase())
- );
- }, [accountView, folders, search]);
-
- const filteredAccounts = useMemo(
- () =>
- accounts.filter((account) => {
- const {
- name,
- description,
- resource: { name: resourceName, id: resourceId }
- } = account;
-
- if (filter.resourceIds.length && !filter.resourceIds.includes(resourceId)) {
- return false;
- }
-
- const searchValue = search.trim().toLowerCase();
-
- return (
- name.toLowerCase().includes(searchValue) ||
- resourceName.toLowerCase().includes(searchValue) ||
- (description || "").toLowerCase().includes(searchValue)
- );
- }),
- [accounts, search, filter]
- );
-
- const handleSort = (column: PamAccountOrderBy) => {
- if (column === orderBy) {
- toggleOrderDirection();
- return;
- }
-
- setOrderBy(column);
- setOrderDirection(OrderByDirection.ASC);
- };
-
- const getClassName = (col: PamAccountOrderBy) =>
- twMerge("ml-2", orderBy === col ? "" : "opacity-30");
-
- const getColSortIcon = (col: PamAccountOrderBy) =>
- orderDirection === OrderByDirection.DESC && orderBy === col ? faArrowUp : faArrowDown;
-
- const isTableFiltered = Boolean(filter.resourceIds.length);
-
- const handleFolderClick = (folder: TPamFolder) => {
- if (accountView === PamAccountView.Flat) {
- return;
- }
- const newPath = `${accountPath}${folder.name}/`;
- navigate({ search: (prev) => ({ ...prev, accountPath: newPath }) });
- };
-
- const isContentEmpty = !filteredAccounts.length && !foldersToRender.length;
- const isSearchEmpty = isContentEmpty && (Boolean(search) || isTableFiltered);
-
- const { data: resourcesData } = useListPamResources({
- projectId,
- // temporarily returning a large number until we rework table filtering
- limit: 100
- });
-
- const resources = resourcesData?.resources || [];
-
- const accessAccount = async (account: TPamAccount) => {
- let fullAccountPath = `/${account.name}`;
- const folderPath = account.folderId ? folderPaths[account.folderId] : undefined;
- if (folderPath) {
- fullAccountPath = `${folderPath}/${account.name}`;
- }
-
- const { requiresApproval } = await checkPolicyMatch({
- policyType: ApprovalPolicyType.PamAccess,
- projectId,
- inputs: {
- accountPath: fullAccountPath,
- resourceName: account.resource.name,
- accountName: account.name
- }
- });
-
- if (requiresApproval) {
- // Open request access modal with pre-populated data
- handlePopUpOpen("requestAccount", {
- accountPath: fullAccountPath,
- resourceName: account.resource.name,
- accountName: account.name,
- accountAccessed: true
- });
- return;
- }
-
- // For AWS IAM, directly open console without modal
- if (account.resource.resourceType === PamResourceType.AwsIam) {
- accessAwsIam(account, fullAccountPath);
- } else {
- handlePopUpOpen("accessAccount", account);
- }
- };
-
- return (
- <div className="flex flex-col gap-4">
- <div className="flex gap-2">
- <ProjectPermissionCan I={ProjectPermissionActions.Read} a={ProjectPermissionSub.PamFolders}>
- {(isAllowed) =>
- isAllowed && (
- <AccountViewToggle
- value={accountView}
- onChange={(e) => {
- setPage(1);
- setFilter({ resourceIds: [] });
- setAccountView(e);
- navigate({
- search: (prev) => ({
- ...prev,
- accountView: e === PamAccountView.Flat ? undefined : e,
- accountPath: e === PamAccountView.Flat ? "/" : prev.accountPath
- })
- });
- }}
- />
- )
- }
- </ProjectPermissionCan>
- <Input
- value={search}
- onChange={(e) => {
- const newSearch = e.target.value;
- setSearch(newSearch);
- navigate({
- search: (prev) => ({ ...prev, search: newSearch || undefined }),
- replace: true
- });
- }}
- leftIcon={<FontAwesomeIcon icon={faMagnifyingGlass} />}
- placeholder="Search accounts..."
- className="flex-1"
- />
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <IconButton
- ariaLabel="Filter accounts"
- variant="plain"
- size="sm"
- className={twMerge(
- "flex h-10 min-w-10 items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",
- isTableFiltered && "border-primary/50 text-primary"
- )}
- >
- <FontAwesomeIcon icon={faFilter} />
- </IconButton>
- </DropdownMenuTrigger>
- <DropdownMenuContent className="max-h-[70vh] thin-scrollbar overflow-y-auto" align="end">
- <DropdownMenuLabel>Resource</DropdownMenuLabel>
- {resources.length ? (
- resources.map((resource) => {
- const { name, image } = PAM_RESOURCE_TYPE_MAP[resource.resourceType];
-
- return (
- <DropdownMenuItem
- onClick={(e) => {
- e.preventDefault();
- const newResources = filter.resourceIds.includes(resource.id)
- ? filter.resourceIds.filter((a) => a !== resource.id)
- : [...filter.resourceIds, resource.id];
- setFilter((prev) => ({
- ...prev,
- resourceIds: newResources
- }));
- }}
- key={resource.id}
- icon={
- filter.resourceIds.includes(resource.id) && (
- <FontAwesomeIcon className="text-primary" icon={faCheckCircle} />
- )
- }
- iconPos="right"
- >
- <div className="flex items-center gap-2">
- <img
- alt={`${name} resource`}
- src={`/images/integrations/${image}`}
- className="h-4 w-4"
- />
- <span>{resource.name}</span>
- </div>
- </DropdownMenuItem>
- );
- })
- ) : (
- <DropdownMenuItem isDisabled>No Account Resources</DropdownMenuItem>
- )}
- </DropdownMenuContent>
- </DropdownMenu>
- <Button
- variant="outline_bg"
- leftIcon={<FontAwesomeIcon icon={faClipboardCheck} />}
- onClick={() => handlePopUpOpen("requestAccount")}
- className="h-10 transition-colors"
- >
- Request Access
- </Button>
- <ProjectPermissionCan
- I={ProjectPermissionPamAccountActions.Create}
- a={ProjectPermissionSub.PamAccounts}
- >
- {(isAllowedToCreateAccounts) => (
- <div className="flex">
- <Button
- variant="outline_bg"
- leftIcon={<FontAwesomeIcon icon={faPlus} />}
- onClick={() => handlePopUpOpen("addAccount")}
- isDisabled={!isAllowedToCreateAccounts}
- className={`h-10 transition-colors ${accountView === PamAccountView.Flat ? "" : "rounded-r-none"}`}
- >
- Add Account
- </Button>
-
- {accountView !== PamAccountView.Flat && (
- <DropdownMenu
- open={popUp.misc.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("misc", isOpen)}
- >
- <DropdownMenuTrigger asChild>
- <IconButton
- variant="outline_bg"
- ariaLabel="add-folder-or-import"
- className="rounded-l-none bg-mineshaft-600 p-3"
- >
- <FontAwesomeIcon icon={faAngleDown} />
- </IconButton>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end" sideOffset={5}>
- <ProjectPermissionCan
- I={ProjectPermissionActions.Create}
- a={ProjectPermissionSub.PamFolders}
- >
- {(isAllowed) => (
- <Button
- leftIcon={<FontAwesomeIcon icon={faFolderPlus} className="pr-2" />}
- onClick={() => {
- handlePopUpOpen("addFolder");
- handlePopUpClose("misc");
- }}
- isDisabled={!isAllowed}
- variant="outline_bg"
- className="h-10 text-left"
- isFullWidth
- >
- Add Folder
- </Button>
- )}
- </ProjectPermissionCan>
- </DropdownMenuContent>
- </DropdownMenu>
- )}
- </div>
- )}
- </ProjectPermissionCan>
- </div>
- {accountView === PamAccountView.Nested && <FolderBreadCrumbs path={accountPath} />}
- {accountView === PamAccountView.Flat ? (
- <>
- <div className="grid grid-cols-1 gap-4 md:grid-cols-3">
- {filteredAccounts.map((account) => (
- <PamAccountCard
- key={account.id}
- account={account}
- accountPath={account.folderId ? folderPaths[account.folderId] : undefined}
- onAccess={(e: TPamAccount) => accessAccount(e)}
- onUpdate={(e) => handlePopUpOpen("updateAccount", e)}
- onDelete={(e) => handlePopUpOpen("deleteAccount", e)}
- />
- ))}
- </div>
- {!isLoading && isContentEmpty && (
- <EmptyState
- title={isSearchEmpty ? "No accounts match search" : "No accounts"}
- icon={isSearchEmpty ? faSearch : faCircleXmark}
- className="rounded border border-mineshaft-500"
- />
- )}
- {Boolean(totalCount) && !isLoading && !isContentEmpty && (
- <Pagination
- className="col-span-full justify-start! border-transparent bg-transparent pl-2"
- count={totalCount}
- page={page}
- perPage={perPage}
- onChangePage={(newPage) => setPage(newPage)}
- onChangePerPage={handlePerPageChange}
- perPageList={[9, 18, 48, 99]}
- />
- )}
- </>
- ) : (
- <TableContainer>
- <Table>
- <THead>
- <Tr>
- <Th>
- <div className="flex items-center">
- Accounts
- <IconButton
- variant="plain"
- className={getClassName(PamAccountOrderBy.Name)}
- ariaLabel="sort"
- onClick={() => handleSort(PamAccountOrderBy.Name)}
- >
- <FontAwesomeIcon icon={getColSortIcon(PamAccountOrderBy.Name)} />
- </IconButton>
- </div>
- </Th>
- <Th className="w-5" />
- </Tr>
- </THead>
- <TBody>
- {isLoading && <TableSkeleton columns={2} innerKey="pam-accounts" />}
- {!isLoading && (
- <>
- {foldersToRender.map((folder) => (
- <PamFolderRow
- key={folder.id}
- folder={folder}
- search={search}
- onClick={() => handleFolderClick(folder)}
- onUpdate={(e) => handlePopUpOpen("updateFolder", e)}
- onDelete={(e) => handlePopUpOpen("deleteFolder", e)}
- />
- ))}
- {filteredAccounts.map((account) => (
- <PamAccountRow
- key={account.id}
- account={account}
- search={search}
- isAccessLoading={loadingAccountId === account.id}
- onAccess={(e: TPamAccount) => accessAccount(e)}
- onUpdate={(e) => handlePopUpOpen("updateAccount", e)}
- onDelete={(e) => handlePopUpOpen("deleteAccount", e)}
- />
- ))}
- </>
- )}
- </TBody>
- </Table>
- {!isLoading && isContentEmpty && (
- <EmptyState
- title={isSearchEmpty ? "No accounts match search" : "No accounts"}
- icon={isSearchEmpty ? faSearch : faCircleXmark}
- />
- )}
- {Boolean(totalCount) && !isLoading && !isContentEmpty && (
- <Pagination
- count={totalCount}
- page={page}
- perPage={perPage}
- onChangePage={(newPage) => setPage(newPage)}
- onChangePerPage={handlePerPageChange}
- perPageList={[9, 18, 48, 99]}
- />
- )}
- </TableContainer>
- )}
- <PamDeleteFolderModal
- isOpen={popUp.deleteFolder.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("deleteFolder", isOpen)}
- folder={popUp.deleteFolder.data}
- />
- <PamUpdateFolderModal
- isOpen={popUp.updateFolder.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("updateFolder", isOpen)}
- folder={popUp.updateFolder.data}
- />
- <PamAddFolderModal
- isOpen={popUp.addFolder.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("addFolder", isOpen)}
- projectId={projectId}
- currentFolderId={currentFolderId}
- />
- <PamAccessAccountModal
- isOpen={popUp.accessAccount.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("accessAccount", isOpen)}
- account={popUp.accessAccount.data}
- accountPath={
- popUp.accessAccount.data?.folderId
- ? folderPaths[popUp.accessAccount.data.folderId]
- : undefined
- }
- projectId={projectId}
- />
- <PamRequestAccountAccessModal
- isOpen={popUp.requestAccount.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("requestAccount", isOpen)}
- accountPath={popUp.requestAccount.data?.accountPath}
- resourceName={popUp.requestAccount.data?.resourceName}
- accountName={popUp.requestAccount.data?.accountName}
- accountAccessed={popUp.requestAccount.data?.accountAccessed}
- />
- <PamDeleteAccountModal
- isOpen={popUp.deleteAccount.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("deleteAccount", isOpen)}
- account={popUp.deleteAccount.data}
- />
- <PamUpdateAccountModal
- isOpen={popUp.updateAccount.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("updateAccount", isOpen)}
- account={popUp.updateAccount.data}
- />
- <PamAddAccountModal
- isOpen={popUp.addAccount.isOpen}
- onOpenChange={(isOpen) => handlePopUpToggle("addAccount", isOpen)}
- projectId={projectId}
- currentFolderId={currentFolderId}
- />
- </div>
- );
-};
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
index b82d5b4caf..a9a0219942 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
@@ -366,7 +366,6 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
isOpen={popUp.accessAccount.isOpen}
onOpenChange={(isOpen) => handlePopUpToggle("accessAccount", isOpen)}
account={popUp.accessAccount.data?.account}
- accountPath={popUp.accessAccount.data?.accountPath}
projectId={projectId!}
/>