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
docs: add secret insights page
Scott Wilson34926eb11641
diff --git a/docs/docs.json b/docs/docs.jsonindex 24fcbd3879..cc45616fcf 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -466,6 +466,7 @@"documentation/platform/secret-versioning","documentation/platform/pit-recovery","documentation/platform/secret-reference",+ "documentation/platform/insights","documentation/platform/pr-workflows","documentation/platform/access-controls/access-requests",{diff --git a/docs/documentation/platform/insights.mdx b/docs/documentation/platform/insights.mdxnew file mode 100644index 0000000000..fcfd28a483--- /dev/null+++ b/docs/documentation/platform/insights.mdx@@ -0,0 +1,107 @@+---+title: "Secret Insights"+sidebarTitle: "Insights"+description: "Monitor upcoming rotations, reminders, stale secrets, and secret access patterns across your project."+---++Secret Insights is an observability dashboard for your Secrets Management project. It surfaces the questions you care about most — *Which secrets are due for rotation? Which reminders are overdue? What hasn't been touched in months? Who's actually reading my secrets?* — and links you straight to the secrets you need to act on.++The page is read-only. Every metric is computed from data already collected by Infisical (rotation schedules, reminders, secret modification times, access logs), so there's nothing to configure to start using it.++++<Info>+ Secret Insights is a paid feature.++ On Infisical Cloud it is available on plans that include `secretAccessInsights`. If you're self-hosting Infisical, contact [email protected] for an enterprise license.++ Viewing the page also requires the **Insights → Read** project permission.+</Info>++## Accessing Insights++From a Secret Manager project, open the **Insights** tab in the project sidebar. The page is divided into four sections:++- **Summary cards** — three at-a-glance counters for rotations, reminders, and stale secrets.+- **Rotation & Reminder Calendar** — a month-by-month view of every upcoming rotation and reminder.+- **Secret Access Volume** — read-request trends over the past 7 days, plus the top callers.+- **Authentication Methods** — how identities are authenticating to read secrets, over the past 30 days.++## Summary++The three cards along the top of the page give you a quick read on what needs attention. Each card opens a popover with a table you can drill into; clicking a row jumps directly to the matching secret in the **Overview** page with the appropriate filters applied.++### Upcoming Rotations++Counts secret rotations scheduled to run in the **next 7 days**.++A status badge on the card calls out failed rotations:++- A green badge reads **No failed rotations** when everything is healthy.+- A red badge shows **{N} failed** when one or more rotations are in a failed state and need investigation.++Click **View Rotations** (or **View Failed Rotations**) to see the full list. Each row shows the rotation name, environment, secret path, and a relative-time status (`scheduled`, `in 3 days`, `retries in 1h`, or `failed`). Click a row to open that rotation's secret in the Overview page filtered by rotation.++++### Upcoming Reminders++Counts secret reminders due in the **next 7 days**.++A status badge calls out overdue reminders:++- A green badge reads **No overdue reminders** when you're caught up.+- A red badge shows **{N} overdue** when reminders have passed their due date without being acknowledged.++Click **View Upcoming Reminders** (or **View Overdue Reminders**) to see the list. Each row shows the secret key, environment, path, and how soon it's due (or how long it's been overdue). Click a row to jump to that secret in the Overview page.++++### Stale Secrets++Counts secrets that **haven't been modified in more than 90 days**.++The card shows either **All secrets up to date** when nothing is stale, or **{N} need(s) review** when there are stale secrets to look at. The popover table is paginated 10 rows at a time and shows each secret's key, environment, path, and last-modified time. Click a row to open it in Overview.++Stale secrets aren't necessarily a problem — long-lived configuration values are normal. The list is meant as a prompt to review whether anything should be rotated, removed, or refreshed.++## Rotation & Reminder Calendar++The calendar panel shows every upcoming rotation and reminder laid out on a month grid, so you can see the cadence of upcoming work at a glance.++++**Navigation.** Use the chevrons in the panel header to move between months. The current day is highlighted with a colored border.++**Event pills.** Each day cell shows up to two events; if there are more, a **+N more** pill expands the rest. Pills are color-coded:++| Color | Event Type |+|---|---|+| Blue, with a refresh icon | Rotation |+| Orange, with a bell icon | Reminder |++**Event details.** Click a pill to view its details, then use the **View in Overview** button to jump to the corresponding secret in the project Overview with filters applied.++## Secret Access Volume++This panel shows how many times secrets have been read across the project over the **past 7 days**, plotted as a daily area chart.++++Each point represents the total number of read requests on that day, regardless of which secret was read or how it was read (UI, CLI, SDK, API, agent, operator, etc.).++Below the chart, the **Top actors** row lists the up-to-five identities that issued the most read requests in the same 7-day window, along with their request counts. Actor entries are formatted as `{type}: {name} ({count})` — for example, `Service: ci-runner (5,234)` or `User: [email protected] (812)`.++Use this panel to spot unusual spikes, identify the heaviest consumers of your secrets, and confirm that traffic patterns match what you expect from your services.++## Authentication Methods++This panel shows the distribution of authentication methods used to read secrets over the **past 30 days**, plotted as a donut chart with a breakdown table beside it.++++Each slice represents an auth method (for example, Universal Auth, Kubernetes Auth, AWS Auth, Token Auth, JWT). The breakdown shows the method name, percentage of total reads, and absolute request count, with a **Total** row at the bottom.++You may see an **Unknown** bucket. This represents older read requests that were issued before Infisical began recording the auth method on each request. Only newer requests carry this metadata, so the Unknown share will shrink over time as historical data ages out of the 30-day window.++Use this panel to understand how your workloads are authenticating, spot identities still using older auth methods you'd like to retire, and verify that auth-method migrations are taking effect.diff --git a/docs/images/platform/insights/access.png b/docs/images/platform/insights/access.pngnew file mode 100644index 0000000000..05b2d10978Binary files /dev/null and b/docs/images/platform/insights/access.png differdiff --git a/docs/images/platform/insights/auth.png b/docs/images/platform/insights/auth.pngnew file mode 100644index 0000000000..44465ff602Binary files /dev/null and b/docs/images/platform/insights/auth.png differdiff --git a/docs/images/platform/insights/calendar.png b/docs/images/platform/insights/calendar.pngnew file mode 100644index 0000000000..ce960ba4f1Binary files /dev/null and b/docs/images/platform/insights/calendar.png differdiff --git a/docs/images/platform/insights/overview.png b/docs/images/platform/insights/overview.pngnew file mode 100644index 0000000000..04ea319327Binary files /dev/null and b/docs/images/platform/insights/overview.png differdiff --git a/docs/images/platform/insights/reminders.png b/docs/images/platform/insights/reminders.pngnew file mode 100644index 0000000000..6ea0f578fbBinary files /dev/null and b/docs/images/platform/insights/reminders.png differdiff --git a/docs/images/platform/insights/rotations.png b/docs/images/platform/insights/rotations.pngnew file mode 100644index 0000000000..ad131ea461Binary files /dev/null and b/docs/images/platform/insights/rotations.png differdiff --git a/docs/images/platform/insights/stale.png b/docs/images/platform/insights/stale.pngnew file mode 100644index 0000000000..36e76c94bcBinary files /dev/null and b/docs/images/platform/insights/stale.png differdiff --git a/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsx b/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsxindex 59643f61c0..d3f1561a2f 100644--- a/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsx+++ b/frontend/src/pages/secret-manager/InsightsPage/components/InsightsSummaryCards.tsx@@ -98,7 +98,7 @@ const StatCard = ({{viewLabel}</Button></PopoverTrigger>- <PopoverContent className="w-[480px] p-0" align="end">+ <PopoverContent className="w-[560px] p-0" align="end">{popoverContent}</PopoverContent></Popover>@@ -165,7 +165,7 @@ const RotationTable = ({})}>- <TableCell className="max-w-[120px] truncate font-medium" title={item.name}>+ <TableCell className="max-w-[200px] truncate font-medium" title={item.name}>{item.name}</TableCell><TableCell className="text-muted" title={item.environment}>@@ -252,7 +252,7 @@ const ReminderTable = ({})}>- <TableCell className="max-w-[120px] truncate font-medium" title={item.secretKey}>+ <TableCell className="max-w-[200px] truncate font-medium" title={item.secretKey}>{item.secretKey}</TableCell><TableCell className="text-muted" title={item.environment}>@@ -326,7 +326,7 @@ const StaleSecretsTable = ({})}>- <TableCell className="max-w-[120px] truncate font-medium" title={item.key}>+ <TableCell className="max-w-[200px] truncate font-medium" title={item.key}>{item.key}</TableCell><TableCell className="text-muted" title={item.environment}>