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
address rev
x032205a1612cb12cfd
diff --git a/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts b/backend/src/ee/routes/v1/pam-routers/pam-account-router.tsindex 9e606fbd24..9c42bed798 100644--- a/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts+++ b/backend/src/ee/routes/v1/pam-routers/pam-account-router.ts@@ -60,7 +60,11 @@ const accountDetailVariants = Object.entries(ACCOUNT_TYPE_CONFIGS).map(([accountconnectionDetails: config.connectionDetails,templateAccessPolicy: PamTemplateAccessPolicySchema.nullable().optional(),templateSettings: PamTemplateSettingsSchema.nullable().optional(),- credentials: config.sanitizedCredentials+ credentials: config.sanitizedCredentials,+ isAccessible: z.boolean().describe("Whether the account is fully provisioned to launch a session"),+ accessibilityIssues: z+ .array(z.nativeEnum(PamAccountAccessibilityIssue))+ .describe("Reasons the account cannot launch a session, if any")}));diff --git a/backend/src/ee/routes/v1/pam-routers/pam-resource-role-router.ts b/backend/src/ee/routes/v1/pam-routers/pam-resource-role-router.tsindex 1244f1a1d3..e7843f62aa 100644--- a/backend/src/ee/routes/v1/pam-routers/pam-resource-role-router.ts+++ b/backend/src/ee/routes/v1/pam-routers/pam-resource-role-router.ts@@ -11,7 +11,7 @@ const DEFAULT_RESOURCE_ROLES = [slug: PamResourceRole.Admin,name: "Admin",isDefault: true,- description: "Full control of accounts, folders, sessions, and grants"+ description: "Full control of accounts, folders, sessions, and memberships"},{slug: PamResourceRole.Connector,diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.tsindex 9288c117e2..3d754ef477 100644--- a/backend/src/ee/services/pam-account/pam-account-service.ts+++ b/backend/src/ee/services/pam-account/pam-account-service.ts@@ -194,6 +194,7 @@ export const pamAccountServiceFactory = (deps: TPamAccountServiceFactoryDep) =>recordingConnectionId: account.recordingConnectionId,connectionDetails,credentials,+ ...computeAccessibility(account),createdAt: account.createdAt,updatedAt: account.updatedAt};diff --git a/frontend/src/hooks/api/pam/types/index.ts b/frontend/src/hooks/api/pam/types/index.tsindex 44d2c1ae4c..24e085decf 100644--- a/frontend/src/hooks/api/pam/types/index.ts+++ b/frontend/src/hooks/api/pam/types/index.ts@@ -71,6 +71,8 @@ export type TPamAccount = {connectionDetails: Record<string, unknown>;// Non-secret credential fields onlycredentials: Record<string, unknown>;+ isAccessible: boolean;+ accessibilityIssues: PamAccountAccessibilityIssue[];createdAt: string;updatedAt: string;};diff --git a/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsx b/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsxindex bade571b21..c0351a955a 100644--- a/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsx+++ b/frontend/src/pages/pam/PamAccessControlPage/PamAccessControlPage.tsx@@ -49,7 +49,7 @@ export const PamAccessControlPage = () => {scope={ProjectType.PAM}icon={Shield}title="Access Control"- description="Manage members and groups for the PAM product."+ description="Manage members and groups."/><Tabs value={selectedTab} onValueChange={updateTab}><TabsList variant="pam">diff --git a/frontend/src/pages/pam/PamAccountsPage/components/AccountDetailSheet.tsx b/frontend/src/pages/pam/PamAccountsPage/components/AccountDetailSheet.tsxindex 859df540c8..e5fd14a2dc 100644--- a/frontend/src/pages/pam/PamAccountsPage/components/AccountDetailSheet.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/components/AccountDetailSheet.tsx@@ -42,6 +42,7 @@ import { gatewayPoolsQueryKeys } from "@app/hooks/api/gateway-pools/queries";import { gatewaysQueryKeys } from "@app/hooks/api/gateways/queries";import { useGetOrganizationGroups } from "@app/hooks/api/organization/queries";import {+ PamAccountAccessibilityIssue,PamAccountType,TPamMember,useGetPamAccountById,@@ -68,6 +69,7 @@ import {import { PAM_ACCOUNT_TABS, visiblePamTabs } from "../../components/pamResourceTabs";import { RemoveMemberConfirm } from "../../components/RemoveMemberConfirm";import { SheetSaveBar } from "../../components/SheetSaveBar";+import { TabWarningPing } from "../../components/TabWarningPing";import { AccountPlatformIcon } from "../../PamAccessPage/components/AccountPlatformIcon";import { AssignAccessModal, EditMemberTarget } from "./AssignAccessModal";import { EditAccountForm } from "./EditAccountForm";@@ -86,6 +88,13 @@ type ResolvedMember = {kind: PamMemberKind;};+// Maps each accessibility issue to the tab where it can be resolved+const ISSUE_TO_TAB: Record<PamAccountAccessibilityIssue, PamSheetTab> = {+ [PamAccountAccessibilityIssue.NoCredential]: PamSheetTab.Configuration,+ [PamAccountAccessibilityIssue.NoGateway]: PamSheetTab.Advanced,+ [PamAccountAccessibilityIssue.NoRecordingConfig]: PamSheetTab.Advanced+};+const PermissionsTab = ({accountId,folderId,@@ -603,6 +612,10 @@ export const AccountDetailSheet = ({ isOpen, accountId, onOpenChange }: Props) =const { can } = usePamAccountActions(accountId ?? "", isOpen && Boolean(accountId));const availableTabs = visiblePamTabs(PAM_ACCOUNT_TABS, can);+ const tabsWithIssues = new Set(+ (account?.accessibilityIssues ?? []).map((issue) => ISSUE_TO_TAB[issue])+ );+const conn = (account?.connectionDetails ?? {}) as Record<string, unknown>;const metadata = account@@ -684,7 +697,8 @@ export const AccountDetailSheet = ({ isOpen, accountId, onOpenChange }: Props) =value: tabDef.value,label: tabDef.label,icon: <tabDef.icon className="mr-1.5 size-4" />,- content: tabContent[tabDef.value] ?? null+ content: tabContent[tabDef.value] ?? null,+ indicator: tabsWithIssues.has(tabDef.value) ? <TabWarningPing /> : undefined}))}isDirty={isFormDirty}/>diff --git a/frontend/src/pages/pam/components/AccountAccessibilityBadge.tsx b/frontend/src/pages/pam/components/AccountAccessibilityBadge.tsxindex 7719e08b40..4294021ffe 100644--- a/frontend/src/pages/pam/components/AccountAccessibilityBadge.tsx+++ b/frontend/src/pages/pam/components/AccountAccessibilityBadge.tsx@@ -25,12 +25,21 @@ export const AccountAccessibilityBadge = ({ issues }: Props) => {</Badge></TooltipTrigger><TooltipContent>- <p className="mb-1 font-medium">This account can't be used yet</p>- <ul className="list-inside list-disc">- {issues.map((issue) => (- <li key={issue}>{ISSUE_LABELS[issue]}</li>- ))}- </ul>+ {issues.length === 1 ? (+ <p>+ This account can't be used yet:{" "}+ {ISSUE_LABELS[issues[0]].charAt(0).toLowerCase() + ISSUE_LABELS[issues[0]].slice(1)}.+ </p>+ ) : (+ <>+ <p className="mb-1 font-medium">This account can't be used yet</p>+ <ul className="list-inside list-disc">+ {issues.map((issue) => (+ <li key={issue}>{ISSUE_LABELS[issue]}</li>+ ))}+ </ul>+ </>+ )}</TooltipContent></Tooltip>);diff --git a/frontend/src/pages/pam/components/PamDetailSheet.tsx b/frontend/src/pages/pam/components/PamDetailSheet.tsxindex daa638e5c8..497e03df6c 100644--- a/frontend/src/pages/pam/components/PamDetailSheet.tsx+++ b/frontend/src/pages/pam/components/PamDetailSheet.tsx@@ -38,6 +38,7 @@ export type PamDetailSheetTab = {label: string;icon?: ReactNode;content: ReactNode;+ indicator?: ReactNode;};type Props = {@@ -83,6 +84,7 @@ const TabbedContent = ({<TabsTrigger key={tab.value} value={tab.value}>{tab.icon}{tab.label}+ {tab.indicator}</TabsTrigger>))}</TabsList>diff --git a/frontend/src/pages/pam/components/TabWarningPing.tsx b/frontend/src/pages/pam/components/TabWarningPing.tsxnew file mode 100644index 0000000000..f1218377ce--- /dev/null+++ b/frontend/src/pages/pam/components/TabWarningPing.tsx@@ -0,0 +1,6 @@+export const TabWarningPing = () => (+ <span className="relative ml-1.5 flex size-1.5" aria-label="Needs attention">+ <span className="absolute inline-flex size-full animate-ping rounded-full bg-warning opacity-75" />+ <span className="relative inline-flex size-1.5 rounded-full bg-warning" />+ </span>+);