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 claude comments
Carlos Monastyrski0d1650633b66
diff --git a/backend/src/server/routes/v1/index.ts b/backend/src/server/routes/v1/index.tsindex c1dba6c231..f6e6a1eb56 100644--- a/backend/src/server/routes/v1/index.ts+++ b/backend/src/server/routes/v1/index.ts@@ -213,7 +213,7 @@ export const registerV1Routes = async (server: FastifyZodProvider) => {);if (!activeProjectId) {throw new BadRequestError({- message: "Set an organization default Certificate Manager project before using Applications."+ message: "Set an organization active Certificate Manager project before using Applications."});}if (req.internalCertManagerProjectId !== activeProjectId) {diff --git a/docs/documentation/platform/pki/migration.mdx b/docs/documentation/platform/pki/migration.mdxindex 70a06135ba..22a83b6646 100644--- a/docs/documentation/platform/pki/migration.mdx+++ b/docs/documentation/platform/pki/migration.mdx@@ -75,7 +75,7 @@ If you have CAs, policies, or profiles spread across multiple existing projects,<Steps><Step title="Designate the active project">- Navigate to **Organization Settings → Products → Certificate Manager**. In the projects table, mark the project you intend to consolidate into as **Active**. All members and integrations across the organization will subsequently resolve to this project. Designating an active project also unlocks Applications, until one is selected (in organizations with multiple Certificate Manager projects), Applications cannot be created or administered.+ Navigate to **Organization Settings → Products → Certificate Manager**. In the projects table, mark the project you intend to consolidate into as **Active**. All members and integrations across the organization will subsequently resolve to this project. Designating an active project also unlocks Applications. Until one is selected (in organizations with multiple Certificate Manager projects), Applications cannot be created or administered.</Step><Step title="Export entities from legacy projects">diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsxindex 03bbd0a1c4..9f3b4de733 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx@@ -40,9 +40,11 @@ export const CertManagerNav = ({const isCertManagerAdmin = hasProjectRole("admin");const projectId = currentProject?.id ?? "";const { data: certManagerInstance } = useCertManagerInstanceState();- const isActiveCertManagerProject =- Boolean(certManagerInstance?.activeProjectId) &&- certManagerInstance?.activeProjectId === projectId;+ // Hide only when the query has resolved AND the project is confirmed legacy. While the query+ // is in flight (data === undefined), stay optimistic so users on the active project don't see+ // the Applications group flicker in on first paint.+ const isLegacyCertManagerProject =+ certManagerInstance !== undefined && certManagerInstance.activeProjectId !== projectId;const { data: v2AlertsData } = useGetPkiAlertsV2({},@@ -161,11 +163,11 @@ export const CertManagerNav = ({<SidebarCollapsibleGroup label="General"><ProjectNavList items={generalItemsForRole} onSubmenuOpen={onSubmenuOpen} /></SidebarCollapsibleGroup>- {isActiveCertManagerProject ? (+ {isLegacyCertManagerProject ? null : (<SidebarCollapsibleGroup label="Applications"><ProjectNavList items={applicationItems} onSubmenuOpen={onSubmenuOpen} /></SidebarCollapsibleGroup>- ) : null}+ )}<SidebarCollapsibleGroup label="Code Signing"><ProjectNavList items={codeSigningItems} onSubmenuOpen={onSubmenuOpen} /></SidebarCollapsibleGroup>