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
fix(pam): address review feedback on access error styling and blocked tile
bernie-g6e7070274815
diff --git a/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsx b/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsxindex 5a20c20474..eb1b6d4d47 100644--- a/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsx+++ b/frontend/src/pages/organization/ProjectsPage/components/ProjectCategoryOverview.tsx@@ -141,6 +141,17 @@ export const ProjectCategoryOverview = () => {const isCertManagerAccessBlocked =cmInstances.length > 0 && !isOrgAdmin && !canRequestAccess && !isCertManagerMember;+ const isPamMember = useMemo(+ () =>+ Boolean(+ currentOrg?.pamProjectId &&+ projects.some((project) => project.id === currentOrg.pamProjectId)+ ),+ [currentOrg?.pamProjectId, projects]+ );+ const isPamAccessBlocked =+ Boolean(currentOrg?.pamProjectId) && !isOrgAdmin && !canRequestAccess && !isPamMember;+const certManagerActiveProjectId = useMemo(() => {const cookieValue = currentOrg?.id ? getCertManagerActiveProjectCookie(currentOrg.id) : null;if (cookieValue && cmInstances.some((p) => p.id === cookieValue)) return cookieValue;@@ -410,7 +421,11 @@ export const ProjectCategoryOverview = () => {</>);- if (type === ProjectType.CertificateManager && isCertManagerAccessBlocked) {+ const isAccessBlocked =+ (type === ProjectType.CertificateManager && isCertManagerAccessBlocked) ||+ (type === ProjectType.PAM && isPamAccessBlocked);++ if (isAccessBlocked) {return (<Tooltip key={type}><TooltipTrigger asChild>@@ -419,8 +434,8 @@ export const ProjectCategoryOverview = () => {</div></TooltipTrigger><TooltipContent>- You don't have access to Certificate Manager. Ask an organization admin for- access.+ You don't have access to {getProjectTitle(type)}. Ask an organization admin+ for access.</TooltipContent></Tooltip>);@@ -452,7 +467,10 @@ export const ProjectCategoryOverview = () => {<RequestProjectAccessModalisOpen={isPamRequestAccessOpen}- onOpenChange={setIsPamRequestAccessOpen}+ onOpenChange={(isOpen) => {+ setIsPamRequestAccessOpen(isOpen);+ if (!isOpen) setPendingPamProjectId(null);+ }}project={pamRequestAccessProject}subTitle="Requesting access to Privileged Access Manager. You may include an optional note for admins to review your request."/>diff --git a/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx b/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsxindex eeb156eaff..cab15a1e8a 100644--- a/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx+++ b/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx@@ -61,7 +61,11 @@ export const ProjectAccessError = ({ projectId: projectIdProp }: ProjectAccessEr};return (- <div className="flex h-full min-h-screen w-full items-center justify-center bg-bunker-800">+ <div+ className={`flex h-full w-full items-center justify-center ${+ needsPamFallback ? "min-h-screen bg-background" : ""+ }`}+ ><AccessRestrictedBannerbody={<>