Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat(pam): individual resource & account pages
x03220583bbaa2f0214
diff --git a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.tsindex 38f22a00a0..ab82c51adc 100644--- a/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts+++ b/backend/src/ee/routes/v1/pam-account-routers/pam-account-router.ts@@ -37,6 +37,50 @@ const ListPamAccountsResponseSchema = z.object({});export const registerPamAccountRouter = async (server: FastifyZodProvider) => {+ server.route({+ method: "GET",+ url: "/:accountId",+ config: {+ rateLimit: readLimit+ },+ schema: {+ description: "Get PAM account by ID",+ params: z.object({+ accountId: z.string().uuid()+ }),+ response: {+ 200: SanitizedAccountSchema+ }+ },+ onRequest: verifyAuth([AuthMode.JWT]),+ handler: async (req) => {+ const { accountId } = req.params;++ const account = await server.services.pamAccount.getById({+ accountId,+ actorId: req.permission.id,+ actor: req.permission.type,+ actorAuthMethod: req.permission.authMethod,+ actorOrgId: req.permission.orgId+ });++ await server.services.auditLog.createAuditLog({+ ...req.auditLogInfo,+ orgId: req.permission.orgId,+ projectId: account.projectId,+ event: {+ type: EventType.PAM_ACCOUNT_GET,+ metadata: {+ accountId: account.id,+ accountName: account.name+ }+ }+ });++ return account;+ }+ });+server.route({method: "GET",url: "/",diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.tsindex 9faf96b32f..6b9dca2101 100644--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@ -560,6 +560,7 @@ export enum EventType {PAM_FOLDER_UPDATE = "pam-folder-update",PAM_FOLDER_DELETE = "pam-folder-delete",PAM_ACCOUNT_LIST = "pam-account-list",+ PAM_ACCOUNT_GET = "pam-account-get",PAM_ACCOUNT_ACCESS = "pam-account-access",PAM_ACCOUNT_CREATE = "pam-account-create",PAM_ACCOUNT_UPDATE = "pam-account-update",@@ -4239,6 +4240,14 @@ interface PamAccountListEvent {};}+interface PamAccountGetEvent {+ type: EventType.PAM_ACCOUNT_GET;+ metadata: {+ accountId: string;+ accountName: string;+ };+}+interface PamAccountAccessEvent {type: EventType.PAM_ACCOUNT_ACCESS;metadata: {@@ -5314,6 +5323,7 @@ export type Event =| PamFolderUpdateEvent| PamFolderDeleteEvent| PamAccountListEvent+ | PamAccountGetEvent| PamAccountAccessEvent| PamAccountCreateEvent| PamAccountUpdateEventdiff --git a/backend/src/ee/services/pam-account/pam-account-dal.ts b/backend/src/ee/services/pam-account/pam-account-dal.tsindex 5fa2426278..2027e6c10e 100644--- a/backend/src/ee/services/pam-account/pam-account-dal.ts+++ b/backend/src/ee/services/pam-account/pam-account-dal.ts@@ -106,6 +106,44 @@ export const pamAccountDALFactory = (db: TDbClient) => {}};+ const findByIdWithResourceDetails = async (accountId: string, tx?: Knex) => {+ try {+ const dbInstance = tx || db.replicaNode();+ const result = await dbInstance(TableName.PamAccount)+ .leftJoin(TableName.PamResource, `${TableName.PamAccount}.resourceId`, `${TableName.PamResource}.id`)+ .where(`${TableName.PamAccount}.id`, accountId)+ .select(selectAllTableCols(TableName.PamAccount))+ .select(+ db.ref("name").withSchema(TableName.PamResource).as("resourceName"),+ db.ref("resourceType").withSchema(TableName.PamResource),+ db.ref("encryptedRotationAccountCredentials").withSchema(TableName.PamResource)+ )+ .first();++ if (!result) return null;++ const { resourceId, resourceName, resourceType, encryptedRotationAccountCredentials, ...account } = result as {+ resourceId: string;+ resourceName: string;+ resourceType: string;+ encryptedRotationAccountCredentials: Buffer | null;+ } & typeof result;++ return {+ ...account,+ resourceId,+ resource: {+ id: resourceId,+ name: resourceName,+ resourceType,+ encryptedRotationAccountCredentials+ }+ };+ } catch (error) {+ throw new DatabaseError({ error, name: "Find PAM account by ID with resource details" });+ }+ };+const findAccountsDueForRotation = async (tx?: Knex) => {const dbClient = tx || db.replicaNode();@@ -125,6 +163,7 @@ export const pamAccountDALFactory = (db: TDbClient) => {return {...orm,findByProjectIdWithResourceDetails,+ findByIdWithResourceDetails,findAccountsDueForRotation};};diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.tsindex 0e9a20d963..7634e7614c 100644--- a/backend/src/ee/services/pam-account/pam-account-service.ts+++ b/backend/src/ee/services/pam-account/pam-account-service.ts@@ -66,7 +66,13 @@ import { OrgPermissionGatewayActions, OrgPermissionSubjects } from "../permissioimport { TPamAccountDALFactory } from "./pam-account-dal";import { PamAccountView } from "./pam-account-enums";import { decryptAccount, decryptAccountCredentials, encryptAccountCredentials } from "./pam-account-fns";-import { TAccessAccountDTO, TCreateAccountDTO, TListAccountsDTO, TUpdateAccountDTO } from "./pam-account-types";+import {+ TAccessAccountDTO,+ TCreateAccountDTO,+ TGetAccountByIdDTO,+ TListAccountsDTO,+ TUpdateAccountDTO+} from "./pam-account-types";type TPamAccountServiceFactoryDep = {pamResourceDAL: TPamResourceDALFactory;@@ -561,6 +567,47 @@ export const pamAccountServiceFactory = ({};};+ const getById = async ({ accountId, actor, actorId, actorAuthMethod, actorOrgId }: TGetAccountByIdDTO) => {+ const accountWithResource = await pamAccountDAL.findByIdWithResourceDetails(accountId);+ if (!accountWithResource) throw new NotFoundError({ message: `Account with ID '${accountId}' not found` });++ const { permission } = await permissionService.getProjectPermission({+ actor,+ actorId,+ projectId: accountWithResource.projectId,+ actorAuthMethod,+ actorOrgId,+ actionProjectType: ActionProjectType.PAM+ });++ const accountPath = await getFullPamFolderPath({+ pamFolderDAL,+ folderId: accountWithResource.folderId,+ projectId: accountWithResource.projectId+ });++ ForbiddenError.from(permission).throwUnlessCan(+ ProjectPermissionPamAccountActions.Read,+ subject(ProjectPermissionSub.PamAccounts, {+ resourceName: accountWithResource.resource.name,+ accountName: accountWithResource.name,+ accountPath+ })+ );++ const decryptedAccount = await decryptAccount(accountWithResource, accountWithResource.projectId, kmsService);++ return {+ ...decryptedAccount,+ resource: {+ id: accountWithResource.resource.id,+ name: accountWithResource.resource.name,+ resourceType: accountWithResource.resource.resourceType,+ rotationCredentialsConfigured: !!accountWithResource.resource.encryptedRotationAccountCredentials+ }+ };+ };+const access = async ({accountPath,@@ -1161,6 +1208,7 @@ export const pamAccountServiceFactory = ({updateById,deleteById,list,+ getById,access,getSessionCredentials,rotateAllDueAccountsdiff --git a/backend/src/ee/services/pam-account/pam-account-types.ts b/backend/src/ee/services/pam-account/pam-account-types.tsindex b05cf7a5cc..c7a1afae81 100644--- a/backend/src/ee/services/pam-account/pam-account-types.ts+++ b/backend/src/ee/services/pam-account/pam-account-types.ts@@ -36,3 +36,7 @@ export type TListAccountsDTO = {offset?: number;filterResourceIds?: string[];} & TProjectPermission;++export type TGetAccountByIdDTO = {+ accountId: string;+} & Omit<TProjectPermission, "projectId">;diff --git a/frontend/src/const/routes.ts b/frontend/src/const/routes.tsindex 71cbd98a59..e6ed374bf2 100644--- a/frontend/src/const/routes.ts+++ b/frontend/src/const/routes.ts@@ -355,12 +355,12 @@ 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"+ "/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"+ "/organizations/$orgId/projects/pam/$projectId/resources/",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/"),SessionsPage: setRoute("/organizations/$orgId/projects/pam/$projectId/sessions",@@ -373,6 +373,14 @@ export const ROUTE_PATHS = Object.freeze({PamSessionByIDPage: setRoute("/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/$sessionId"+ ),+ PamResourceByIDPage: setRoute(+ "/organizations/$orgId/projects/pam/$projectId/resources/$resourceType/$resourceId",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId"+ ),+ PamAccountByIDPage: setRoute(+ "/organizations/$orgId/projects/pam/$projectId/accounts/$accountId",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId")},Public: {diff --git a/frontend/src/hooks/api/pam/queries.tsx b/frontend/src/hooks/api/pam/queries.tsxindex 8f8b681e69..1ed5dc6de1 100644--- a/frontend/src/hooks/api/pam/queries.tsx+++ b/frontend/src/hooks/api/pam/queries.tsx@@ -37,6 +37,7 @@ export const pamKeys = {projectId,params],+ getAccount: (accountId: string) => [...pamKeys.account(), "get", accountId],getSession: (sessionId: string) => [...pamKeys.session(), "get", sessionId],listSessions: (projectId: string) => [...pamKeys.session(), "list", projectId]};@@ -154,6 +155,25 @@ export const useListPamAccounts = (});};+export const useGetPamAccountById = (+ accountId?: string,+ options?: Omit<+ UseQueryOptions<TPamAccount, unknown, TPamAccount, ReturnType<typeof pamKeys.getAccount>>,+ "queryKey" | "queryFn"+ >+) => {+ return useQuery({+ queryKey: pamKeys.getAccount(accountId || ""),+ queryFn: async () => {+ const { data } = await apiRequest.get<TPamAccount>(`/api/v1/pam/accounts/${accountId}`);++ return data;+ },+ enabled: !!accountId && (options?.enabled ?? true),+ ...options+ });+};+// Sessionsexport const useGetPamSessionById = (sessionId: string,diff --git a/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsxnew file mode 100644index 0000000000..884d064704--- /dev/null+++ b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx@@ -0,0 +1,258 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import {+ faBan,+ faChevronLeft,+ faEllipsisV,+ faRightToBracket+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useParams } from "@tanstack/react-router";++import { ProjectPermissionCan } from "@app/components/permissions";+import {+ Button,+ ContentLoader,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ EmptyState,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { ProjectPermissionSub, useOrganization } from "@app/context";+import { ProjectPermissionPamAccountActions } from "@app/context/ProjectPermissionContext/types";+import { usePopUp } from "@app/hooks";+import { ApprovalPolicyType, useCheckPolicyMatch } from "@app/hooks/api/approvalPolicies";+import { PAM_RESOURCE_TYPE_MAP, PamResourceType, useGetPamAccountById } from "@app/hooks/api/pam";++import { PamAccessAccountModal } from "../PamAccountsPage/components/PamAccessAccountModal";+import { PamDeleteAccountModal } from "../PamAccountsPage/components/PamDeleteAccountModal";+import { PamRequestAccountAccessModal } from "../PamAccountsPage/components/PamRequestAccountAccessModal";+import { PamUpdateAccountModal } from "../PamAccountsPage/components/PamUpdateAccountModal";+import { useAccessAwsIamAccount } from "../PamAccountsPage/components/useAccessAwsIamAccount";+import {+ PamAccountCredentialsSection,+ PamAccountDetailsSection,+ PamAccountResourcesSection+} from "./components";++const PageContent = () => {+ const navigate = useNavigate();+ const { currentOrg } = useOrganization();+ const params = useParams({+ strict: false+ }) as { accountId?: string; projectId?: string; orgId?: string };++ const { accountId, projectId } = params;++ const [isEditModalOpen, setIsEditModalOpen] = useState(false);++ const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp([+ "accessAccount",+ "requestAccount",+ "deleteAccount"+ ] as const);++ const { accessAwsIam, isPending: isAwsAccessPending } = useAccessAwsIamAccount();+ const { mutateAsync: checkPolicyMatch } = useCheckPolicyMatch();++ const { data: account, isPending } = useGetPamAccountById(accountId);++ if (isPending) {+ return (+ <div className="flex h-full w-full items-center justify-center">+ <ContentLoader />+ </div>+ );+ }++ if (!account) {+ return (+ <div className="flex h-full w-full items-center justify-center px-20">+ <EmptyState+ className="max-w-2xl rounded-md text-center"+ icon={faBan}+ title={`Could not find PAM Account with ID ${accountId}`}+ />+ </div>+ );+ }++ const resourceTypeInfo = PAM_RESOURCE_TYPE_MAP[account.resource.resourceType];++ const handleBack = () => {+ navigate({+ to: "/organizations/$orgId/projects/pam/$projectId/accounts",+ params: { orgId: currentOrg.id, projectId: projectId! }+ });+ };++ const handleAccess = async () => {+ const fullAccountPath = `/${account.name}`;++ const { requiresApproval } = await checkPolicyMatch({+ policyType: ApprovalPolicyType.PamAccess,+ projectId: projectId!,+ inputs: {+ accountPath: fullAccountPath+ }+ });++ if (requiresApproval) {+ handlePopUpOpen("requestAccount", { accountPath: fullAccountPath, accountAccessed: true });+ return;+ }++ if (account.resource.resourceType === PamResourceType.AwsIam) {+ accessAwsIam(account, fullAccountPath);+ } else {+ handlePopUpOpen("accessAccount", { account, accountPath: undefined });+ }+ };++ return (+ <div className="container mx-auto flex max-w-7xl flex-col px-6 py-6 text-mineshaft-50">+ <button+ type="button"+ onClick={handleBack}+ className="mb-4 flex items-center gap-1 text-sm text-bunker-300 hover:text-primary-400"+ >+ <FontAwesomeIcon icon={faChevronLeft} className="text-xs" />+ Accounts+ </button>++ <div className="mb-6 flex items-center justify-between">+ <div className="flex items-center gap-4">+ <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-mineshaft-700">+ <img+ alt={resourceTypeInfo.name}+ src={`/images/integrations/${resourceTypeInfo.image}`}+ className="size-6"+ />+ </div>+ <div>+ <h1 className="text-2xl font-semibold text-mineshaft-100">{account.name}</h1>+ <p className="text-sm text-bunker-300">+ {resourceTypeInfo.name} Account on {account.resource.name}+ </p>+ </div>+ </div>+ <div className="flex items-center gap-3">+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Access}+ a={ProjectPermissionSub.PamAccounts}+ >+ <Button+ variant="outline_bg"+ leftIcon={<FontAwesomeIcon icon={faRightToBracket} />}+ onClick={handleAccess}+ isLoading={isAwsAccessPending}+ >+ Access+ </Button>+ </ProjectPermissionCan>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" colorSchema="secondary">+ <FontAwesomeIcon icon={faEllipsisV} />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" sideOffset={2}>+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Edit}+ a={ProjectPermissionSub.PamAccounts}+ >+ {(isAllowed) => (+ <DropdownMenuItem+ onClick={() => setIsEditModalOpen(true)}+ isDisabled={!isAllowed}+ >+ Edit Account+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Delete}+ a={ProjectPermissionSub.PamAccounts}+ >+ {(isAllowed) => (+ <DropdownMenuItem+ onClick={() => handlePopUpOpen("deleteAccount", account)}+ className="text-red-500"+ isDisabled={!isAllowed}+ >+ Delete Account+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </div>++ <div className="flex gap-6">+ {/* Left Column */}+ <div className="flex w-80 flex-col gap-4">+ <PamAccountDetailsSection account={account} onEdit={() => setIsEditModalOpen(true)} />+ <PamAccountCredentialsSection account={account} onEdit={() => setIsEditModalOpen(true)} />+ </div>++ {/* Right Column - Tabbed Content */}+ <div className="flex-1">+ <Tabs defaultValue="resources">+ <TabList>+ <Tab value="resources">Resources</Tab>+ </TabList>+ <TabPanel value="resources">+ <PamAccountResourcesSection account={account} onAccessResource={handleAccess} />+ </TabPanel>+ </Tabs>+ </div>+ </div>++ <PamUpdateAccountModal+ isOpen={isEditModalOpen}+ onOpenChange={setIsEditModalOpen}+ account={account}+ />++ <PamAccessAccountModal+ isOpen={popUp.accessAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("accessAccount", isOpen)}+ account={popUp.accessAccount.data?.account}+ accountPath={popUp.accessAccount.data?.accountPath}+ projectId={projectId!}+ />++ <PamRequestAccountAccessModal+ isOpen={popUp.requestAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("requestAccount", isOpen)}+ accountPath={popUp.requestAccount.data?.accountPath}+ accountAccessed={popUp.requestAccount.data?.accountAccessed}+ />++ <PamDeleteAccountModal+ isOpen={popUp.deleteAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("deleteAccount", isOpen)}+ account={popUp.deleteAccount.data}+ onDeleted={handleBack}+ />+ </div>+ );+};++export const PamAccountByIDPage = () => {+ return (+ <>+ <Helmet>+ <title>PAM Account | Infisical</title>+ <link rel="icon" href="/infisical.ico" />+ </Helmet>+ <PageContent />+ </>+ );+};diff --git a/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountCredentialsSection.tsx b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountCredentialsSection.tsxnew file mode 100644index 0000000000..a771a7f111--- /dev/null+++ b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountCredentialsSection.tsx@@ -0,0 +1,116 @@+import { faCopy, faEdit } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";++import { createNotification } from "@app/components/notifications";+import { ProjectPermissionCan } from "@app/components/permissions";+import { GenericFieldLabel, IconButton, Input } from "@app/components/v2";+import { ProjectPermissionSub } from "@app/context";+import { ProjectPermissionPamAccountActions } from "@app/context/ProjectPermissionContext/types";+import { PamResourceType, TPamAccount } from "@app/hooks/api/pam";+import { TAwsIamCredentials } from "@app/hooks/api/pam/types/aws-iam-resource";+import { TBaseSqlCredentials } from "@app/hooks/api/pam/types/shared/sql-resource";+import { SSHAuthMethod, TSSHCredentials } from "@app/hooks/api/pam/types/ssh-resource";++type Props = {+ account: TPamAccount;+ onEdit: VoidFunction;+};++const CopyableField = ({ label, value }: { label: string; value: string }) => {+ const handleCopy = () => {+ navigator.clipboard.writeText(value);+ createNotification({+ text: `${label} copied to clipboard`,+ type: "info"+ });+ };++ return (+ <div>+ <GenericFieldLabel label={label}>+ <div className="mt-1 flex items-center gap-2">+ <Input value={value} readOnly className="flex-1 font-mono text-sm" />+ <IconButton ariaLabel="Copy" variant="outline_bg" onClick={handleCopy} size="sm">+ <FontAwesomeIcon icon={faCopy} />+ </IconButton>+ </div>+ </GenericFieldLabel>+ </div>+ );+};++const SqlCredentialsContent = ({ credentials }: { credentials: TBaseSqlCredentials }) => (+ <CopyableField label="Username" value={credentials.username} />+);++const SSHCredentialsContent = ({ credentials }: { credentials: TSSHCredentials }) => {+ if (credentials.authMethod === SSHAuthMethod.Password) {+ return <CopyableField label="Username" value={credentials.username} />;+ }++ if (credentials.authMethod === SSHAuthMethod.PublicKey) {+ return <CopyableField label="Username" value={credentials.username} />;+ }++ // Certificate auth+ return <CopyableField label="Username" value={credentials.username} />;+};++const AwsIamCredentialsContent = ({ credentials }: { credentials: TAwsIamCredentials }) => (+ <>+ <CopyableField label="Target Role ARN" value={credentials.targetRoleArn} />+ <GenericFieldLabel label="Default Session Duration">+ {Math.floor(credentials.defaultSessionDuration / 60)} minutes+ </GenericFieldLabel>+ </>+);++const CredentialsContent = ({ account }: { account: TPamAccount }) => {+ const { resourceType } = account.resource;++ switch (resourceType) {+ case PamResourceType.Postgres:+ case PamResourceType.MySQL:+ case PamResourceType.Redis:+ return <SqlCredentialsContent credentials={account.credentials as TBaseSqlCredentials} />;+ case PamResourceType.SSH:+ return <SSHCredentialsContent credentials={account.credentials as TSSHCredentials} />;+ case PamResourceType.AwsIam:+ return <AwsIamCredentialsContent credentials={account.credentials as TAwsIamCredentials} />;+ default:+ return null;+ }+};++export const PamAccountCredentialsSection = ({ account, onEdit }: Props) => {+ if (+ Object.keys(account.credentials).length <= 0 ||+ [PamResourceType.Kubernetes].includes(account.resource.resourceType)+ )+ return null;++ return (+ <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">+ <h3 className="text-lg font-medium text-mineshaft-100">Credentials</h3>+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Edit}+ a={ProjectPermissionSub.PamAccounts}+ >+ {(isAllowed) => (+ <IconButton+ variant="plain"+ colorSchema="secondary"+ ariaLabel="Edit credentials"+ onClick={onEdit}+ isDisabled={!isAllowed}+ >+ <FontAwesomeIcon icon={faEdit} />+ </IconButton>+ )}+ </ProjectPermissionCan>+ </div>+ <CredentialsContent account={account} />+ </div>+ );+};diff --git a/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountDetailsSection.tsx b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountDetailsSection.tsxnew file mode 100644index 0000000000..75a7e2fcb1--- /dev/null+++ b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountDetailsSection.tsx@@ -0,0 +1,60 @@+import { faEdit } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { format } from "date-fns";++import { ProjectPermissionCan } from "@app/components/permissions";+import { GenericFieldLabel, IconButton } from "@app/components/v2";+import { ProjectPermissionSub } from "@app/context";+import { ProjectPermissionPamAccountActions } from "@app/context/ProjectPermissionContext/types";+import { PAM_RESOURCE_TYPE_MAP, TPamAccount } from "@app/hooks/api/pam";++type Props = {+ account: TPamAccount;+ onEdit: VoidFunction;+};++export const PamAccountDetailsSection = ({ account, onEdit }: Props) => {+ const resourceTypeInfo = PAM_RESOURCE_TYPE_MAP[account.resource.resourceType];++ return (+ <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">+ <h3 className="text-lg font-medium text-mineshaft-100">Details</h3>+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Edit}+ a={ProjectPermissionSub.PamAccounts}+ >+ {(isAllowed) => (+ <IconButton+ variant="plain"+ colorSchema="secondary"+ ariaLabel="Edit account details"+ onClick={onEdit}+ isDisabled={!isAllowed}+ >+ <FontAwesomeIcon icon={faEdit} />+ </IconButton>+ )}+ </ProjectPermissionCan>+ </div>+ <div className="space-y-3">+ <GenericFieldLabel label="Name">{account.name}</GenericFieldLabel>+ <GenericFieldLabel label="Description">{account.description}</GenericFieldLabel>+ <GenericFieldLabel label="Type">+ <div className="flex items-center gap-2">+ <img+ alt={resourceTypeInfo.name}+ src={`/images/integrations/${resourceTypeInfo.image}`}+ className="size-4"+ />+ {resourceTypeInfo.name} Account+ </div>+ </GenericFieldLabel>+ <GenericFieldLabel label="Parent Resource">{account.resource.name}</GenericFieldLabel>+ <GenericFieldLabel label="Created">+ {format(new Date(account.createdAt), "MM/dd/yyyy, hh:mm a")}+ </GenericFieldLabel>+ </div>+ </div>+ );+};diff --git a/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountResourcesSection.tsx b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountResourcesSection.tsxnew file mode 100644index 0000000000..16b26c2b0d--- /dev/null+++ b/frontend/src/pages/pam/PamAccountByIDPage/components/PamAccountResourcesSection.tsx@@ -0,0 +1,54 @@+import { faArrowRight, faDesktop } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";++import { TPamAccount } from "@app/hooks/api/pam";++type Props = {+ account: TPamAccount;+ onAccessResource: (resourceId: string) => void;+};++type ResourceCardProps = {+ name: string;+ resourceId: string;+ onAccess: (resourceId: string) => void;+};++const ResourceCard = ({ name, resourceId, onAccess }: ResourceCardProps) => {+ return (+ <button+ type="button"+ onClick={() => onAccess(resourceId)}+ className="flex w-full cursor-pointer items-center justify-between rounded-lg border border-mineshaft-600 bg-mineshaft-800 p-4 text-left transition-colors hover:border-mineshaft-500 hover:bg-mineshaft-700"+ >+ <div className="flex items-center gap-3">+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-mineshaft-700">+ <FontAwesomeIcon icon={faDesktop} className="text-mineshaft-300" />+ </div>+ <div>+ <p className="font-medium text-mineshaft-100">{name}</p>+ <p className="text-xs text-mineshaft-400">{resourceId.slice(0, 8)}</p>+ </div>+ </div>+ <FontAwesomeIcon icon={faArrowRight} className="text-mineshaft-400" />+ </button>+ );+};++export const PamAccountResourcesSection = ({ account, onAccessResource }: Props) => {+ const { resource } = account;++ return (+ <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900">+ <div className="border-b border-mineshaft-600 px-4 py-3">+ <h3 className="text-lg font-medium text-mineshaft-100">Resources</h3>+ <p className="text-sm text-bunker-300">Resources this account can access</p>+ </div>+ <div className="p-4">+ <div className="grid grid-cols-1 gap-4 md:grid-cols-2">+ <ResourceCard name={resource.name} resourceId={resource.id} onAccess={onAccessResource} />+ </div>+ </div>+ </div>+ );+};diff --git a/frontend/src/pages/pam/PamAccountByIDPage/components/index.ts b/frontend/src/pages/pam/PamAccountByIDPage/components/index.tsnew file mode 100644index 0000000000..f01dc4c3a3--- /dev/null+++ b/frontend/src/pages/pam/PamAccountByIDPage/components/index.ts@@ -0,0 +1,3 @@+export { PamAccountCredentialsSection } from "./PamAccountCredentialsSection";+export { PamAccountDetailsSection } from "./PamAccountDetailsSection";+export { PamAccountResourcesSection } from "./PamAccountResourcesSection";diff --git a/frontend/src/pages/pam/PamAccountByIDPage/route.tsx b/frontend/src/pages/pam/PamAccountByIDPage/route.tsxnew file mode 100644index 0000000000..0af5448392--- /dev/null+++ b/frontend/src/pages/pam/PamAccountByIDPage/route.tsx@@ -0,0 +1,26 @@+import { createFileRoute, linkOptions } from "@tanstack/react-router";++import { PamAccountByIDPage } from "./PamAccountByIDPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId"+)({+ component: PamAccountByIDPage,+ beforeLoad: ({ context, params }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Accounts",+ link: linkOptions({+ to: "/organizations/$orgId/projects/pam/$projectId/accounts",+ params: { orgId: params.orgId, projectId: params.projectId }+ })+ },+ {+ label: "Account Details"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamDeleteAccountModal.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamDeleteAccountModal.tsxindex c094d3c53f..734c3a69f8 100644--- a/frontend/src/pages/pam/PamAccountsPage/components/PamDeleteAccountModal.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamDeleteAccountModal.tsx@@ -6,9 +6,10 @@ type Props = {account?: TPamAccount;isOpen: boolean;onOpenChange: (isOpen: boolean) => void;+ onDeleted?: () => void;};-export const PamDeleteAccountModal = ({ isOpen, onOpenChange, account }: Props) => {+export const PamDeleteAccountModal = ({ isOpen, onOpenChange, account, onDeleted }: Props) => {const deletePamAccount = useDeletePamAccount();if (!account) return null;@@ -31,6 +32,7 @@ export const PamDeleteAccountModal = ({ isOpen, onOpenChange, account }: Props)});onOpenChange(false);+ if (onDeleted) onDeleted();};return (diff --git a/frontend/src/pages/pam/PamAccountsPage/route.tsx b/frontend/src/pages/pam/PamAccountsPage/route.tsxindex c9b9c68e4d..2cec10245b 100644--- a/frontend/src/pages/pam/PamAccountsPage/route.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/route.tsx@@ -13,7 +13,7 @@ const PamAccountsPageQueryParamsSchema = z.object({});export const Route = createFileRoute(- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts"+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/")({validateSearch: zodValidator(PamAccountsPageQueryParamsSchema),search: {diff --git a/frontend/src/pages/pam/PamResourceByIDPage/PamResourceByIDPage.tsx b/frontend/src/pages/pam/PamResourceByIDPage/PamResourceByIDPage.tsxnew file mode 100644index 0000000000..a015e45c25--- /dev/null+++ b/frontend/src/pages/pam/PamResourceByIDPage/PamResourceByIDPage.tsx@@ -0,0 +1,226 @@+import { useState } from "react";+import { Helmet } from "react-helmet";+import { faBan, faChevronLeft, faEllipsisV } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useParams } from "@tanstack/react-router";++import { createNotification } from "@app/components/notifications";+import { ProjectPermissionCan } from "@app/components/permissions";+import {+ Button,+ ContentLoader,+ DeleteActionModal,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ EmptyState,+ Tab,+ TabList,+ TabPanel,+ Tabs+} from "@app/components/v2";+import { ProjectPermissionActions, ProjectPermissionSub, useOrganization } from "@app/context";+import {+ PAM_RESOURCE_TYPE_MAP,+ PamResourceType,+ useDeletePamResource,+ useGetPamResourceById+} from "@app/hooks/api/pam";++import { PamUpdateResourceModal } from "../PamResourcesPage/components/PamUpdateResourceModal";+import {+ PamResourceAccountsSection,+ PamResourceConnectionSection,+ PamResourceDetailsSection+} from "./components";++const PageContent = () => {+ const navigate = useNavigate();+ const { currentOrg } = useOrganization();+ const params = useParams({+ strict: false+ }) as { resourceId?: string; resourceType?: string; projectId?: string; orgId?: string };++ const { resourceId, resourceType, projectId } = params;++ const [isEditModalOpen, setIsEditModalOpen] = useState(false);+ const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);++ const { data: resource, isPending } = useGetPamResourceById(+ resourceType as PamResourceType,+ resourceId,+ {+ enabled: Boolean(resourceId) && Boolean(resourceType)+ }+ );++ const deleteResource = useDeletePamResource();++ if (isPending) {+ return (+ <div className="flex h-full w-full items-center justify-center">+ <ContentLoader />+ </div>+ );+ }++ if (!resource) {+ return (+ <div className="flex h-full w-full items-center justify-center px-20">+ <EmptyState+ className="max-w-2xl rounded-md text-center"+ icon={faBan}+ title={`Could not find PAM Resource with ID ${resourceId}`}+ />+ </div>+ );+ }++ const resourceTypeInfo = PAM_RESOURCE_TYPE_MAP[resource.resourceType];++ const handleBack = () => {+ navigate({+ to: "/organizations/$orgId/projects/pam/$projectId/resources",+ params: { orgId: currentOrg.id, projectId: projectId! }+ });+ };++ const handleDeleteConfirm = async () => {+ if (!resource) return;++ try {+ await deleteResource.mutateAsync({+ resourceId: resource.id,+ resourceType: resource.resourceType+ });+ createNotification({+ text: `Resource "${resource.name}" deleted successfully`,+ type: "success"+ });+ handleBack();+ } catch (error) {+ console.error("Failed to delete resource:", error);+ createNotification({+ text: "Failed to delete resource",+ type: "error"+ });+ }+ };++ return (+ <div className="container mx-auto flex max-w-7xl flex-col px-6 py-6 text-mineshaft-50">+ <button+ type="button"+ onClick={handleBack}+ className="mb-4 flex items-center gap-1 text-sm text-bunker-300 hover:text-primary-400"+ >+ <FontAwesomeIcon icon={faChevronLeft} className="text-xs" />+ Resources+ </button>++ <div className="mb-6 flex items-center justify-between">+ <div className="flex items-center gap-4">+ <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-mineshaft-700">+ <img+ alt={resourceTypeInfo.name}+ src={`/images/integrations/${resourceTypeInfo.image}`}+ className="size-6"+ />+ </div>+ <div>+ <h1 className="text-2xl font-semibold text-mineshaft-100">{resource.name}</h1>+ <p className="text-sm text-bunker-300">{resourceTypeInfo.name} Resource</p>+ </div>+ </div>+ <div className="flex items-center gap-3">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" colorSchema="secondary">+ <FontAwesomeIcon icon={faEllipsisV} />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" sideOffset={2}>+ <ProjectPermissionCan+ I={ProjectPermissionActions.Edit}+ a={ProjectPermissionSub.PamResources}+ >+ {(isAllowed) => (+ <DropdownMenuItem+ onClick={() => setIsEditModalOpen(true)}+ isDisabled={!isAllowed}+ >+ Edit Resource+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ <ProjectPermissionCan+ I={ProjectPermissionActions.Delete}+ a={ProjectPermissionSub.PamResources}+ >+ {(isAllowed) => (+ <DropdownMenuItem+ onClick={() => setIsDeleteModalOpen(true)}+ className="text-red-500"+ isDisabled={!isAllowed}+ >+ Delete Resource+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </div>++ <div className="flex gap-6">+ {/* Left Column */}+ <div className="flex w-80 flex-col gap-4">+ <PamResourceDetailsSection resource={resource} onEdit={() => setIsEditModalOpen(true)} />+ <PamResourceConnectionSection+ resource={resource}+ onEdit={() => setIsEditModalOpen(true)}+ />+ </div>++ {/* Right Column - Tabbed Content */}+ <div className="flex-1">+ <Tabs defaultValue="accounts">+ <TabList>+ <Tab value="accounts">Accounts</Tab>+ </TabList>+ <TabPanel value="accounts">+ <PamResourceAccountsSection resource={resource} />+ </TabPanel>+ </Tabs>+ </div>+ </div>++ <PamUpdateResourceModal+ isOpen={isEditModalOpen}+ onOpenChange={setIsEditModalOpen}+ resource={resource}+ />++ <DeleteActionModal+ isOpen={isDeleteModalOpen}+ title={`Delete Resource ${resource.name}?`}+ onChange={(isOpen) => setIsDeleteModalOpen(isOpen)}+ deleteKey={resource.name}+ onDeleteApproved={handleDeleteConfirm}+ />+ </div>+ );+};++export const PamResourceByIDPage = () => {+ return (+ <>+ <Helmet>+ <title>PAM Resource | Infisical</title>+ <link rel="icon" href="/infisical.ico" />+ </Helmet>+ <PageContent />+ </>+ );+};diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsxnew file mode 100644index 0000000000..8550b0b862--- /dev/null+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx@@ -0,0 +1,372 @@+import { useCallback } from "react";+import {+ faCheck,+ faCopy,+ faEdit,+ faEllipsisV,+ faPlus,+ faRightToBracket,+ faRotate,+ faTrash+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useNavigate, useParams } from "@tanstack/react-router";+import { format, formatDistance } from "date-fns";++import { createNotification } from "@app/components/notifications";+import { ProjectPermissionCan } from "@app/components/permissions";+import {+ Button,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ EmptyState,+ IconButton,+ Table,+ TableContainer,+ TBody,+ Td,+ Th,+ THead,+ Tooltip,+ Tr+} from "@app/components/v2";+import { Badge } from "@app/components/v3";+import { ProjectPermissionSub, useOrganization } from "@app/context";+import { ProjectPermissionPamAccountActions } from "@app/context/ProjectPermissionContext/types";+import { usePopUp, useToggle } from "@app/hooks";+import { ApprovalPolicyType, useCheckPolicyMatch } from "@app/hooks/api/approvalPolicies";+import { PamResourceType, TPamAccount, TPamResource, useListPamAccounts } from "@app/hooks/api/pam";++import { PamAccessAccountModal } from "../../PamAccountsPage/components/PamAccessAccountModal";+import { PamAddAccountModal } from "../../PamAccountsPage/components/PamAddAccountModal";+import { PamDeleteAccountModal } from "../../PamAccountsPage/components/PamDeleteAccountModal";+import { PamRequestAccountAccessModal } from "../../PamAccountsPage/components/PamRequestAccountAccessModal";+import { PamUpdateAccountModal } from "../../PamAccountsPage/components/PamUpdateAccountModal";+import { useAccessAwsIamAccount } from "../../PamAccountsPage/components/useAccessAwsIamAccount";++type Props = {+ resource: TPamResource;+};++export const PamResourceAccountsSection = ({ resource }: Props) => {+ const navigate = useNavigate();+ const { currentOrg } = useOrganization();+ const params = useParams({ strict: false }) as { projectId?: string };+ const { projectId } = params;++ const { accessAwsIam, loadingAccountId } = useAccessAwsIamAccount();+ const { mutateAsync: checkPolicyMatch } = useCheckPolicyMatch();++ const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp([+ "addAccount",+ "accessAccount",+ "requestAccount",+ "updateAccount",+ "deleteAccount"+ ] as const);++ const { data: accountsData, isPending } = useListPamAccounts({+ projectId: projectId!,+ filterResourceIds: resource.id+ });++ const accounts = accountsData?.accounts || [];+ const folderPaths = accountsData?.folderPaths || {};++ const [copiedAccountId, setCopiedAccountId] = useToggle(false);++ const handleCopyId = useCallback(+ (id: string) => {+ setCopiedAccountId.on();+ navigator.clipboard.writeText(id);++ createNotification({+ text: "Account ID copied to clipboard",+ type: "info"+ });++ setTimeout(() => setCopiedAccountId.off(), 2000);+ },+ [setCopiedAccountId]+ );++ const handleAccountClick = (account: TPamAccount) => {+ navigate({+ to: "/organizations/$orgId/projects/pam/$projectId/accounts/$accountId",+ params: { orgId: currentOrg.id, projectId: projectId!, accountId: account.id }+ });+ };++ 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: projectId!,+ inputs: {+ accountPath: fullAccountPath+ }+ });++ if (requiresApproval) {+ handlePopUpOpen("requestAccount", { accountPath: fullAccountPath, accountAccessed: true });+ return;+ }++ if (account.resource.resourceType === PamResourceType.AwsIam) {+ accessAwsIam(account, fullAccountPath);+ } else {+ handlePopUpOpen("accessAccount", { account, accountPath: folderPath });+ }+ };++ return (+ <div className="rounded-lg border border-mineshaft-600 bg-mineshaft-900">+ <div className="flex items-center justify-between border-b border-mineshaft-600 px-4 py-3">+ <div>+ <h3 className="text-lg font-medium text-mineshaft-100">Accounts</h3>+ <p className="text-sm text-bunker-300">+ Accounts associated with this resource that can be used for access+ </p>+ </div>+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Create}+ a={ProjectPermissionSub.PamAccounts}+ >+ {(isAllowed) => (+ <Button+ variant="outline_bg"+ size="sm"+ leftIcon={<FontAwesomeIcon icon={faPlus} />}+ isDisabled={!isAllowed}+ onClick={() => handlePopUpOpen("addAccount")}+ >+ Add Account+ </Button>+ )}+ </ProjectPermissionCan>+ </div>+ <div className="p-4">+ <TableContainer>+ <Table>+ <THead>+ <Tr>+ <Th>Account Name</Th>+ <Th>Rotation</Th>+ <Th>Created</Th>+ <Th className="w-5" />+ </Tr>+ </THead>+ <TBody>+ {isPending && (+ <Tr>+ <Td colSpan={4} className="text-center text-mineshaft-400">+ Loading accounts...+ </Td>+ </Tr>+ )}+ {!isPending && accounts.length === 0 && (+ <Tr>+ <Td colSpan={4}>+ <EmptyState title="No accounts found" className="py-8" />+ </Td>+ </Tr>+ )}+ {accounts.map((account) => {+ const isAwsIamAccount = resource.resourceType === PamResourceType.AwsIam;+ const rotationEnabled = !isAwsIamAccount+ ? (account as { rotationEnabled?: boolean }).rotationEnabled+ : undefined;+ const rotationStatus = !isAwsIamAccount+ ? (account as { rotationStatus?: string | null }).rotationStatus+ : undefined;+ const lastRotatedAt = !isAwsIamAccount+ ? (account as { lastRotatedAt?: string | null }).lastRotatedAt+ : undefined;+ const lastRotationMessage = !isAwsIamAccount+ ? (account as { lastRotationMessage?: string | null }).lastRotationMessage+ : undefined;++ return (+ <Tr+ key={account.id}+ className="group cursor-pointer hover:bg-mineshaft-700"+ onClick={() => handleAccountClick(account)}+ >+ <Td>+ <div className="flex flex-col">+ <div className="flex items-center gap-3">+ <span className="font-medium text-mineshaft-100">{account.name}</span>+ {lastRotatedAt && (+ <Tooltip+ className="max-w-sm text-center"+ isDisabled={!lastRotationMessage}+ content={lastRotationMessage}+ >+ <Badge+ variant={rotationStatus === "failed" ? "danger" : "success"}+ className="text-xs"+ >+ <FontAwesomeIcon icon={faRotate} />+ <span>+ Rotated {formatDistance(new Date(), new Date(lastRotatedAt))} ago+ </span>+ </Badge>+ </Tooltip>+ )}+ </div>+ {account.description && (+ <Tooltip content={account.description}>+ <span className="line-clamp-1 text-xs text-mineshaft-400">+ {account.description}+ </span>+ </Tooltip>+ )}+ </div>+ </Td>+ <Td>+ {isAwsIamAccount ? (+ <Badge variant="neutral" className="text-xs">+ N/A+ </Badge>+ ) : (+ <Badge+ variant={rotationEnabled ? "success" : "neutral"}+ className="text-xs"+ >+ {rotationEnabled ? "Enabled" : "Disabled"}+ </Badge>+ )}+ </Td>+ <Td className="text-mineshaft-300">+ {format(new Date(account.createdAt), "yyyy-MM-dd")}+ </Td>+ <Td>+ <div className="flex items-center gap-2">+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Access}+ a={ProjectPermissionSub.PamAccounts}+ >+ <Button+ colorSchema="secondary"+ leftIcon={<FontAwesomeIcon icon={faRightToBracket} />}+ onClick={(e) => {+ e.stopPropagation();+ accessAccount(account);+ }}+ size="xs"+ isLoading={loadingAccountId === account.id}+ isDisabled={loadingAccountId === account.id}+ >+ Connect+ </Button>+ </ProjectPermissionCan>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton+ ariaLabel="Options"+ colorSchema="secondary"+ className="w-6"+ variant="plain"+ >+ <FontAwesomeIcon icon={faEllipsisV} />+ </IconButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent sideOffset={2} align="end">+ <DropdownMenuItem+ icon={<FontAwesomeIcon icon={copiedAccountId ? faCheck : faCopy} />}+ onClick={(e) => {+ e.stopPropagation();+ handleCopyId(account.id);+ }}+ >+ Copy Account ID+ </DropdownMenuItem>+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Edit}+ a={ProjectPermissionSub.PamAccounts}+ >+ {(isAllowed: boolean) => (+ <DropdownMenuItem+ isDisabled={!isAllowed}+ icon={<FontAwesomeIcon icon={faEdit} />}+ onClick={(e) => {+ e.stopPropagation();+ handlePopUpOpen("updateAccount", account);+ }}+ >+ Edit Account+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ <ProjectPermissionCan+ I={ProjectPermissionPamAccountActions.Delete}+ a={ProjectPermissionSub.PamAccounts}+ >+ {(isAllowed: boolean) => (+ <DropdownMenuItem+ isDisabled={!isAllowed}+ icon={<FontAwesomeIcon icon={faTrash} />}+ onClick={(e) => {+ e.stopPropagation();+ handlePopUpOpen("deleteAccount", account);+ }}+ >+ Delete Account+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </Td>+ </Tr>+ );+ })}+ </TBody>+ </Table>+ </TableContainer>+ </div>++ <PamAddAccountModal+ isOpen={popUp.addAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("addAccount", isOpen)}+ projectId={projectId!}+ currentFolderId={null}+ />++ <PamAccessAccountModal+ isOpen={popUp.accessAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("accessAccount", isOpen)}+ account={popUp.accessAccount.data?.account}+ accountPath={popUp.accessAccount.data?.accountPath}+ projectId={projectId!}+ />++ <PamRequestAccountAccessModal+ isOpen={popUp.requestAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("requestAccount", isOpen)}+ accountPath={popUp.requestAccount.data?.accountPath}+ accountAccessed={popUp.requestAccount.data?.accountAccessed}+ />++ <PamUpdateAccountModal+ isOpen={popUp.updateAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("updateAccount", isOpen)}+ account={popUp.updateAccount.data}+ />++ <PamDeleteAccountModal+ isOpen={popUp.deleteAccount.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("deleteAccount", isOpen)}+ account={popUp.deleteAccount.data}+ />+ </div>+ );+};diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsxnew file mode 100644index 0000000000..35c6714a67--- /dev/null+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceConnectionSection.tsx@@ -0,0 +1,151 @@+import { faCheck, faEdit, faLock, faUnlock } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useQuery } from "@tanstack/react-query";++import { ProjectPermissionCan } from "@app/components/permissions";+import { GenericFieldLabel, IconButton } from "@app/components/v2";+import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context";+import { gatewaysQueryKeys } from "@app/hooks/api";+import { PamResourceType, TPamResource } from "@app/hooks/api/pam";++type Props = {+ resource: TPamResource;+};++const SSLStatusBadge = ({ enabled }: { enabled: boolean }) => (+ <div className="flex items-center gap-2">+ <FontAwesomeIcon+ icon={enabled ? faLock : faUnlock}+ className={enabled ? "text-green-500" : "text-yellow-500"}+ />+ <span>{enabled ? "Enabled" : "Disabled"}</span>+ </div>+);++const SqlConnectionDetails = ({+ connectionDetails+}: {+ connectionDetails: { host: string; port: number; database: string; sslEnabled: boolean };+}) => (+ <>+ <GenericFieldLabel label="Host">{connectionDetails.host}</GenericFieldLabel>+ <GenericFieldLabel label="Port">{connectionDetails.port}</GenericFieldLabel>+ <GenericFieldLabel label="Database">{connectionDetails.database}</GenericFieldLabel>+ <GenericFieldLabel label="SSL">+ <SSLStatusBadge enabled={connectionDetails.sslEnabled} />+ </GenericFieldLabel>+ </>+);++const SSHConnectionDetails = ({+ connectionDetails+}: {+ connectionDetails: { host: string; port: number };+}) => (+ <>+ <GenericFieldLabel label="Host">{connectionDetails.host}</GenericFieldLabel>+ <GenericFieldLabel label="Port">{connectionDetails.port}</GenericFieldLabel>+ </>+);++const RedisConnectionDetails = ({+ connectionDetails+}: {+ connectionDetails: { host: string; port: number; sslEnabled: boolean };+}) => (+ <>+ <GenericFieldLabel label="Host">{connectionDetails.host}</GenericFieldLabel>+ <GenericFieldLabel label="Port">{connectionDetails.port}</GenericFieldLabel>+ <GenericFieldLabel label="SSL">+ <SSLStatusBadge enabled={connectionDetails.sslEnabled} />+ </GenericFieldLabel>+ </>+);++const KubernetesConnectionDetails = ({+ connectionDetails+}: {+ connectionDetails: { url: string; sslRejectUnauthorized: boolean };+}) => (+ <>+ <GenericFieldLabel label="API URL" truncate>+ {connectionDetails.url}+ </GenericFieldLabel>+ <GenericFieldLabel label="Verify SSL">+ <div className="flex items-center gap-2">+ <FontAwesomeIcon+ icon={connectionDetails.sslRejectUnauthorized ? faCheck : faUnlock}+ className={connectionDetails.sslRejectUnauthorized ? "text-green-500" : "text-yellow-500"}+ />+ <span>{connectionDetails.sslRejectUnauthorized ? "Yes" : "No"}</span>+ </div>+ </GenericFieldLabel>+ </>+);++const AwsIamConnectionDetails = ({+ connectionDetails+}: {+ connectionDetails: { roleArn: string };+}) => (+ <GenericFieldLabel label="Role ARN" truncate>+ {connectionDetails.roleArn}+ </GenericFieldLabel>+);++const ConnectionDetailsContent = ({ resource }: Props) => {+ switch (resource.resourceType) {+ case PamResourceType.Postgres:+ case PamResourceType.MySQL:+ return <SqlConnectionDetails connectionDetails={resource.connectionDetails} />;+ case PamResourceType.SSH:+ return <SSHConnectionDetails connectionDetails={resource.connectionDetails} />;+ case PamResourceType.Redis:+ return <RedisConnectionDetails connectionDetails={resource.connectionDetails} />;+ case PamResourceType.Kubernetes:+ return <KubernetesConnectionDetails connectionDetails={resource.connectionDetails} />;+ case PamResourceType.AwsIam:+ return <AwsIamConnectionDetails connectionDetails={resource.connectionDetails} />;+ default:+ return null;+ }+};++export const PamResourceConnectionSection = ({+ resource,+ onEdit+}: Props & { onEdit: VoidFunction }) => {+ const { data: gateways } = useQuery(gatewaysQueryKeys.list());++ const gateway = gateways?.find((g) => g.id === resource.gatewayId);++ return (+ <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">+ <h3 className="text-lg font-medium text-mineshaft-100">Connection</h3>+ <ProjectPermissionCan+ I={ProjectPermissionActions.Edit}+ a={ProjectPermissionSub.PamResources}+ >+ {(isAllowed) => (+ <IconButton+ variant="plain"+ colorSchema="secondary"+ ariaLabel="Edit resource details"+ onClick={onEdit}+ isDisabled={!isAllowed}+ >+ <FontAwesomeIcon icon={faEdit} />+ </IconButton>+ )}+ </ProjectPermissionCan>+ </div>+ <div className="space-y-3">+ {resource.gatewayId && (+ <GenericFieldLabel label="Gateway">{gateway?.name ?? "Unknown"}</GenericFieldLabel>+ )}+ <ConnectionDetailsContent resource={resource} />+ </div>+ </div>+ );+};diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceDetailsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceDetailsSection.tsxnew file mode 100644index 0000000000..a84271c40d--- /dev/null+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceDetailsSection.tsx@@ -0,0 +1,57 @@+import { faEdit } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { format } from "date-fns";++import { ProjectPermissionCan } from "@app/components/permissions";+import { GenericFieldLabel, IconButton } from "@app/components/v2";+import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context";+import { PAM_RESOURCE_TYPE_MAP, TPamResource } from "@app/hooks/api/pam";++type Props = {+ resource: TPamResource;+ onEdit: VoidFunction;+};++export const PamResourceDetailsSection = ({ resource, onEdit }: Props) => {+ const resourceTypeInfo = PAM_RESOURCE_TYPE_MAP[resource.resourceType];++ return (+ <div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3">+ <div className="flex items-center justify-between border-b border-mineshaft-400 pb-2">+ <h3 className="text-lg font-medium text-mineshaft-100">Details</h3>+ <ProjectPermissionCan+ I={ProjectPermissionActions.Edit}+ a={ProjectPermissionSub.PamResources}+ >+ {(isAllowed) => (+ <IconButton+ variant="plain"+ colorSchema="secondary"+ ariaLabel="Edit resource details"+ onClick={onEdit}+ isDisabled={!isAllowed}+ >+ <FontAwesomeIcon icon={faEdit} />+ </IconButton>+ )}+ </ProjectPermissionCan>+ </div>+ <div className="space-y-3">+ <GenericFieldLabel label="Name">{resource.name}</GenericFieldLabel>+ <GenericFieldLabel label="Type">+ <div className="flex items-center gap-2">+ <img+ alt={resourceTypeInfo.name}+ src={`/images/integrations/${resourceTypeInfo.image}`}+ className="size-4"+ />+ {resourceTypeInfo.name}+ </div>+ </GenericFieldLabel>+ <GenericFieldLabel label="Created">+ {format(new Date(resource.createdAt), "yyyy-MM-dd, hh:mm aaa")}+ </GenericFieldLabel>+ </div>+ </div>+ );+};diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/index.ts b/frontend/src/pages/pam/PamResourceByIDPage/components/index.tsnew file mode 100644index 0000000000..9df37d07ff--- /dev/null+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/index.ts@@ -0,0 +1,3 @@+export { PamResourceAccountsSection } from "./PamResourceAccountsSection";+export { PamResourceConnectionSection } from "./PamResourceConnectionSection";+export { PamResourceDetailsSection } from "./PamResourceDetailsSection";diff --git a/frontend/src/pages/pam/PamResourceByIDPage/route.tsx b/frontend/src/pages/pam/PamResourceByIDPage/route.tsxnew file mode 100644index 0000000000..9ed38a8d71--- /dev/null+++ b/frontend/src/pages/pam/PamResourceByIDPage/route.tsx@@ -0,0 +1,26 @@+import { createFileRoute, linkOptions } from "@tanstack/react-router";++import { PamResourceByIDPage } from "./PamResourceByIDPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId"+)({+ component: PamResourceByIDPage,+ beforeLoad: ({ context, params }) => {+ return {+ breadcrumbs: [+ ...context.breadcrumbs,+ {+ label: "Resources",+ link: linkOptions({+ to: "/organizations/$orgId/projects/pam/$projectId/resources",+ params: { orgId: params.orgId, projectId: params.projectId }+ })+ },+ {+ label: "Resource Details"+ }+ ]+ };+ }+});diff --git a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceRow.tsx b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceRow.tsxindex 8ffa6b4311..9e67638b46 100644--- a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceRow.tsx+++ b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceRow.tsx@@ -1,6 +1,6 @@import { faCheck, faCopy, faEdit, faEllipsisV, faTrash } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { twMerge } from "tailwind-merge";+import { useNavigate } from "@tanstack/react-router";import { createNotification } from "@app/components/notifications";import { ProjectPermissionCan } from "@app/components/permissions";@@ -16,7 +16,7 @@ import {} from "@app/components/v2";import { HighlightText } from "@app/components/v2/HighlightText";import { Badge } from "@app/components/v3";-import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context";+import { ProjectPermissionActions, ProjectPermissionSub, useOrganization } from "@app/context";import { useToggle } from "@app/hooks";import { PAM_RESOURCE_TYPE_MAP, TPamResource } from "@app/hooks/api/pam";@@ -28,7 +28,10 @@ type Props = {};export const PamResourceRow = ({ resource, onUpdate, onDelete, search }: Props) => {- const { id, name, resourceType } = resource;+ const navigate = useNavigate();++ const { id, name, resourceType, projectId } = resource;+ const { currentOrg } = useOrganization();const { image, name: resourceTypeName } = PAM_RESOURCE_TYPE_MAP[resourceType];@@ -47,7 +50,20 @@ export const PamResourceRow = ({ resource, onUpdate, onDelete, search }: Props)};return (- <Tr className={twMerge("group h-10")}>+ <Tr+ className="group h-10 cursor-pointer hover:bg-mineshaft-700"+ onClick={() =>+ navigate({+ to: "/organizations/$orgId/projects/pam/$projectId/resources/$resourceType/$resourceId",+ params: {+ orgId: currentOrg.id,+ projectId,+ resourceType,+ resourceId: id+ }+ })+ }+ ><Td><div className="flex items-center gap-4"><div className="relative">@@ -72,6 +88,7 @@ export const PamResourceRow = ({ resource, onUpdate, onDelete, search }: Props)colorSchema="secondary"className="w-6"variant="plain"+ onClick={(e) => e.stopPropagation()}><FontAwesomeIcon icon={faEllipsisV} /></IconButton>@@ -94,7 +111,10 @@ export const PamResourceRow = ({ resource, onUpdate, onDelete, search }: Props)<DropdownMenuItemisDisabled={!isAllowed}icon={<FontAwesomeIcon icon={faEdit} />}- onClick={() => onUpdate(resource)}+ onClick={(e) => {+ e.stopPropagation();+ onUpdate(resource);+ }}>Edit Resource</DropdownMenuItem>@@ -108,7 +128,10 @@ export const PamResourceRow = ({ resource, onUpdate, onDelete, search }: Props)<DropdownMenuItemisDisabled={!isAllowed}icon={<FontAwesomeIcon icon={faTrash} />}- onClick={() => onDelete(resource)}+ onClick={(e) => {+ e.stopPropagation();+ onDelete(resource);+ }}>Delete Resource</DropdownMenuItem>diff --git a/frontend/src/pages/pam/PamResourcesPage/route.tsx b/frontend/src/pages/pam/PamResourcesPage/route.tsxindex 797d873c9a..2889c165c0 100644--- a/frontend/src/pages/pam/PamResourcesPage/route.tsx+++ b/frontend/src/pages/pam/PamResourcesPage/route.tsx@@ -5,7 +5,7 @@ import { z } from "zod";import { PamResourcesPage } from "./PamResourcesPage";export const Route = createFileRoute(- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources"+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/")({validateSearch: zodValidator(z.object({diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.tsindex e6fe61ba27..56d27c21bf 100644--- a/frontend/src/routeTree.gen.ts+++ b/frontend/src/routeTree.gen.ts@@ -115,9 +115,7 @@ import { Route as secretManagerOverviewPageRouteImport } from './pages/secret-maimport { Route as secretManagerSecretApprovalsPageRouteImport } from './pages/secret-manager/SecretApprovalsPage/route'import { Route as secretManagerIPAllowlistPageRouteImport } from './pages/secret-manager/IPAllowlistPage/route'import { Route as pamSettingsPageRouteImport } from './pages/pam/SettingsPage/route'-import { Route as pamPamResourcesPageRouteImport } from './pages/pam/PamResourcesPage/route'import { Route as pamApprovalsPageRouteImport } from './pages/pam/ApprovalsPage/route'-import { Route as pamPamAccountsPageRouteImport } from './pages/pam/PamAccountsPage/route'import { Route as kmsSettingsPageRouteImport } from './pages/kms/SettingsPage/route'import { Route as kmsOverviewPageRouteImport } from './pages/kms/OverviewPage/route'import { Route as kmsKmipPageRouteImport } from './pages/kms/KmipPage/route'@@ -164,6 +162,7 @@ import { Route as secretManagerIntegrationsSelectIntegrationAuthPageRouteImportimport { Route as secretManagerIntegrationsDetailsByIDPageRouteImport } from './pages/secret-manager/IntegrationsDetailsByIDPage/route'import { Route as pamPamSessionsByIDPageRouteImport } from './pages/pam/PamSessionsByIDPage/route'import { Route as pamApprovalRequestDetailPageRouteImport } from './pages/pam/ApprovalRequestDetailPage/route'+import { Route as pamPamAccountByIDPageRouteImport } from './pages/pam/PamAccountByIDPage/route'import { Route as certManagerPkiSubscriberDetailsByIDPageRouteImport } from './pages/cert-manager/PkiSubscriberDetailsByIDPage/route'import { Route as certManagerPkiSyncDetailsByIDPageRouteImport } from './pages/cert-manager/PkiSyncDetailsByIDPage/route'import { Route as certManagerCertificateDetailsByIDPageRouteImport } from './pages/cert-manager/CertificateDetailsByIDPage/route'@@ -174,6 +173,8 @@ import { Route as aiMCPEndpointDetailPageRouteImport } from './pages/ai/MCPEndpoimport { Route as secretScanningSecretScanningDataSourcesPageRouteImport } from './pages/secret-scanning/SecretScanningDataSourcesPage/route'import { Route as secretManagerIntegrationsListPageRouteImport } from './pages/secret-manager/IntegrationsListPage/route'import { Route as pamPamSessionsPageRouteImport } from './pages/pam/PamSessionsPage/route'+import { Route as pamPamResourcesPageRouteImport } from './pages/pam/PamResourcesPage/route'+import { Route as pamPamAccountsPageRouteImport } from './pages/pam/PamAccountsPage/route'import { Route as certManagerPkiSubscribersPageRouteImport } from './pages/cert-manager/PkiSubscribersPage/route'import { Route as certManagerIntegrationsListPageRouteImport } from './pages/cert-manager/IntegrationsListPage/route'import { Route as certManagerPkiTemplateListPageRouteImport } from './pages/cert-manager/PkiTemplateListPage/route'@@ -243,6 +244,7 @@ import { Route as secretManagerIntegrationsAwsSecretManagerConfigurePageRouteImpimport { Route as secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route'import { Route as secretManagerIntegrationsAwsParameterStoreConfigurePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route'import { Route as secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route'+import { Route as pamPamResourceByIDPageRouteImport } from './pages/pam/PamResourceByIDPage/route'import { Route as secretManagerIntegrationsVercelOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/VercelOauthCallbackPage/route'import { Route as secretManagerSecretSyncDetailsByIDPageRouteImport } from './pages/secret-manager/SecretSyncDetailsByIDPage/route'import { Route as secretManagerIntegrationsNetlifyOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/NetlifyOauthCallbackPage/route'@@ -342,6 +344,14 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIcreateFileRoute('/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions',)()+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesImport =+ createFileRoute(+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources',+ )()+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsImport =+ createFileRoute(+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts',+ )()const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersImport =createFileRoute('/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers',@@ -1115,6 +1125,15 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectI} as any,)+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRoute =+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesImport.update(+ {+ id: '/resources',+ path: '/resources',+ getParentRoute: () => pamLayoutRoute,+ } as any,+ )+const projectAuditLogsPageRoutePamRoute =projectAuditLogsPageRoutePamImport.update({id: '/audit-logs',@@ -1122,6 +1141,15 @@ const projectAuditLogsPageRoutePamRoute =getParentRoute: () => pamLayoutRoute,} as any)+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRoute =+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsImport.update(+ {+ id: '/accounts',+ path: '/accounts',+ getParentRoute: () => pamLayoutRoute,+ } as any,+ )+const projectAccessControlPageRoutePamRoute =projectAccessControlPageRoutePamImport.update({id: '/access-management',@@ -1284,24 +1312,12 @@ const pamSettingsPageRouteRoute = pamSettingsPageRouteImport.update({getParentRoute: () => pamLayoutRoute,} as any)-const pamPamResourcesPageRouteRoute = pamPamResourcesPageRouteImport.update({- id: '/resources',- path: '/resources',- getParentRoute: () => pamLayoutRoute,-} as any)-const pamApprovalsPageRouteRoute = pamApprovalsPageRouteImport.update({id: '/approvals',path: '/approvals',getParentRoute: () => pamLayoutRoute,} as any)-const pamPamAccountsPageRouteRoute = pamPamAccountsPageRouteImport.update({- id: '/accounts',- path: '/accounts',- getParentRoute: () => pamLayoutRoute,-} as any)-const kmsSettingsPageRouteRoute = kmsSettingsPageRouteImport.update({id: '/settings',path: '/settings',@@ -1621,6 +1637,15 @@ const pamApprovalRequestDetailPageRouteRoute =getParentRoute: () => pamLayoutRoute,} as any)+const pamPamAccountByIDPageRouteRoute = pamPamAccountByIDPageRouteImport.update(+ {+ id: '/$accountId',+ path: '/$accountId',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRoute,+ } as any,+)+const certManagerPkiSubscriberDetailsByIDPageRouteRoute =certManagerPkiSubscriberDetailsByIDPageRouteImport.update({id: '/$subscriberName',@@ -1696,6 +1721,20 @@ const pamPamSessionsPageRouteRoute = pamPamSessionsPageRouteImport.update({AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRoute,} as any)+const pamPamResourcesPageRouteRoute = pamPamResourcesPageRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRoute,+} as any)++const pamPamAccountsPageRouteRoute = pamPamAccountsPageRouteImport.update({+ id: '/',+ path: '/',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRoute,+} as any)+const certManagerPkiSubscribersPageRouteRoute =certManagerPkiSubscribersPageRouteImport.update({id: '/',@@ -2263,6 +2302,14 @@ const secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute =AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutIntegrationsRoute,} as any)+const pamPamResourceByIDPageRouteRoute =+ pamPamResourceByIDPageRouteImport.update({+ id: '/$resourceType/$resourceId',+ path: '/$resourceType/$resourceId',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRoute,+ } as any)+const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdCommitIdRoute =AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretManagementProjectIdSecretManagerLayoutCommitsEnvironmentFolderIdCommitIdImport.update({@@ -3097,13 +3144,6 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof kmsSettingsPageRouteImportparentRoute: typeof kmsLayoutImport}- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts': {- id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts'- path: '/accounts'- fullPath: '/organizations/$orgId/projects/pam/$projectId/accounts'- preLoaderRoute: typeof pamPamAccountsPageRouteImport- parentRoute: typeof pamLayoutImport- }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals'path: '/approvals'@@ -3111,13 +3151,6 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof pamApprovalsPageRouteImportparentRoute: typeof pamLayoutImport}- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources': {- id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources'- path: '/resources'- fullPath: '/organizations/$orgId/projects/pam/$projectId/resources'- preLoaderRoute: typeof pamPamResourcesPageRouteImport- parentRoute: typeof pamLayoutImport- }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/settings': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/settings'path: '/settings'@@ -3279,6 +3312,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAccessControlPageRoutePamImportparentRoute: typeof pamLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts'+ path: '/accounts'+ fullPath: '/organizations/$orgId/projects/pam/$projectId/accounts'+ preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsImport+ parentRoute: typeof pamLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/audit-logs': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/audit-logs'path: '/audit-logs'@@ -3286,6 +3326,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectAuditLogsPageRoutePamImportparentRoute: typeof pamLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources'+ path: '/resources'+ fullPath: '/organizations/$orgId/projects/pam/$projectId/resources'+ preLoaderRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesImport+ parentRoute: typeof pamLayoutImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions'path: '/sessions'@@ -3384,6 +3431,20 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof certManagerPkiSubscribersPageRouteImportparentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/'+ path: '/'+ fullPath: '/organizations/$orgId/projects/pam/$projectId/accounts/'+ preLoaderRoute: typeof pamPamAccountsPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsImport+ }+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/'+ path: '/'+ fullPath: '/organizations/$orgId/projects/pam/$projectId/resources/'+ preLoaderRoute: typeof pamPamResourcesPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/'path: '/'@@ -3454,6 +3515,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof certManagerPkiSubscriberDetailsByIDPageRouteImportparentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId'+ path: '/$accountId'+ fullPath: '/organizations/$orgId/projects/pam/$projectId/accounts/$accountId'+ preLoaderRoute: typeof pamPamAccountByIDPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approval-requests/$approvalRequestId': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approval-requests/$approvalRequestId'path: '/approval-requests/$approvalRequestId'@@ -3706,6 +3774,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof projectRoleDetailsBySlugPageRouteSshImportparentRoute: typeof sshLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId'+ path: '/$resourceType/$resourceId'+ fullPath: '/organizations/$orgId/projects/pam/$projectId/resources/$resourceType/$resourceId'+ preLoaderRoute: typeof pamPamResourceByIDPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize'path: '/aws-parameter-store/authorize'@@ -4538,6 +4613,38 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRouteChildren,)+interface AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteChildren {+ pamPamAccountsPageRouteRoute: typeof pamPamAccountsPageRouteRoute+ pamPamAccountByIDPageRouteRoute: typeof pamPamAccountByIDPageRouteRoute+}++const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteChildren: AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteChildren =+ {+ pamPamAccountsPageRouteRoute: pamPamAccountsPageRouteRoute,+ pamPamAccountByIDPageRouteRoute: pamPamAccountByIDPageRouteRoute,+ }++const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteWithChildren =+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRoute._addFileChildren(+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteChildren,+ )++interface AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteChildren {+ pamPamResourcesPageRouteRoute: typeof pamPamResourcesPageRouteRoute+ pamPamResourceByIDPageRouteRoute: typeof pamPamResourceByIDPageRouteRoute+}++const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteChildren: AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteChildren =+ {+ pamPamResourcesPageRouteRoute: pamPamResourcesPageRouteRoute,+ pamPamResourceByIDPageRouteRoute: pamPamResourceByIDPageRouteRoute,+ }++const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteWithChildren =+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRoute._addFileChildren(+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteChildren,+ )+interface AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRouteChildren {pamPamSessionsPageRouteRoute: typeof pamPamSessionsPageRouteRoutepamPamSessionsByIDPageRouteRoute: typeof pamPamSessionsByIDPageRouteRoute@@ -4555,12 +4662,12 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectI)interface pamLayoutRouteChildren {- pamPamAccountsPageRouteRoute: typeof pamPamAccountsPageRouteRoutepamApprovalsPageRouteRoute: typeof pamApprovalsPageRouteRoute- pamPamResourcesPageRouteRoute: typeof pamPamResourcesPageRouteRoutepamSettingsPageRouteRoute: typeof pamSettingsPageRouteRouteprojectAccessControlPageRoutePamRoute: typeof projectAccessControlPageRoutePamRoute+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteWithChildrenprojectAuditLogsPageRoutePamRoute: typeof projectAuditLogsPageRoutePamRoute+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteWithChildrenAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRouteWithChildrenpamApprovalRequestDetailPageRouteRoute: typeof pamApprovalRequestDetailPageRouteRouteprojectGroupDetailsByIDPageRoutePamRoute: typeof projectGroupDetailsByIDPageRoutePamRoute@@ -4570,12 +4677,14 @@ interface pamLayoutRouteChildren {}const pamLayoutRouteChildren: pamLayoutRouteChildren = {- pamPamAccountsPageRouteRoute: pamPamAccountsPageRouteRoute,pamApprovalsPageRouteRoute: pamApprovalsPageRouteRoute,- pamPamResourcesPageRouteRoute: pamPamResourcesPageRouteRoute,pamSettingsPageRouteRoute: pamSettingsPageRouteRoute,projectAccessControlPageRoutePamRoute: projectAccessControlPageRoutePamRoute,+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRoute:+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteWithChildren,projectAuditLogsPageRoutePamRoute: projectAuditLogsPageRoutePamRoute,+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRoute:+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteWithChildren,AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRoute:AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRouteWithChildren,pamApprovalRequestDetailPageRouteRoute:@@ -5521,9 +5630,7 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/kms/$projectId/kmip': typeof kmsKmipPageRouteRoute'/organizations/$orgId/projects/kms/$projectId/overview': typeof kmsOverviewPageRouteRoute'/organizations/$orgId/projects/kms/$projectId/settings': typeof kmsSettingsPageRouteRoute- '/organizations/$orgId/projects/pam/$projectId/accounts': typeof pamPamAccountsPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/approvals': typeof pamApprovalsPageRouteRoute- '/organizations/$orgId/projects/pam/$projectId/resources': typeof pamPamResourcesPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/settings': typeof pamSettingsPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/allowlist': typeof secretManagerIPAllowlistPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/approval': typeof secretManagerSecretApprovalsPageRouteRoute@@ -5547,7 +5654,9 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/kms/$projectId/access-management': typeof projectAccessControlPageRouteKmsRoute'/organizations/$orgId/projects/kms/$projectId/audit-logs': typeof projectAuditLogsPageRouteKmsRoute'/organizations/$orgId/projects/pam/$projectId/access-management': typeof projectAccessControlPageRoutePamRoute+ '/organizations/$orgId/projects/pam/$projectId/accounts': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteWithChildren'/organizations/$orgId/projects/pam/$projectId/audit-logs': typeof projectAuditLogsPageRoutePamRoute+ '/organizations/$orgId/projects/pam/$projectId/resources': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteWithChildren'/organizations/$orgId/projects/pam/$projectId/sessions': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRouteWithChildren'/organizations/$orgId/projects/secret-management/$projectId/access-management': typeof projectAccessControlPageRouteSecretManagerRoute'/organizations/$orgId/projects/secret-management/$projectId/app-connections': typeof projectAppConnectionsPageRouteSecretManagerRoute@@ -5562,6 +5671,8 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/cert-manager/$projectId/certificate-templates/': typeof certManagerPkiTemplateListPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/integrations/': typeof certManagerIntegrationsListPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/subscribers/': typeof certManagerPkiSubscribersPageRouteRoute+ '/organizations/$orgId/projects/pam/$projectId/accounts/': typeof pamPamAccountsPageRouteRoute+ '/organizations/$orgId/projects/pam/$projectId/resources/': typeof pamPamResourcesPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/sessions/': typeof pamPamSessionsPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/': typeof secretManagerIntegrationsListPageRouteRoute'/organizations/$orgId/projects/secret-scanning/$projectId/data-sources/': typeof secretScanningSecretScanningDataSourcesPageRouteRoute@@ -5572,6 +5683,7 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId': typeof certManagerCertificateDetailsByIDPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/integrations/$syncId': typeof certManagerPkiSyncDetailsByIDPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute+ '/organizations/$orgId/projects/pam/$projectId/accounts/$accountId': typeof pamPamAccountByIDPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/approval-requests/$approvalRequestId': typeof pamApprovalRequestDetailPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId': typeof pamPamSessionsByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute@@ -5608,6 +5720,7 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/projects/ssh/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteSshRoute'/organizations/$orgId/projects/ssh/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteSshRoute'/organizations/$orgId/projects/ssh/$projectId/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteSshRoute+ '/organizations/$orgId/projects/pam/$projectId/resources/$resourceType/$resourceId': typeof pamPamResourceByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/authorize': typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/create': typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-secret-manager/authorize': typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute@@ -5775,9 +5888,7 @@ export interface FileRoutesByTo {'/organizations/$orgId/projects/kms/$projectId/kmip': typeof kmsKmipPageRouteRoute'/organizations/$orgId/projects/kms/$projectId/overview': typeof kmsOverviewPageRouteRoute'/organizations/$orgId/projects/kms/$projectId/settings': typeof kmsSettingsPageRouteRoute- '/organizations/$orgId/projects/pam/$projectId/accounts': typeof pamPamAccountsPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/approvals': typeof pamApprovalsPageRouteRoute- '/organizations/$orgId/projects/pam/$projectId/resources': typeof pamPamResourcesPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/settings': typeof pamSettingsPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/allowlist': typeof secretManagerIPAllowlistPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/approval': typeof secretManagerSecretApprovalsPageRouteRoute@@ -5810,6 +5921,8 @@ export interface FileRoutesByTo {'/organizations/$orgId/projects/cert-manager/$projectId/certificate-templates': typeof certManagerPkiTemplateListPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/integrations': typeof certManagerIntegrationsListPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/subscribers': typeof certManagerPkiSubscribersPageRouteRoute+ '/organizations/$orgId/projects/pam/$projectId/accounts': typeof pamPamAccountsPageRouteRoute+ '/organizations/$orgId/projects/pam/$projectId/resources': typeof pamPamResourcesPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/sessions': typeof pamPamSessionsPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations': typeof secretManagerIntegrationsListPageRouteRoute'/organizations/$orgId/projects/secret-scanning/$projectId/data-sources': typeof secretScanningSecretScanningDataSourcesPageRouteRoute@@ -5820,6 +5933,7 @@ export interface FileRoutesByTo {'/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId': typeof certManagerCertificateDetailsByIDPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/integrations/$syncId': typeof certManagerPkiSyncDetailsByIDPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute+ '/organizations/$orgId/projects/pam/$projectId/accounts/$accountId': typeof pamPamAccountByIDPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/approval-requests/$approvalRequestId': typeof pamApprovalRequestDetailPageRouteRoute'/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId': typeof pamPamSessionsByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute@@ -5856,6 +5970,7 @@ export interface FileRoutesByTo {'/organizations/$orgId/projects/ssh/$projectId/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteSshRoute'/organizations/$orgId/projects/ssh/$projectId/members/$membershipId': typeof projectMemberDetailsByIDPageRouteSshRoute'/organizations/$orgId/projects/ssh/$projectId/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteSshRoute+ '/organizations/$orgId/projects/pam/$projectId/resources/$resourceType/$resourceId': typeof pamPamResourceByIDPageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/authorize': typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/create': typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute'/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-secret-manager/authorize': typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute@@ -6041,9 +6156,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/kmip': typeof kmsKmipPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/overview': typeof kmsOverviewPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/settings': typeof kmsSettingsPageRouteRoute- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts': typeof pamPamAccountsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals': typeof pamApprovalsPageRouteRoute- '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources': typeof pamPamResourcesPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/settings': typeof pamSettingsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/allowlist': typeof secretManagerIPAllowlistPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/approval': typeof secretManagerSecretApprovalsPageRouteRoute@@ -6067,7 +6180,9 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/access-management': typeof projectAccessControlPageRouteKmsRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs': typeof projectAuditLogsPageRouteKmsRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/access-management': typeof projectAccessControlPageRoutePamRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutAccountsRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/audit-logs': typeof projectAuditLogsPageRoutePamRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutResourcesRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsPamProjectIdPamLayoutSessionsRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/access-management': typeof projectAccessControlPageRouteSecretManagerRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections': typeof projectAppConnectionsPageRouteSecretManagerRoute@@ -6082,6 +6197,8 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-templates/': typeof certManagerPkiTemplateListPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/integrations/': typeof certManagerIntegrationsListPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers/': typeof certManagerPkiSubscribersPageRouteRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/': typeof pamPamAccountsPageRouteRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/': typeof pamPamResourcesPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/': typeof pamPamSessionsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/': typeof secretManagerIntegrationsListPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources/': typeof secretScanningSecretScanningDataSourcesPageRouteRoute@@ -6092,6 +6209,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId': typeof certManagerCertificateDetailsByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/integrations/$syncId': typeof certManagerPkiSyncDetailsByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers/$subscriberName': typeof certManagerPkiSubscriberDetailsByIDPageRouteRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId': typeof pamPamAccountByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approval-requests/$approvalRequestId': typeof pamApprovalRequestDetailPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/$sessionId': typeof pamPamSessionsByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId': typeof secretManagerIntegrationsDetailsByIDPageRouteRoute@@ -6128,6 +6246,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/identities/$identityId': typeof projectIdentityDetailsByIDPageRouteSshRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/members/$membershipId': typeof projectMemberDetailsByIDPageRouteSshRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/roles/$roleSlug': typeof projectRoleDetailsBySlugPageRouteSshRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId': typeof pamPamResourceByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize': typeof secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create': typeof secretManagerIntegrationsAwsParameterStoreConfigurePageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize': typeof secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteRoute@@ -6304,9 +6423,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/kms/$projectId/kmip'| '/organizations/$orgId/projects/kms/$projectId/overview'| '/organizations/$orgId/projects/kms/$projectId/settings'- | '/organizations/$orgId/projects/pam/$projectId/accounts'| '/organizations/$orgId/projects/pam/$projectId/approvals'- | '/organizations/$orgId/projects/pam/$projectId/resources'| '/organizations/$orgId/projects/pam/$projectId/settings'| '/organizations/$orgId/projects/secret-management/$projectId/allowlist'| '/organizations/$orgId/projects/secret-management/$projectId/approval'@@ -6330,7 +6447,9 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/kms/$projectId/access-management'| '/organizations/$orgId/projects/kms/$projectId/audit-logs'| '/organizations/$orgId/projects/pam/$projectId/access-management'+ | '/organizations/$orgId/projects/pam/$projectId/accounts'| '/organizations/$orgId/projects/pam/$projectId/audit-logs'+ | '/organizations/$orgId/projects/pam/$projectId/resources'| '/organizations/$orgId/projects/pam/$projectId/sessions'| '/organizations/$orgId/projects/secret-management/$projectId/access-management'| '/organizations/$orgId/projects/secret-management/$projectId/app-connections'@@ -6345,6 +6464,8 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/cert-manager/$projectId/certificate-templates/'| '/organizations/$orgId/projects/cert-manager/$projectId/integrations/'| '/organizations/$orgId/projects/cert-manager/$projectId/subscribers/'+ | '/organizations/$orgId/projects/pam/$projectId/accounts/'+ | '/organizations/$orgId/projects/pam/$projectId/resources/'| '/organizations/$orgId/projects/pam/$projectId/sessions/'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/'| '/organizations/$orgId/projects/secret-scanning/$projectId/data-sources/'@@ -6355,6 +6476,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId'| '/organizations/$orgId/projects/cert-manager/$projectId/integrations/$syncId'| '/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName'+ | '/organizations/$orgId/projects/pam/$projectId/accounts/$accountId'| '/organizations/$orgId/projects/pam/$projectId/approval-requests/$approvalRequestId'| '/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId'@@ -6391,6 +6513,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/ssh/$projectId/identities/$identityId'| '/organizations/$orgId/projects/ssh/$projectId/members/$membershipId'| '/organizations/$orgId/projects/ssh/$projectId/roles/$roleSlug'+ | '/organizations/$orgId/projects/pam/$projectId/resources/$resourceType/$resourceId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/authorize'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/create'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-secret-manager/authorize'@@ -6557,9 +6680,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/kms/$projectId/kmip'| '/organizations/$orgId/projects/kms/$projectId/overview'| '/organizations/$orgId/projects/kms/$projectId/settings'- | '/organizations/$orgId/projects/pam/$projectId/accounts'| '/organizations/$orgId/projects/pam/$projectId/approvals'- | '/organizations/$orgId/projects/pam/$projectId/resources'| '/organizations/$orgId/projects/pam/$projectId/settings'| '/organizations/$orgId/projects/secret-management/$projectId/allowlist'| '/organizations/$orgId/projects/secret-management/$projectId/approval'@@ -6592,6 +6713,8 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/cert-manager/$projectId/certificate-templates'| '/organizations/$orgId/projects/cert-manager/$projectId/integrations'| '/organizations/$orgId/projects/cert-manager/$projectId/subscribers'+ | '/organizations/$orgId/projects/pam/$projectId/accounts'+ | '/organizations/$orgId/projects/pam/$projectId/resources'| '/organizations/$orgId/projects/pam/$projectId/sessions'| '/organizations/$orgId/projects/secret-management/$projectId/integrations'| '/organizations/$orgId/projects/secret-scanning/$projectId/data-sources'@@ -6602,6 +6725,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId'| '/organizations/$orgId/projects/cert-manager/$projectId/integrations/$syncId'| '/organizations/$orgId/projects/cert-manager/$projectId/subscribers/$subscriberName'+ | '/organizations/$orgId/projects/pam/$projectId/accounts/$accountId'| '/organizations/$orgId/projects/pam/$projectId/approval-requests/$approvalRequestId'| '/organizations/$orgId/projects/pam/$projectId/sessions/$sessionId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/$integrationId'@@ -6638,6 +6762,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/projects/ssh/$projectId/identities/$identityId'| '/organizations/$orgId/projects/ssh/$projectId/members/$membershipId'| '/organizations/$orgId/projects/ssh/$projectId/roles/$roleSlug'+ | '/organizations/$orgId/projects/pam/$projectId/resources/$resourceType/$resourceId'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/authorize'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-parameter-store/create'| '/organizations/$orgId/projects/secret-management/$projectId/integrations/aws-secret-manager/authorize'@@ -6821,9 +6946,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/kmip'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/overview'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/settings'- | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals'- | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/settings'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/allowlist'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/approval'@@ -6847,7 +6970,9 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/access-management'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout/audit-logs'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/access-management'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/audit-logs'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/access-management'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/app-connections'@@ -6862,6 +6987,8 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-templates/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/integrations/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers/'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId/_secret-scanning-layout/data-sources/'@@ -6872,6 +6999,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/integrations/$syncId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers/$subscriberName'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approval-requests/$approvalRequestId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/$sessionId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/$integrationId'@@ -6908,6 +7036,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/identities/$identityId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/members/$membershipId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout/roles/$roleSlug'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize'@@ -7561,12 +7690,12 @@ export const routeTree = rootRoute"filePath": "pam/layout.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId","children": [- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals",- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/settings","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/access-management",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/audit-logs",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approval-requests/$approvalRequestId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/groups/$groupId",@@ -7670,18 +7799,10 @@ export const routeTree = rootRoute"filePath": "kms/SettingsPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout"},- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts": {- "filePath": "pam/PamAccountsPage/route.tsx",- "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout"- },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approvals": {"filePath": "pam/ApprovalsPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout"},- "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources": {- "filePath": "pam/PamResourcesPage/route.tsx",- "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout"- },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/settings": {"filePath": "pam/SettingsPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout"@@ -7785,10 +7906,26 @@ export const routeTree = rootRoute"filePath": "project/AccessControlPage/route-pam.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts": {+ "filePath": "",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout",+ "children": [+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId"+ ]+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/audit-logs": {"filePath": "project/AuditLogsPage/route-pam.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources": {+ "filePath": "",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout",+ "children": [+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId"+ ]+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions": {"filePath": "","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout",@@ -7933,6 +8070,14 @@ export const routeTree = rootRoute"filePath": "cert-manager/PkiSubscribersPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/": {+ "filePath": "pam/PamAccountsPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts"+ },+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/": {+ "filePath": "pam/PamResourcesPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions/": {"filePath": "pam/PamSessionsPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/sessions"@@ -7973,6 +8118,10 @@ export const routeTree = rootRoute"filePath": "cert-manager/PkiSubscriberDetailsByIDPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts/$accountId": {+ "filePath": "pam/PamAccountByIDPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/accounts"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/approval-requests/$approvalRequestId": {"filePath": "pam/ApprovalRequestDetailPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout"@@ -8117,6 +8266,10 @@ export const routeTree = rootRoute"filePath": "project/RoleDetailsBySlugPage/route-ssh.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId/_ssh-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources/$resourceType/$resourceId": {+ "filePath": "pam/PamResourceByIDPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/pam/$projectId/_pam-layout/resources"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize": {"filePath": "secret-manager/integrations/AwsParameterStoreAuthorizePage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/$projectId/_secret-manager-layout/integrations"diff --git a/frontend/src/routes.ts b/frontend/src/routes.tsindex 9863307bc6..0456ab117a 100644--- a/frontend/src/routes.ts+++ b/frontend/src/routes.ts@@ -371,12 +371,18 @@ const secretScanningRoutes = route("/organizations/$orgId/projects/secret-scanniconst pamRoutes = route("/organizations/$orgId/projects/pam/$projectId", [layout("pam-layout", "pam/layout.tsx", [- route("/accounts", "pam/PamAccountsPage/route.tsx"),+ route("/accounts", [+ index("pam/PamAccountsPage/route.tsx"),+ route("/$accountId", "pam/PamAccountByIDPage/route.tsx")+ ]),route("/sessions", [index("pam/PamSessionsPage/route.tsx"),route("/$sessionId", "pam/PamSessionsByIDPage/route.tsx")]),- route("/resources", "pam/PamResourcesPage/route.tsx"),+ route("/resources", [+ index("pam/PamResourcesPage/route.tsx"),+ route("/$resourceType/$resourceId", "pam/PamResourceByIDPage/route.tsx")+ ]),route("/audit-logs", "project/AuditLogsPage/route-pam.tsx"),route("/settings", "pam/SettingsPage/route.tsx"),route("/approvals", "pam/ApprovalsPage/route.tsx"),