Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'main' of github.com:Infisical/infisical into matheus/remove-project-mention-in-secret-scanning

Matheus Nogueirae04c9ab3ddf8
diff --cc frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
index 08bef6bce6,639159befe..4d176db7dd
--- a/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
+++ b/frontend/src/pages/project/AppConnectionsPage/AppConnectionsPage.tsx
@@@ -7,13 -7,13 +7,12 @@@ import
ProjectPermissionSub
} from "@app/context/ProjectPermissionContext/types";
import { withProjectPermission } from "@app/hoc";
--import { ProjectType } from "@app/hooks/api/projects/types";
import { AppConnectionsTable } from "@app/pages/organization/AppConnections/AppConnectionsPage/components";
++import { getProjectLabel, hidesProjects } from "@app/helpers/project";
export const AppConnectionsPage = withProjectPermission(
() => {
const { currentProject } = useProject();
- const isSecretScanning = currentProject.type === ProjectType.SecretScanning;
- const isCertManager = currentProject.type === ProjectType.CertificateManager;
return (
<div className="bg-page">
@@@ -27,10 -27,12 +26,8 @@@
<PageHeader
scope={currentProject.type}
className="w-full"
- title={isSecretScanning ? "App Connections" : "Project App Connections"}
- title={isCertManager ? "App Connections" : "Project App Connections"}
-- description={
- isSecretScanning ? "Manage App Connections" : "Manage project App Connections"
- isCertManager
- ? "Manage Certificate Manager App Connections"
- : "Manage project App Connections"
-- }
++ title={hidesProjects(currentProject.type) ? "App Connections" : "Project App Connections"}
++ description={`Manage ${getProjectLabel(currentProject.type)} App Connections`}
/>
<AppConnectionsTable projectId={currentProject.id} projectType={currentProject.type} />
diff --cc frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx
index 9ae725c74d,8165041c6a..6cd5ab5ee1
--- a/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx
+++ b/frontend/src/pages/public/ErrorPage/components/ProjectAccessError.tsx
@@@ -26,20 -32,15 +32,20 @@@ const getPamOrgIdFromPath = () =
const getAgentVaultOrgIdFromPath = () =>
window.location.pathname.match(/\/organizations\/([^/]+)\/agent-vault(\/|$)/)?.[1];
+ const getCertManagerOrgIdFromPath = () =>
+ window.location.pathname.match(/\/organizations\/([^/]+)\/cert-manager(\/|$)/)?.[1];
+
// Products users experience as a single app rather than something they pick a project for
- // (ProjectSelect hides itself for both), so the copy names the product instead of "this project".
- // Cert Manager and Secret Scanning still carry a $projectId in their routes for legacy multi-instance orgs.
+ // (ProjectSelect hides itself for them), so the copy names the product instead of "this project".
++// Secret Scanning still carries a $projectId in its route for legacy multi-instance orgs.
const PRODUCTS = [
{ pattern: /\/organizations\/[^/]+\/pam(\/|$)/, name: "Privileged Access Manager" },
{ pattern: /\/organizations\/[^/]+\/agent-vault(\/|$)/, name: "Agent Vault" },
- {
- pattern: /\/organizations\/[^/]+\/projects\/cert-manager(\/|$)/,
- name: "Certificate Manager"
- },
- { pattern: /\/organizations\/[^/]+\/cert-manager(\/|$)/, name: "Certificate Manager" }
++ { pattern: /\/organizations\/[^/]+\/cert-manager(\/|$)/, name: "Certificate Manager" },
+ {
+ pattern: /\/organizations\/[^/]+\/projects\/secret-scanning(\/|$)/,
+ name: "Secret Scanning"
+ }
];
const getProductNameFromPath = () =>