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
UI: add components with mocked data
adilsonc2e7d94b8361
diff --git a/frontend/src/helpers/project.ts b/frontend/src/helpers/project.tsindex ce30d48c30..8306e01af6 100644--- a/frontend/src/helpers/project.ts+++ b/frontend/src/helpers/project.ts@@ -97,11 +97,11 @@ export const urlSlugToProjectType = (slug: string): ProjectType | null => {return slug as ProjectType;};-// Org-wide resource pages (KMIP servers, Secret Sharing) live at literal-// /projects/<slug>/<resource> paths with no $type route param. Parse the product slug out of the-// pathname so the sidebar can resolve the active product when the route param is absent.+// Org-wide resource pages (KMIP servers, Secret Sharing, Product Settings, Insights) live at+// literal /projects/<slug>/<resource> paths with no $type route param. Parse the product slug out+// of the pathname so the sidebar can resolve the active product when the route param is absent.const ORG_RESOURCE_PROJECT_SLUG_RE =- /\/projects\/([^/]+)\/(?:kmip-servers|secret-sharing|product-settings)/;+ /\/projects\/([^/]+)\/(?:kmip-servers|secret-sharing|product-settings|insights)/;export const parseProjectSlugFromPath = (pathname: string): string | undefined =>pathname.match(ORG_RESOURCE_PROJECT_SLUG_RE)?.[1];diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectTypeNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectTypeNav.tsxindex 44aa65db7f..01441d51d2 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectTypeNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectTypeNav.tsx@@ -1,5 +1,5 @@import { Link, useLocation, useParams } from "@tanstack/react-router";-import { ChevronLeft, Server, Share2, SlidersHorizontal } from "lucide-react";+import { ActivityIcon, ChevronLeft, Server, Share2, SlidersHorizontal } from "lucide-react";import {ProjectIcon,@@ -33,6 +33,7 @@ export const ProjectTypeNav = () => {: false;const isOnKmipServers = pathname.includes("/kmip-servers");const isOnSecretSharing = pathname.includes("/secret-sharing");+ const isOnSecretManagementInsights = pathname.includes("/secret-management/insights");const isOnSecretManagementProductSettings = pathname.includes("/secret-management/product-settings");@@ -57,7 +58,10 @@ export const ProjectTypeNav = () => {asChildcloseOnMobileisActive={- !isOnKmipServers && !isOnSecretSharing && !isOnSecretManagementProductSettings+ !isOnKmipServers &&+ !isOnSecretSharing &&+ !isOnSecretManagementInsights &&+ !isOnSecretManagementProductSettings}tooltip="Projects">@@ -90,6 +94,26 @@ export const ProjectTypeNav = () => {</SidebarMenuButton></SidebarMenuItem>)}+ {isSecretManager && (+ <SidebarMenuItem>+ <SidebarMenuButton+ size="lg"+ scope="project"+ asChild+ closeOnMobile+ isActive={isOnSecretManagementInsights}+ tooltip="Insights"+ >+ <Link+ to="/organizations/$orgId/projects/secret-management/insights"+ params={{ orgId: resolvedOrgId }}+ >+ <ActivityIcon className="size-4" />+ <span>Insights</span>+ </Link>+ </SidebarMenuButton>+ </SidebarMenuItem>+ )}{isSecretManager && (<SidebarMenuItem><SidebarMenuButtondiff --git a/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsxnew file mode 100644index 0000000000..ada74ee4b7--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/SecretInsightsPage.tsx@@ -0,0 +1,120 @@+import { Fragment, ReactNode } from "react";+import { Helmet } from "react-helmet";+import { BoxIcon, KeyIcon, LayersIcon, RefreshCwIcon } from "lucide-react";++import { PageHeader } from "@app/components/v2";+import { OrgPermissionSubjects } from "@app/context";+import { OrgPermissionSecretsManagementInsightsActions } from "@app/context/OrgPermissionContext/types";+import { withPermission } from "@app/hoc";+import { ProjectType } from "@app/hooks/api/projects/types";++import {+ AuthMethodsCard,+ NeedsAttentionCard,+ SecretAccessVolumeCard,+ StaticSecretPresenceCard,+ SummaryCard+} from "./components";+import {+ MOCK_ACCESS_VOLUME,+ MOCK_AUTH_METHOD_USAGE,+ MOCK_ORG_COUNTS,+ MOCK_PROJECTS_INSIGHTS,+ MOCK_SECRETS_SUMMARY,+ MOCK_STATIC_SECRET_USAGE+} from "./mockData";++export const SecretInsightsPage = withPermission(+ () => {+ // TODO: replace the mock constants with the org insights query hooks once the cards are+ // wired. isSupported comes from the endpoints and decides whether the audit-log-backed+ // cards render at all (e.g. self-hosted instances without ClickHouse).+ const summary = MOCK_SECRETS_SUMMARY;+ const projectsInsights = MOCK_PROJECTS_INSIGHTS;+ const authMethodUsage = MOCK_AUTH_METHOD_USAGE;+ const staticSecretUsage = MOCK_STATIC_SECRET_USAGE;+ const accessVolume = MOCK_ACCESS_VOLUME;+ const counts = MOCK_ORG_COUNTS;++ const headerStats: { label: string; value: number; icon: ReactNode }[] = [+ {+ label: "projects",+ value: counts.projects,+ icon: <BoxIcon className="size-3.5 text-accent" />+ },+ {+ label: "secrets",+ value: counts.secrets,+ icon: <KeyIcon className="size-3.5 text-accent" />+ },+ {+ label: "environments",+ value: counts.environments,+ icon: <LayersIcon className="size-3.5 text-accent" />+ },+ {+ label: "rotations",+ value: counts.rotations,+ icon: <RefreshCwIcon className="size-3.5 text-secret-rotation" />+ }+ ];++ const renderStatStrip = (className: string) => (+ <div className={`flex-wrap items-center gap-x-2 gap-y-1 text-xs text-accent ${className}`}>+ {headerStats.map((stat, idx) => (+ <Fragment key={stat.label}>+ {idx > 0 && <span className="text-border">|</span>}+ <span className="flex items-center gap-1 whitespace-nowrap">+ {stat.icon}+ <span className="ml-1">+ <span className="text-foreground/75">{stat.value.toLocaleString()}</span>{" "}+ {stat.label}+ </span>+ </span>+ </Fragment>+ ))}+ </div>+ );++ return (+ <>+ <Helmet>+ <title>Secret Insights | Infisical</title>+ <link rel="icon" href="/infisical.ico" />+ </Helmet>+ <div className="h-full">+ <div className="mx-auto h-full w-full max-w-8xl bg-bunker-800 text-white">+ <PageHeader+ className="mb-4 dashboard:mb-10"+ scope={ProjectType.SecretManager}+ title="Insights"+ description="Organization-wide visibility into secret health, access patterns, and authentication hygiene."+ >+ {renderStatStrip("hidden justify-end dashboard:flex")}+ </PageHeader>+ {renderStatStrip("mb-6 flex justify-start dashboard:hidden")}+ <div className="flex flex-col gap-4 pb-8">+ <SummaryCard summary={summary} />+ <NeedsAttentionCard data={projectsInsights} />+ <div+ className={+ authMethodUsage.isSupported+ ? "grid gap-4 xl:grid-cols-[1.35fr_1fr]"+ : "grid gap-4"+ }+ >+ {authMethodUsage.isSupported && <AuthMethodsCard data={authMethodUsage} />}+ <StaticSecretPresenceCard data={staticSecretUsage} />+ </div>+ {accessVolume.isSupported && <SecretAccessVolumeCard data={accessVolume} />}+ </div>+ </div>+ </div>+ </>+ );+ },+ {+ action: OrgPermissionSecretsManagementInsightsActions.Read,+ subject: OrgPermissionSubjects.SecretsManagementInsights+ }+);diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/AuthMethodsCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/AuthMethodsCard.tsxnew file mode 100644index 0000000000..596e0a1ff6--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/components/AuthMethodsCard.tsx@@ -0,0 +1,155 @@+import { useMemo } from "react";+import { InfoIcon, TriangleAlertIcon } from "lucide-react";++import {+ Alert,+ AlertDescription,+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+ Empty,+ EmptyHeader,+ EmptyTitle,+ Tooltip,+ TooltipContent,+ TooltipTrigger+} from "@app/components/v3";+import { IdentityAuthMethod, identityAuthToNameMap } from "@app/hooks/api";++import { TAuthMethodUsage } from "../types";+import { CHART_COLORS, UNKNOWN_SERIES_COLOR } from "./chartColors";++type Segment = {+ key: string;+ label: string;+ count: number;+ pct: number;+ color: string;+ isUnknown: boolean;+};++const humanizeAuthMethod = (authMethod: string) =>+ identityAuthToNameMap[authMethod as IdentityAuthMethod] ??+ authMethod+ .split("-")+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))+ .join(" ");++export const AuthMethodsCard = ({ data }: { data: TAuthMethodUsage }) => {+ const segments = useMemo<Segment[]>(() => {+ if (data.totalFetches === 0) return [];++ const methodSegments: Segment[] = [...data.methods]+ .sort((a, b) => b.count - a.count)+ .map((method, index) => ({+ key: method.authMethod,+ label: humanizeAuthMethod(method.authMethod),+ count: method.count,+ pct: (method.count / data.totalFetches) * 100,+ color: CHART_COLORS[index % CHART_COLORS.length],+ isUnknown: false+ }));++ if (data.unknownCount > 0) {+ methodSegments.push({+ key: "unknown",+ label: "Unknown",+ count: data.unknownCount,+ pct: (data.unknownCount / data.totalFetches) * 100,+ color: UNKNOWN_SERIES_COLOR,+ isUnknown: true+ });+ }++ return methodSegments;+ }, [data]);++ const staticTokenPct = useMemo(() => {+ if (data.totalFetches === 0) return 0;+ const staticTokenCount =+ data.methods.find((method) => method.authMethod === IdentityAuthMethod.TOKEN_AUTH)?.count ??+ 0;+ return (staticTokenCount / data.totalFetches) * 100;+ }, [data]);++ return (+ <Card>+ <CardHeader>+ <CardTitle>Auth Methods Used to Fetch Secrets</CardTitle>+ <CardDescription>+ Share of authenticated fetches by machine identity auth method, past 7 days.+ </CardDescription>+ </CardHeader>+ <CardContent>+ {segments.length === 0 && (+ <Empty className="border-0">+ <EmptyHeader>+ <EmptyTitle>No secret fetch data yet</EmptyTitle>+ </EmptyHeader>+ </Empty>+ )}+ {segments.length > 0 && (+ <div className="flex flex-col gap-5">+ <div className="flex h-2.5 w-full gap-px overflow-hidden rounded-full">+ {segments.map((segment) => (+ <div+ key={segment.key}+ className="min-w-[3px]"+ style={{ width: `${segment.pct}%`, backgroundColor: segment.color }}+ />+ ))}+ </div>+ <div className="flex flex-col">+ {segments.map((segment, index) => (+ <div+ key={segment.key}+ className={`flex items-center gap-3 py-2 ${+ index < segments.length - 1 ? "border-b border-border" : ""+ }`}+ >+ <span+ className="size-2.5 shrink-0 rounded-full"+ style={{ backgroundColor: segment.color }}+ />+ <span className="flex-1 text-sm">+ {segment.label}+ {segment.isUnknown && (+ <Tooltip>+ <TooltipTrigger asChild>+ <InfoIcon className="mb-0.5 ml-1 inline size-3 text-muted" />+ </TooltipTrigger>+ <TooltipContent>+ <p className="max-w-xs text-xs">+ Only new requests will display the auth method. Older requests may not+ have this information recorded.+ </p>+ </TooltipContent>+ </Tooltip>+ )}+ </span>+ <span className="text-sm text-muted">+ {segment.count.toLocaleString()} {segment.count === 1 ? "fetch" : "fetches"}+ </span>+ <span className="min-w-[48px] text-right text-sm font-medium">+ {Math.round(segment.pct)}%+ </span>+ </div>+ ))}+ </div>+ {staticTokenPct > 0 && (+ <Alert variant="warning">+ <TriangleAlertIcon />+ <AlertDescription>+ {Math.round(staticTokenPct)}% of fetches still use static tokens. Migrate those+ identities to a workload auth method to remove long-lived credentials.+ </AlertDescription>+ </Alert>+ )}+ </div>+ )}+ </CardContent>+ </Card>+ );+};diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/NeedsAttentionCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/NeedsAttentionCard.tsxnew file mode 100644index 0000000000..d1c2ac5df1--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/components/NeedsAttentionCard.tsx@@ -0,0 +1,201 @@+import { useMemo, useState } from "react";+import { useNavigate } from "@tanstack/react-router";+import {+ CheckIcon,+ ChevronDownIcon,+ ChevronRightIcon,+ ChevronUpIcon,+ SearchIcon+} from "lucide-react";++import {+ Badge,+ Button,+ Card,+ CardAction,+ CardContent,+ CardDescription,+ CardFooter,+ CardHeader,+ CardTitle,+ Empty,+ EmptyHeader,+ EmptyTitle,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+ TBadgeProps+} from "@app/components/v3";+import { useOrganization } from "@app/context";++import { TProjectInsightWarnings, TProjectsInsights } from "../types";++const COLLAPSED_ROW_COUNT = 4;++const projectInsightsRoute =+ "/organizations/$orgId/projects/secret-management/$projectId/insights" as const;++const pluralize = (count: number, noun: string, plural = `${noun}s`) =>+ `${count.toLocaleString()} ${count === 1 ? noun : plural}`;++const WARNING_CHIPS: {+ key: keyof TProjectInsightWarnings;+ variant: TBadgeProps["variant"];+ label: (count: number) => string;+}[] = [+ { key: "failedRotations", variant: "danger", label: (c) => pluralize(c, "failed rotation") },+ { key: "failedSyncs", variant: "warning", label: (c) => pluralize(c, "failed sync") },+ { key: "staleSecrets", variant: "warning", label: (c) => pluralize(c, "stale secret") },+ { key: "orphanedLeases", variant: "warning", label: (c) => pluralize(c, "orphaned lease") },+ { key: "duplicatedSecrets", variant: "neutral", label: (c) => `${c.toLocaleString()} duplicated` }+];++const WarningBadges = ({ warnings }: { warnings: TProjectInsightWarnings }) => (+ <div className="flex flex-wrap gap-1">+ {WARNING_CHIPS.map(({ key, variant, label }) => {+ const count = warnings[key];+ // null means unknown (not zero) — omit the chip rather than claiming a count+ if (!count) return null;+ return (+ <Badge key={key} variant={variant}>+ {label(count)}+ </Badge>+ );+ })}+ </div>+);++const hasIssues = (warnings: TProjectInsightWarnings) =>+ WARNING_CHIPS.some(({ key }) => (warnings[key] ?? 0) > 0);++export const NeedsAttentionCard = ({ data }: { data: TProjectsInsights }) => {+ const navigate = useNavigate();+ const { currentOrg } = useOrganization();+ const [search, setSearch] = useState("");+ const [showAll, setShowAll] = useState(false);++ const issueProjects = useMemo(+ () =>+ data.projects+ .filter((project) => hasIssues(project.warnings))+ .sort((a, b) => b.severityScore - a.severityScore),+ [data.projects]+ );++ const filtered = useMemo(() => {+ const query = search.trim().toLowerCase();+ if (!query) return issueProjects;+ return issueProjects.filter(+ (project) =>+ project.projectName.toLowerCase().includes(query) ||+ project.projectSlug.toLowerCase().includes(query)+ );+ }, [issueProjects, search]);++ const isSearching = search.trim().length > 0;+ const visible = showAll || isSearching ? filtered : filtered.slice(0, COLLAPSED_ROW_COUNT);+ const cleanCount = data.totalProjects - data.projectsWithIssues;++ return (+ <Card>+ <CardHeader>+ <CardTitle>Needs Attention</CardTitle>+ <CardDescription>+ {data.projectsWithIssues} of {data.totalProjects} projects have outstanding issues,+ ordered by severity.+ </CardDescription>+ <CardAction>+ <InputGroup className="w-64">+ <InputGroupAddon align="inline-start">+ <SearchIcon />+ </InputGroupAddon>+ <InputGroupInput+ placeholder="Search projects..."+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ />+ </InputGroup>+ </CardAction>+ </CardHeader>+ <CardContent>+ {issueProjects.length === 0 && (+ <Empty className="border-0">+ <EmptyHeader>+ <EmptyTitle>All projects are healthy</EmptyTitle>+ </EmptyHeader>+ </Empty>+ )}+ {issueProjects.length > 0 && filtered.length === 0 && (+ <Empty className="border-0">+ <EmptyHeader>+ <EmptyTitle>No projects match your search</EmptyTitle>+ </EmptyHeader>+ </Empty>+ )}+ {filtered.length > 0 && (+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>Project</TableHead>+ <TableHead>Issues</TableHead>+ <TableHead className="text-right">Stale</TableHead>+ <TableHead className="text-right">Secrets</TableHead>+ <TableHead className="w-8" />+ </TableRow>+ </TableHeader>+ <TableBody>+ {visible.map((project) => (+ <TableRow+ key={project.projectId}+ onClick={() =>+ navigate({+ to: projectInsightsRoute,+ params: { orgId: currentOrg.id, projectId: project.projectId }+ })+ }+ >+ <TableCell className="font-medium">{project.projectName}</TableCell>+ <TableCell>+ <WarningBadges warnings={project.warnings} />+ </TableCell>+ <TableCell className="text-right">+ <span+ className={project.warnings.staleSecrets > 0 ? "text-warning" : "text-muted"}+ >+ {project.warnings.staleSecrets.toLocaleString()}+ </span>+ </TableCell>+ <TableCell className="text-right">+ {project.totalSecrets.toLocaleString()}+ </TableCell>+ <TableCell>+ <ChevronRightIcon className="size-3.5 text-muted" />+ </TableCell>+ </TableRow>+ ))}+ </TableBody>+ </Table>+ )}+ </CardContent>+ <CardFooter className="justify-between">+ <span className="flex items-center gap-2 text-sm text-success">+ <CheckIcon className="size-3.5" />+ {cleanCount.toLocaleString()} {cleanCount === 1 ? "project has" : "projects have"} no+ outstanding issues+ </span>+ {!isSearching && filtered.length > COLLAPSED_ROW_COUNT && (+ <Button variant="ghost" size="xs" onClick={() => setShowAll((prev) => !prev)}>+ {showAll ? "Show Fewer Projects" : "Show All Projects"}+ {showAll ? <ChevronUpIcon /> : <ChevronDownIcon />}+ </Button>+ )}+ </CardFooter>+ </Card>+ );+};diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/SecretAccessVolumeCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/SecretAccessVolumeCard.tsxnew file mode 100644index 0000000000..303a194279--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/components/SecretAccessVolumeCard.tsx@@ -0,0 +1,66 @@+import { useMemo } from "react";+import { format, parseISO } from "date-fns";++import {+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+ Empty,+ EmptyHeader,+ EmptyTitle+} from "@app/components/v3";+import { LineChart } from "@app/pages/secret-manager/InsightsPage/components/LineChart";++import { TSecretAccessVolume } from "../types";++export const SecretAccessVolumeCard = ({ data }: { data: TSecretAccessVolume }) => {+ const chartData = useMemo(+ () =>+ data.days.map((day) => ({+ label: format(parseISO(day.date), "EEE"),+ value: day.total+ })),+ [data.days]+ );++ const peak = useMemo(() => {+ if (data.days.length === 0) return null;+ return data.days.reduce((max, day) => (day.total > max.total ? day : max));+ }, [data.days]);++ return (+ <Card>+ <CardHeader>+ <CardTitle>Secret Access Volume</CardTitle>+ <CardDescription>Secret read requests across all projects, past 7 days.</CardDescription>+ </CardHeader>+ <CardContent>+ {chartData.length === 0 && (+ <Empty className="border-0">+ <EmptyHeader>+ <EmptyTitle>No secret access data yet</EmptyTitle>+ </EmptyHeader>+ </Empty>+ )}+ {chartData.length > 0 && (+ <div className="flex flex-col gap-4">+ <LineChart+ data={chartData}+ valueLabel="Reads"+ gradientId="org-access-volume"+ height={240}+ />+ {peak && peak.total > 0 && (+ <span className="text-xs text-accent">+ Peak: {peak.total.toLocaleString()} reads on{" "}+ {format(parseISO(peak.date), "EEE, MMM d")}+ </span>+ )}+ </div>+ )}+ </CardContent>+ </Card>+ );+};diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/StaticSecretPresenceCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/StaticSecretPresenceCard.tsxnew file mode 100644index 0000000000..1cfc49ccad--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/components/StaticSecretPresenceCard.tsx@@ -0,0 +1,162 @@+import { useMemo } from "react";+import { format, parseISO } from "date-fns";+import { TrendingDownIcon, TrendingUpIcon } from "lucide-react";+import {+ Bar,+ BarChart,+ CartesianGrid,+ Cell,+ ResponsiveContainer,+ Tooltip,+ XAxis,+ YAxis+} from "recharts";++import {+ Badge,+ Card,+ CardAction,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+ Empty,+ EmptyHeader,+ EmptyTitle,+ TBadgeProps+} from "@app/components/v3";++import { TStaticSecretUsage } from "../types";++const BAR_GRADIENT_ID = "org-static-secrets-bar";++type TrendBadge = { label: string; variant: TBadgeProps["variant"] };++type WeekPoint = {+ label: string;+ weekLabel: string;+ created: number;+ isPartial: boolean;+};++const getCreationTrend = (weeks: TStaticSecretUsage["weeks"]): TrendBadge | null => {+ if (weeks.length < 3) return null;+ const [a, b, c] = weeks.slice(-3).map((week) => week.totalSecrets);+ if (a < b && b < c) return { label: "Increasing", variant: "warning" };+ if (a > b && b > c) return { label: "Decreasing", variant: "success" };+ return { label: "Steady", variant: "neutral" };+};++const ChartTooltip = ({+ active,+ payload+}: {+ active?: boolean;+ payload?: { payload: WeekPoint }[];+}) => {+ if (!active || !payload?.length) return null;+ const week = payload[0].payload;+ return (+ <div className="rounded-lg border border-border bg-popover px-3 py-2 text-xs">+ <div className="font-medium text-foreground">Week of {week.weekLabel}</div>+ <div className="mt-0.5 text-label">+ {week.created.toLocaleString()} {week.created === 1 ? "secret" : "secrets"} created+ </div>+ {week.isPartial && <div className="mt-0.5 text-warning">Week in progress</div>}+ </div>+ );+};++export const StaticSecretPresenceCard = ({ data }: { data: TStaticSecretUsage }) => {+ const weeks = useMemo<WeekPoint[]>(+ () =>+ data.weeks.map((week) => ({+ label: format(parseISO(week.weekStart), "MMM d"),+ weekLabel: format(parseISO(week.weekStart), "MMMM d"),+ created: week.totalSecrets,+ isPartial: week.isPartial+ })),+ [data.weeks]+ );++ const trend = useMemo(() => getCreationTrend(data.weeks), [data.weeks]);++ return (+ // h-full lets the card stretch to match AuthMethodsCard when they share a grid row+ // (the Card base class is h-fit, which would otherwise opt out of the stretch)+ <Card className="h-full">+ <CardHeader>+ <CardTitle>Static Secret Presence</CardTitle>+ <CardDescription>+ Static secrets created across all projects, past 12 weeks.+ </CardDescription>+ {trend && (+ <CardAction>+ <Badge variant={trend.variant}>+ {trend.label === "Decreasing" && <TrendingDownIcon />}+ {trend.label === "Increasing" && <TrendingUpIcon />}+ {trend.label}+ </Badge>+ </CardAction>+ )}+ </CardHeader>+ <CardContent className="flex flex-1 flex-col">+ {weeks.length === 0 && (+ <Empty className="border-0">+ <EmptyHeader>+ <EmptyTitle>No secret creation data yet</EmptyTitle>+ </EmptyHeader>+ </Empty>+ )}+ {weeks.length > 0 && (+ <div className="min-h-[240px] flex-1">+ <ResponsiveContainer width="100%" height="100%">+ <BarChart data={weeks} margin={{ top: 8, right: 8, bottom: 0, left: -16 }}>+ <CartesianGrid+ strokeDasharray="4 4"+ stroke="var(--color-border)"+ vertical={false}+ />+ <XAxis+ dataKey="label"+ tick={{ fontSize: 11, fill: "var(--color-label)" }}+ axisLine={false}+ tickLine={false}+ interval="preserveStartEnd"+ />+ <YAxis+ tick={{ fontSize: 11, fill: "var(--color-label)" }}+ axisLine={false}+ tickLine={false}+ allowDecimals={false}+ />+ <Tooltip+ content={<ChartTooltip />}+ cursor={{ fill: "var(--color-foreground)", fillOpacity: 0.04 }}+ isAnimationActive={false}+ />+ <defs>+ <linearGradient id={BAR_GRADIENT_ID} x1="0" y1="0" x2="0" y2="1">+ <stop offset="0%" stopColor="var(--color-info)" stopOpacity={1} />+ <stop offset="100%" stopColor="var(--color-info)" stopOpacity={0.5} />+ </linearGradient>+ </defs>+ <Bar dataKey="created" radius={[4, 4, 0, 0]} maxBarSize={32}>+ {weeks.map((week) => (+ <Cell+ key={week.label}+ fill={`url(#${BAR_GRADIENT_ID})`}+ fillOpacity={week.isPartial ? 0.4 : 1}+ stroke={week.isPartial ? "var(--color-info)" : undefined}+ strokeDasharray={week.isPartial ? "3 3" : undefined}+ />+ ))}+ </Bar>+ </BarChart>+ </ResponsiveContainer>+ </div>+ )}+ </CardContent>+ </Card>+ );+};diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/SummaryCard.tsx b/frontend/src/pages/organization/SecretInsightsPage/components/SummaryCard.tsxnew file mode 100644index 0000000000..97419b686a--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/components/SummaryCard.tsx@@ -0,0 +1,69 @@+import { BotIcon, ClockIcon, UsersIcon } from "lucide-react";++import { Card, CardAction, CardContent, CardHeader, CardTitle } from "@app/components/v3";+import { cn } from "@app/components/v3/utils";++import { TSecretsSummary } from "../types";++type StatCardProps = {+ title: string;+ icon: React.ReactNode;+ iconVariant: "info" | "warning" | "danger";+ value: number;+ suffix?: string;+ caption: string;+};++const StatCard = ({ title, icon, iconVariant, value, suffix, caption }: StatCardProps) => (+ <Card className="flex-1">+ <CardHeader>+ <CardTitle>{title}</CardTitle>+ <CardAction>+ <div+ className={cn(+ "flex size-9 items-center justify-center rounded-md border [&>svg]:size-5",+ iconVariant === "info" && "border-info/15 bg-info/10 text-info",+ iconVariant === "warning" && "border-warning/15 bg-warning/10 text-warning",+ iconVariant === "danger" && "border-danger/15 bg-danger/10 text-danger"+ )}+ >+ {icon}+ </div>+ </CardAction>+ </CardHeader>+ <CardContent className="flex flex-col gap-3">+ <div>+ <span className="text-2xl font-semibold">{value.toLocaleString()}</span>+ {suffix && <span className="ml-2 text-sm text-muted">{suffix}</span>}+ </div>+ <span className="text-xs text-muted">{caption}</span>+ </CardContent>+ </Card>+);++export const SummaryCard = ({ summary }: { summary: TSecretsSummary }) => (+ <div className="grid gap-4 md:grid-cols-3">+ <StatCard+ title="Dynamic Secrets in Use"+ icon={<ClockIcon />}+ iconVariant="warning"+ value={summary.activeLeases}+ suffix="active leases"+ caption="Leases currently issued across all projects"+ />+ <StatCard+ title="Users"+ icon={<UsersIcon />}+ iconVariant="info"+ value={summary.users}+ caption="Members of this organization"+ />+ <StatCard+ title="Machine Identities"+ icon={<BotIcon />}+ iconVariant="info"+ value={summary.identities}+ caption="Identities with access to this organization"+ />+ </div>+);diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/chartColors.ts b/frontend/src/pages/organization/SecretInsightsPage/components/chartColors.tsnew file mode 100644index 0000000000..69a8107f58--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/components/chartColors.ts@@ -0,0 +1,16 @@+// Categorical palette built from theme tokens only (DESIGN.md forbids new hex values).+// TODO: hoist a shared chart palette — this list is duplicated in+// pages/cert-manager/DashboardPage/components/chart-theme.tsx, and+// pages/secret-manager/InsightsPage/components/AuthMethodChart.tsx keeps a hex variant.+export const CHART_COLORS = [+ "var(--color-info)",+ "var(--color-warning)",+ "var(--color-neutral)",+ "var(--color-accent)",+ "var(--color-success)",+ "var(--color-org)",+ "var(--color-danger)"+];++// Reserved for the "Unknown" distribution segment so it never collides with a named series.+export const UNKNOWN_SERIES_COLOR = "var(--color-muted)";diff --git a/frontend/src/pages/organization/SecretInsightsPage/components/index.ts b/frontend/src/pages/organization/SecretInsightsPage/components/index.tsnew file mode 100644index 0000000000..51cdae0140--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/components/index.ts@@ -0,0 +1,5 @@+export { AuthMethodsCard } from "./AuthMethodsCard";+export { NeedsAttentionCard } from "./NeedsAttentionCard";+export { SecretAccessVolumeCard } from "./SecretAccessVolumeCard";+export { StaticSecretPresenceCard } from "./StaticSecretPresenceCard";+export { SummaryCard } from "./SummaryCard";diff --git a/frontend/src/pages/organization/SecretInsightsPage/mockData.ts b/frontend/src/pages/organization/SecretInsightsPage/mockData.tsnew file mode 100644index 0000000000..7fd4ab197f--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/mockData.ts@@ -0,0 +1,202 @@+import { IdentityAuthMethod } from "@app/hooks/api";++import {+ TAuthMethodUsage,+ TOrgCounts,+ TProjectsInsights,+ TSecretAccessVolume,+ TSecretsSummary,+ TStaticSecretUsage+} from "./types";++// Placeholder data until the cards are wired to the org insights endpoints.++export const MOCK_ORG_COUNTS: TOrgCounts = {+ projects: 35,+ secrets: 1284,+ environments: 96,+ rotations: 57+};++export const MOCK_SECRETS_SUMMARY: TSecretsSummary = {+ activeLeases: 342,+ users: 128,+ identities: 416+};++export const MOCK_PROJECTS_INSIGHTS: TProjectsInsights = {+ totalProjects: 35,+ projectsWithIssues: 9,+ projects: [+ {+ projectId: "00000000-0000-0000-0000-000000000001",+ projectName: "payments-api",+ projectSlug: "payments-api",+ totalSecrets: 86,+ severityScore: 96,+ warnings: {+ duplicatedSecrets: 4,+ staleSecrets: 23,+ failedRotations: 2,+ failedSyncs: 1,+ orphanedLeases: 3+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000002",+ projectName: "auth-service",+ projectSlug: "auth-service",+ totalSecrets: 112,+ severityScore: 74,+ warnings: {+ duplicatedSecrets: 6,+ staleSecrets: 18,+ failedRotations: 0,+ failedSyncs: 3,+ orphanedLeases: 0+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000003",+ projectName: "data-pipeline",+ projectSlug: "data-pipeline",+ totalSecrets: 64,+ severityScore: 68,+ warnings: {+ duplicatedSecrets: null,+ staleSecrets: 12,+ failedRotations: 1,+ failedSyncs: 0,+ orphanedLeases: 7+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000004",+ projectName: "infra-core",+ projectSlug: "infra-core",+ totalSecrets: 203,+ severityScore: 55,+ warnings: {+ duplicatedSecrets: 9,+ staleSecrets: 6,+ failedRotations: 0,+ failedSyncs: 2,+ orphanedLeases: 0+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000005",+ projectName: "billing-service",+ projectSlug: "billing-service",+ totalSecrets: 57,+ severityScore: 44,+ warnings: {+ duplicatedSecrets: 0,+ staleSecrets: 31,+ failedRotations: 0,+ failedSyncs: 0,+ orphanedLeases: 0+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000006",+ projectName: "ml-inference",+ projectSlug: "ml-inference",+ totalSecrets: 71,+ severityScore: 32,+ warnings: {+ duplicatedSecrets: 0,+ staleSecrets: 8,+ failedRotations: 0,+ failedSyncs: 1,+ orphanedLeases: 0+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000007",+ projectName: "staging-sandbox",+ projectSlug: "staging-sandbox",+ totalSecrets: 132,+ severityScore: 27,+ warnings: {+ duplicatedSecrets: 0,+ staleSecrets: 17,+ failedRotations: 0,+ failedSyncs: 0,+ orphanedLeases: 0+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000008",+ projectName: "web-frontend",+ projectSlug: "web-frontend",+ totalSecrets: 44,+ severityScore: 21,+ warnings: {+ duplicatedSecrets: 3,+ staleSecrets: 14,+ failedRotations: 0,+ failedSyncs: 0,+ orphanedLeases: 0+ }+ },+ {+ projectId: "00000000-0000-0000-0000-000000000009",+ projectName: "edge-gateway",+ projectSlug: "edge-gateway",+ totalSecrets: 92,+ severityScore: 12,+ warnings: {+ duplicatedSecrets: 12,+ staleSecrets: 0,+ failedRotations: 0,+ failedSyncs: 0,+ orphanedLeases: 1+ }+ }+ ]+};++export const MOCK_AUTH_METHOD_USAGE: TAuthMethodUsage = {+ isSupported: true,+ totalFetches: 48470,+ unknownCount: 1150,+ methods: [+ { authMethod: IdentityAuthMethod.UNIVERSAL_AUTH, count: 19400 },+ { authMethod: IdentityAuthMethod.KUBERNETES_AUTH, count: 10400 },+ { authMethod: IdentityAuthMethod.AWS_AUTH, count: 6630 },+ { authMethod: IdentityAuthMethod.OIDC_AUTH, count: 4260 },+ { authMethod: IdentityAuthMethod.GCP_AUTH, count: 3790 },+ { authMethod: IdentityAuthMethod.TOKEN_AUTH, count: 2840 }+ ]+};++export const MOCK_STATIC_SECRET_USAGE: TStaticSecretUsage = {+ weeks: [+ { weekStart: "2026-05-18", totalSecrets: 24, isPartial: false },+ { weekStart: "2026-05-25", totalSecrets: 31, isPartial: false },+ { weekStart: "2026-06-01", totalSecrets: 18, isPartial: false },+ { weekStart: "2026-06-08", totalSecrets: 42, isPartial: false },+ { weekStart: "2026-06-15", totalSecrets: 37, isPartial: false },+ { weekStart: "2026-06-22", totalSecrets: 29, isPartial: false },+ { weekStart: "2026-06-29", totalSecrets: 46, isPartial: false },+ { weekStart: "2026-07-06", totalSecrets: 51, isPartial: false },+ { weekStart: "2026-07-13", totalSecrets: 34, isPartial: false },+ { weekStart: "2026-07-20", totalSecrets: 58, isPartial: false },+ { weekStart: "2026-07-27", totalSecrets: 63, isPartial: false },+ { weekStart: "2026-08-03", totalSecrets: 21, isPartial: true }+ ]+};++export const MOCK_ACCESS_VOLUME: TSecretAccessVolume = {+ isSupported: true,+ days: [+ { date: "2026-07-31", total: 2380 },+ { date: "2026-08-01", total: 1420 },+ { date: "2026-08-02", total: 1180 },+ { date: "2026-08-03", total: 3620 },+ { date: "2026-08-04", total: 3300 },+ { date: "2026-08-05", total: 4213 },+ { date: "2026-08-06", total: 3980 }+ ]+};diff --git a/frontend/src/pages/organization/SecretInsightsPage/route.tsx b/frontend/src/pages/organization/SecretInsightsPage/route.tsxnew file mode 100644index 0000000000..e9b1f39286--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/route.tsx@@ -0,0 +1,16 @@+import { createFileRoute } from "@tanstack/react-router";++import { SecretInsightsPage } from "./SecretInsightsPage";++export const Route = createFileRoute(+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/insights"+)({+ component: SecretInsightsPage,+ context: () => ({+ breadcrumbs: [+ {+ label: "Insights"+ }+ ]+ })+});diff --git a/frontend/src/pages/organization/SecretInsightsPage/types.ts b/frontend/src/pages/organization/SecretInsightsPage/types.tsnew file mode 100644index 0000000000..de322a1a7a--- /dev/null+++ b/frontend/src/pages/organization/SecretInsightsPage/types.ts@@ -0,0 +1,61 @@+import { IdentityAuthMethod } from "@app/hooks/api";++// These types mirror the org insights endpoint schemas in+// backend/src/ee/services/insights/insights-schemas.ts. The cards are not wired to the+// backend yet; keeping the shapes identical means wiring later is only a data-source swap.++// Header stat strip counts. No org endpoint returns these yet — flag to backend when wiring.+export type TOrgCounts = {+ projects: number;+ secrets: number;+ environments: number;+ rotations: number;+};++export type TSecretsSummary = {+ activeLeases: number;+ users: number;+ identities: number;+};++export type TProjectInsightWarnings = {+ // null means unknown (e.g. secret blind index disabled), which is different from zero+ duplicatedSecrets: number | null;+ staleSecrets: number;+ failedRotations: number;+ failedSyncs: number;+ orphanedLeases: number;+};++export type TProjectInsight = {+ projectId: string;+ projectName: string;+ projectSlug: string;+ totalSecrets: number;+ severityScore: number;+ warnings: TProjectInsightWarnings;+};++export type TProjectsInsights = {+ projects: TProjectInsight[];+ totalProjects: number;+ projectsWithIssues: number;+};++export type TAuthMethodUsage = {+ isSupported: boolean;+ totalFetches: number;+ unknownCount: number;+ methods: { authMethod: IdentityAuthMethod; count: number }[];+};++export type TStaticSecretUsage = {+ // Secrets created during each of the last twelve UTC calendar weeks, oldest first.+ // totalSecrets is a per-week count, not a running total.+ weeks: { weekStart: string; totalSecrets: number; isPartial: boolean }[];+};++export type TSecretAccessVolume = {+ isSupported: boolean;+ days: { date: string; total: number }[];+};diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.tsindex 3d5c51ede8..692996e546 100644--- a/frontend/src/routeTree.gen.ts+++ b/frontend/src/routeTree.gen.ts@@ -89,6 +89,7 @@ import { Route as secretManagerRedirectsRedirectApprovalPageImport } from './pagimport { Route as projectAuditLogsPageRoutePamImport } from './pages/project/AuditLogsPage/route-pam'import { Route as projectAccessControlPageRoutePamImport } from './pages/project/AccessControlPage/route-pam'import { Route as organizationSettingsPageOauthCallbackPageRouteImport } from './pages/organization/SettingsPage/OauthCallbackPage/route'+import { Route as organizationSecretInsightsPageRouteImport } from './pages/organization/SecretInsightsPage/route'import { Route as pamPamTemplatesPageRouteImport } from './pages/pam/PamTemplatesPage/route'import { Route as pamPamSessionsPageRouteImport } from './pages/pam/PamSessionsPage/route'import { Route as pamPamDiscoveryPageRouteImport } from './pages/pam/PamDiscoveryPage/route'@@ -1086,6 +1087,13 @@ const organizationSettingsPageOauthCallbackPageRouteRoute =AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdSettingsRoute,} as any)+const organizationSecretInsightsPageRouteRoute =+ organizationSecretInsightsPageRouteImport.update({+ id: '/secret-management/insights',+ path: '/secret-management/insights',+ getParentRoute: () => organizationProjectsPageRouteRoute,+ } as any)+const pamPamTemplatesPageRouteRoute = pamPamTemplatesPageRouteImport.update({id: '/templates',path: '/templates',@@ -3173,6 +3181,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof pamPamTemplatesPageRouteImportparentRoute: typeof pamLayoutImport}+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/insights': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/insights'+ path: '/secret-management/insights'+ fullPath: '/organizations/$orgId/projects/secret-management/insights'+ preLoaderRoute: typeof organizationSecretInsightsPageRouteImport+ parentRoute: typeof organizationProjectsPageRouteImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback'path: '/oauth/callback'@@ -5343,6 +5358,7 @@ const AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanninterface organizationProjectsPageRouteRouteChildren {organizationProjectsPageProjectTypePageRouteRoute: typeof organizationProjectsPageProjectTypePageRouteRoute+ organizationSecretInsightsPageRouteRoute: typeof organizationSecretInsightsPageRouteRouteAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRouteWithChildrenAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRouteWithChildrenAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsKmipServersRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsKmipServersRouteWithChildren@@ -5356,6 +5372,8 @@ const organizationProjectsPageRouteRouteChildren: organizationProjectsPageRouteR{organizationProjectsPageProjectTypePageRouteRoute:organizationProjectsPageProjectTypePageRouteRoute,+ organizationSecretInsightsPageRouteRoute:+ organizationSecretInsightsPageRouteRoute,AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRoute:AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdRouteWithChildren,AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsProjectIdRoute:@@ -5877,6 +5895,7 @@ export interface FileRoutesByFullPath {'/organizations/$orgId/pam/discovery': typeof pamPamDiscoveryPageRouteRoute'/organizations/$orgId/pam/sessions': typeof pamPamSessionsPageRouteRoute'/organizations/$orgId/pam/templates': typeof pamPamTemplatesPageRouteRoute+ '/organizations/$orgId/projects/secret-management/insights': typeof organizationSecretInsightsPageRouteRoute'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute'/organizations/$orgId/pam/access': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRouteWithChildren'/organizations/$orgId/pam/access-management': typeof projectAccessControlPageRoutePamRoute@@ -6146,6 +6165,7 @@ export interface FileRoutesByTo {'/organizations/$orgId/pam/discovery': typeof pamPamDiscoveryPageRouteRoute'/organizations/$orgId/pam/sessions': typeof pamPamSessionsPageRouteRoute'/organizations/$orgId/pam/templates': typeof pamPamTemplatesPageRouteRoute+ '/organizations/$orgId/projects/secret-management/insights': typeof organizationSecretInsightsPageRouteRoute'/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute'/organizations/$orgId/pam/access-management': typeof projectAccessControlPageRoutePamRoute'/organizations/$orgId/pam/audit-logs': typeof projectAuditLogsPageRoutePamRoute@@ -6411,6 +6431,7 @@ export interface FileRoutesById {'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/discovery': typeof pamPamDiscoveryPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/sessions': typeof pamPamSessionsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/templates': typeof pamPamTemplatesPageRouteRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/insights': typeof organizationSecretInsightsPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback': typeof organizationSettingsPageOauthCallbackPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdPamPamLayoutAccessRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access-management': typeof projectAccessControlPageRoutePamRoute@@ -6693,6 +6714,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/pam/discovery'| '/organizations/$orgId/pam/sessions'| '/organizations/$orgId/pam/templates'+ | '/organizations/$orgId/projects/secret-management/insights'| '/organizations/$orgId/settings/oauth/callback'| '/organizations/$orgId/pam/access'| '/organizations/$orgId/pam/access-management'@@ -6961,6 +6983,7 @@ export interface FileRouteTypes {| '/organizations/$orgId/pam/discovery'| '/organizations/$orgId/pam/sessions'| '/organizations/$orgId/pam/templates'+ | '/organizations/$orgId/projects/secret-management/insights'| '/organizations/$orgId/settings/oauth/callback'| '/organizations/$orgId/pam/access-management'| '/organizations/$orgId/pam/audit-logs'@@ -7224,6 +7247,7 @@ export interface FileRouteTypes {| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/discovery'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/sessions'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/templates'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/insights'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout/access-management'@@ -7768,6 +7792,7 @@ export const routeTree = rootRoute"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId","children": ["/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/$type",+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/insights","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId","/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers",@@ -7955,6 +7980,10 @@ export const routeTree = rootRoute"filePath": "pam/PamTemplatesPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/pam/_pam-layout"},+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-management/insights": {+ "filePath": "organization/SecretInsightsPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings/oauth/callback": {"filePath": "organization/SettingsPage/OauthCallbackPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/settings"diff --git a/frontend/src/routes.ts b/frontend/src/routes.tsindex 5a653562f5..afb8aa2796 100644--- a/frontend/src/routes.ts+++ b/frontend/src/routes.ts@@ -395,6 +395,7 @@ const organizationRoutes = route("/organizations/$orgId", [index("organization/KmipServersPage/route.tsx"),route("/$kmipServerId", "organization/KmipServersPage/KmipServerDetailsByIDPage/route.tsx")]),+ route("/projects/secret-management/insights", "organization/SecretInsightsPage/route.tsx"),route("/projects/secret-management/secret-sharing", [index("organization/SecretSharingPage/route.tsx")]),