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
misc: url changes
Sheen Capadngan368ec22b4a7f
diff --git a/backend/src/services/alert/providers/cert-manager-alert-provider.test.ts b/backend/src/services/alert/providers/cert-manager-alert-provider.test.tsindex cf353bf3c7..d31c5d9f88 100644--- a/backend/src/services/alert/providers/cert-manager-alert-provider.test.ts+++ b/backend/src/services/alert/providers/cert-manager-alert-provider.test.ts@@ -342,7 +342,7 @@ describe("cert manager alert provider", () => {const viewUrl = await provider.buildViewUrl(alert);const payload = provider.buildPayload(alert, [sampleCertificate()], viewUrl);- expect(viewUrl).toBe("https://app.infisical.com/organizations/org-1/projects/cert-manager/proj-1/inventory");+ expect(viewUrl).toBe("https://app.infisical.com/organizations/org-1/cert-manager/inventory");expect(payload.alert.resourceType).toBe("cert-manager");expect(payload.alert).not.toHaveProperty("resourceId");expect(payload.eventKey).toBe(ISSUANCE_EVENT);diff --git a/backend/src/services/alert/providers/cert-manager-alert-provider.ts b/backend/src/services/alert/providers/cert-manager-alert-provider.tsindex a469bebf72..8db8009f93 100644--- a/backend/src/services/alert/providers/cert-manager-alert-provider.ts+++ b/backend/src/services/alert/providers/cert-manager-alert-provider.ts@@ -123,7 +123,7 @@ export const certManagerAlertProviderFactory = ({}: TCertManagerAlertProviderDep): IScheduledAlertProvider<TAlertCertificate> &IEventAlertProvider<TAlertCertificate> => {const buildViewUrl = async (alert: TAlertContext): Promise<string> =>- `${getConfig().SITE_URL}/organizations/${alert.orgId}/projects/cert-manager/${alert.projectId}/inventory`;+ `${getConfig().SITE_URL}/organizations/${alert.orgId}/cert-manager/inventory`;const findScheduledTargets = async (input: TFindScheduledTargetsInput): Promise<TAlertCertificate[]> => {if (!input.projectId || input.resourceId || !input.alreadyAlerted?.channelIds.length) return [];diff --git a/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.ts b/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.tsindex 5f3dfb4f37..48430aad3d 100644--- a/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.ts+++ b/backend/src/services/alert/providers/cert-manager-application-alert-provider.test.ts@@ -245,10 +245,10 @@ describe("cert manager application alert provider", () => {test("buildViewUrl deep-links to the application and falls back to the applications list", async () => {const { provider } = buildProvider();await expect(provider.buildViewUrl(alertContext())).resolves.toBe(- "https://app.infisical.com/organizations/org-1/projects/cert-manager/proj-1/applications/payments-api"+ "https://app.infisical.com/organizations/org-1/cert-manager/applications/payments-api");await expect(provider.buildViewUrl(alertContext({ resourceId: "missing" }))).resolves.toBe(- "https://app.infisical.com/organizations/org-1/projects/cert-manager/proj-1/applications"+ "https://app.infisical.com/organizations/org-1/cert-manager/applications");});diff --git a/backend/src/services/alert/providers/cert-manager-application-alert-provider.ts b/backend/src/services/alert/providers/cert-manager-application-alert-provider.tsindex 44894a0473..c9ba77fe0a 100644--- a/backend/src/services/alert/providers/cert-manager-application-alert-provider.ts+++ b/backend/src/services/alert/providers/cert-manager-application-alert-provider.ts@@ -67,7 +67,7 @@ export const certManagerApplicationAlertProviderFactory = ({}: TCertManagerApplicationAlertProviderDep): IScheduledAlertProvider<TAlertCertificate> &IEventAlertProvider<TAlertCertificate> => {const buildViewUrl = async (alert: TAlertContext): Promise<string> => {- const base = `${getConfig().SITE_URL}/organizations/${alert.orgId}/projects/cert-manager/${alert.projectId}`;+ const base = `${getConfig().SITE_URL}/organizations/${alert.orgId}/cert-manager`;const application = alert.resourceId? await certManagerCertificateAlertDAL.findApplicationById(alert.resourceId): undefined;diff --git a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.ts b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.tsindex 85088f968d..1623a61c5a 100644--- a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.ts+++ b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.test.ts@@ -164,7 +164,7 @@ describe("cert manager signer alert provider", () => {const viewUrl = await provider.buildViewUrl(signerAlert);const payload = provider.buildPayload(signerAlert, [signerCertificate()], viewUrl);- expect(viewUrl).toBe("https://app.infisical.com/organizations/org-1/projects/cert-manager/proj-1/code-signing");+ expect(viewUrl).toBe("https://app.infisical.com/organizations/org-1/cert-manager/code-signing");expect(payload.eventKey).toBe(EXPIRY_EVENT);expect(payload.webhookType).toBe(`com.infisical.${EXPIRY_EVENT}`);expect(payload.webhookSource).toBe("/alerts/alert-1");diff --git a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.ts b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.tsindex 776087c8a2..e192bd0e1a 100644--- a/backend/src/services/alert/providers/cert-manager-signer-alert-provider.ts+++ b/backend/src/services/alert/providers/cert-manager-signer-alert-provider.ts@@ -69,7 +69,7 @@ export const certManagerSignerAlertProviderFactory = ({};const buildViewUrl = async (alert: TAlertContext): Promise<string> =>- `${getConfig().SITE_URL}/organizations/${alert.orgId}/projects/cert-manager/${alert.projectId}/code-signing`;+ `${getConfig().SITE_URL}/organizations/${alert.orgId}/cert-manager/code-signing`;const buildPayload = (alert: TAlertContext, targets: TSignerAlertCertificate[], viewUrl: string): TAlertPayload => {const { alertBefore } = alert.condition as { alertBefore: string };diff --git a/backend/src/services/approval-policy/cert-request/cert-request-policy-factory.ts b/backend/src/services/approval-policy/cert-request/cert-request-policy-factory.tsindex 60f73bc352..e789e44121 100644--- a/backend/src/services/approval-policy/cert-request/cert-request-policy-factory.ts+++ b/backend/src/services/approval-policy/cert-request/cert-request-policy-factory.ts@@ -56,7 +56,7 @@ export const certRequestApprovalResourceFactory = ({if (event !== ApprovalNotificationEvent.Requested) return null;const cfg = getConfig();- const approvalUrl = `${cfg.SITE_URL}/organizations/${request.organizationId}/projects/cert-manager/${request.projectId}/approvals/${request.id}?policyType=${encodeURIComponent(request.type)}&from=root-requests`;+ const approvalUrl = `${cfg.SITE_URL}/organizations/${request.organizationId}/cert-manager/approvals/${request.id}?policyType=${encodeURIComponent(request.type)}&from=root-requests`;return {inApp: {diff --git a/backend/src/services/approval-policy/code-signing/code-signing-policy-factory.ts b/backend/src/services/approval-policy/code-signing/code-signing-policy-factory.tsindex 12a04ca806..259f3fd56a 100644--- a/backend/src/services/approval-policy/code-signing/code-signing-policy-factory.ts+++ b/backend/src/services/approval-policy/code-signing/code-signing-policy-factory.ts@@ -76,7 +76,7 @@ export const codeSigningApprovalResourceFactory = ({if (event !== ApprovalNotificationEvent.Requested) return null;const cfg = getConfig();- const approvalUrl = `${cfg.SITE_URL}/organizations/${request.organizationId}/projects/cert-manager/${request.projectId}/approvals/${request.id}?policyType=${encodeURIComponent(request.type)}&from=root-requests`;+ const approvalUrl = `${cfg.SITE_URL}/organizations/${request.organizationId}/cert-manager/approvals/${request.id}?policyType=${encodeURIComponent(request.type)}&from=root-requests`;return {inApp: {diff --git a/backend/src/services/pki-sync/pki-sync-failure-notification-fns.ts b/backend/src/services/pki-sync/pki-sync-failure-notification-fns.tsindex 1cf4b48ce7..ec1af6463d 100644--- a/backend/src/services/pki-sync/pki-sync-failure-notification-fns.ts+++ b/backend/src/services/pki-sync/pki-sync-failure-notification-fns.ts@@ -47,7 +47,7 @@ export const notifyPkiSyncFailure = async (return;}- const basePath = `/organizations/${project.orgId}/projects/cert-manager/${pkiSync.projectId}`;+ const basePath = `/organizations/${project.orgId}/cert-manager`;const link = `${basePath}/applications/${encodeURIComponent(application.name)}?selectedTab=syncs`;await deps.notificationService.createUserNotifications(diff --git a/backend/src/services/smtp/emails/PkiExpirationAlertTemplate.tsx b/backend/src/services/smtp/emails/PkiExpirationAlertTemplate.tsxindex 3646b69769..8ed0fb3f08 100644--- a/backend/src/services/smtp/emails/PkiExpirationAlertTemplate.tsx+++ b/backend/src/services/smtp/emails/PkiExpirationAlertTemplate.tsx@@ -131,6 +131,6 @@ PkiExpirationAlertTemplate.PreviewProps = {],alertName: "Production SSL Certificate Expiration Alert",applicationName: "checkout-api",- viewUrl: "https://infisical.com/organizations/org-1/projects/cert-manager/proj-1/inventory",+ viewUrl: "https://infisical.com/organizations/org-1/cert-manager/inventory",siteUrl: "https://infisical.com"} as PkiExpirationAlertTemplateProps;diff --git a/docs/documentation/platform/pki/applications/alerting/webhook-alerts.mdx b/docs/documentation/platform/pki/applications/alerting/webhook-alerts.mdxindex 83694cd52d..a20cd8a10d 100644--- a/docs/documentation/platform/pki/applications/alerting/webhook-alerts.mdx+++ b/docs/documentation/platform/pki/applications/alerting/webhook-alerts.mdx@@ -95,7 +95,7 @@ Each request is a [CloudEvents](https://cloudevents.io/) JSON payload. The `type],"metadata": {"totalItems": 1,- "viewUrl": "https://app.infisical.com/organizations/<org-id>/projects/cert-manager/<project-id>/applications/<application-name>"+ "viewUrl": "https://app.infisical.com/organizations/<org-id>/cert-manager/applications/<application-name>"}}}@@ -151,7 +151,7 @@ Each request is a [CloudEvents](https://cloudevents.io/) JSON payload. The `type],"metadata": {"totalItems": 1,- "viewUrl": "https://app.infisical.com/organizations/<org-id>/projects/cert-manager/<project-id>/applications/<application-name>"+ "viewUrl": "https://app.infisical.com/organizations/<org-id>/cert-manager/applications/<application-name>"}}}diff --git a/docs/documentation/platform/pki/settings/alerts.mdx b/docs/documentation/platform/pki/settings/alerts.mdxindex ec4fc424ba..d040cb07d8 100644--- a/docs/documentation/platform/pki/settings/alerts.mdx+++ b/docs/documentation/platform/pki/settings/alerts.mdx@@ -114,7 +114,7 @@ Only each signer's current certificate counts. When you reissue a signer's certi],"metadata": {"totalItems": 1,- "viewUrl": "https://app.infisical.com/organizations/<org-id>/projects/cert-manager/<project-id>/inventory"+ "viewUrl": "https://app.infisical.com/organizations/<org-id>/cert-manager/inventory"}}}@@ -161,7 +161,7 @@ Only each signer's current certificate counts. When you reissue a signer's certi],"metadata": {"totalItems": 1,- "viewUrl": "https://app.infisical.com/organizations/<org-id>/projects/cert-manager/<project-id>/code-signing"+ "viewUrl": "https://app.infisical.com/organizations/<org-id>/cert-manager/code-signing"}}}diff --git a/frontend/CLAUDE.md b/frontend/CLAUDE.mdindex fcc2fdb3b6..5f4e3281d3 100644--- a/frontend/CLAUDE.md+++ b/frontend/CLAUDE.md@@ -105,7 +105,7 @@ PAM and Agent Vault live at `/organizations/$orgId/<slug>` over a single impliciA new org-scoped product therefore needs: a `<product>ProjectId` on the `Organization` type, an entry in `ORG_SCOPED_PRODUCT_TYPES` and `getOrgScopedProductFromPath` (`helpers/project.ts`), and a layout `beforeLoad` that bootstraps the id, patches it into the cached org, and returns both `implicitProjectId` and `implicitProductType` (see `pages/agent-vault/layout.tsx`). Use `isOrgScopedProduct(type)` rather than adding another pathname check; the sidebar, navbar, project switcher and nav links all key off it.-Certificate Manager is org-scoped too (`/organizations/$orgId/cert-manager/...`), but legacy orgs can hold several instances, so its layout resolves the project from instance state instead of an org field, through `resolveCertManagerProjectId` (`helpers/certManagerActiveProject.ts`): the `infisical-cm-active-project-<orgId>` cookie while the user is a member of that instance, else the active instance. The product switcher and the 403 page use the same helper. The layout writes the resolved id back to the cookie, because `inject-cert-manager-project-id.ts` resolves requests that name no project from it, and reloads the page when the resolved instance changes within one page load, since several cert-manager queries are not keyed by project. Consequences: anything that sends someone into a *specific* instance (the instance picker, a project-scoped identity row, a gateway's discovery row) sets that cookie first, since the URL can't say which; old `/projects/cert-manager/$projectId/...` URLs, which backend emails, webhooks and alerts still generate, go through `redirects/cert-manager-project-url-redirect.tsx`, which pins the named instance and strips the id. Shared views that pick project vs org scope from the URL use `useRouteProjectId()`, which also returns Certificate Manager's implicit project.+Certificate Manager is org-scoped too (`/organizations/$orgId/cert-manager/...`), but legacy orgs can hold several instances, so its layout resolves the project from instance state instead of an org field, through `resolveCertManagerProjectId` (`helpers/certManagerActiveProject.ts`): the `infisical-cm-active-project-<orgId>` cookie while the user is a member of that instance, else the active instance. The product switcher and the 403 page use the same helper. The layout writes the resolved id back to the cookie, because `inject-cert-manager-project-id.ts` resolves requests that name no project from it, and reloads the page when the resolved instance changes within one page load, since several cert-manager queries are not keyed by project. Consequences: anything that sends someone into a *specific* instance (the instance picker, a project-scoped identity row, a gateway's discovery row) sets that cookie first, since the URL can't say which; old `/projects/cert-manager/$projectId/...` URLs (emails and alerts sent before the move, bookmarks; the backend now links to `/cert-manager/...`, except legacy PKI Alerts V2 and the legacy-deprecation email) go through `redirects/cert-manager-project-url-redirect.tsx`, which pins the named instance and strips the id. In multi-instance orgs each tab also tags its Certificate Manager API requests with the instance it shows (`setTabCertManagerProjectId`, read by the `apiRequest` interceptor), because the cookie is shared across tabs; single-instance orgs send no project id. Shared views that pick project vs org scope from the URL use `useRouteProjectId()`, which also returns Certificate Manager's implicit project.## Conventionsdiff --git a/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsx b/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsxindex 8dfa3a1b6f..786ffc69e2 100644--- a/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsx+++ b/frontend/src/components/v3/platform/RootCommandMenu/RootCommandMenu.tsx@@ -238,13 +238,13 @@ const useEntityCommandGroups = ({organizations.map((organization) => [organization.id, organization]));- const certManagerProjectCountByOrg = projects.reduce<Record<string, number>>(- (counts, project) =>- project.type === ProjectType.CertificateManager- ? { ...counts, [project.orgId]: (counts[project.orgId] ?? 0) + 1 }- : counts,- {}- );+ const certManagerProjectCountByOrg: Record<string, number> = {};+ projects.forEach((project) => {+ if (project.type === ProjectType.CertificateManager) {+ certManagerProjectCountByOrg[project.orgId] =+ (certManagerProjectCountByOrg[project.orgId] ?? 0) + 1;+ }+ });const projectItems: GlobalCommandMenuItem[] = projects.map((project) => {const organization = organizationsById.get(project.orgId);diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsxindex 22b3f312c9..df3989af3e 100644--- a/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/IntegrationsListPage.tsx@@ -38,7 +38,7 @@ export const IntegrationsListPage = () => {return (<><Helmet>- <title>{t("common.head-title", { title: t("integrations.title") })}</title>+ <title>{t("common.head-title", { title: "Integrations" })}</title><meta property="og:image" content="/images/message.png" /><meta property="og:title" content="Manage your certificates in seconds" /><meta name="og:description" content="Sync and manage PKI certificates across services" />