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(insights): add screenshots and explain that value search compares hashes
Calvin0a1dcb9eb731
diff --git a/docs/documentation/platform/insights.mdx b/docs/documentation/platform/insights.mdxindex 1a4607d16f..9e9eecf08c 100644--- a/docs/documentation/platform/insights.mdx+++ b/docs/documentation/platform/insights.mdx@@ -27,6 +27,8 @@ In your organization, go to **Secrets Management** > **Insights**.To view the page, your organization role needs the **Read** permission under **Secrets Management Insights**. The built-in **Admin** role has it. To grant it to another role, see [organization role-based access controls](/documentation/platform/access-controls/role-based-access-controls#organization-level-access-controls).++## SummaryThe three cards at the top of the page count:@@ -50,16 +52,19 @@ The **Needs Attention** tab shows only projects with at least one of these issueSelect a project to open that project's Insights page.++## Duplicated secrets across projectsThe **Duplicated Secrets** card groups secrets that share the same value, across every project in the organization. Each group shows how many secrets share the value and how many projects and locations (an environment and path) they're stored in. Groups that span more than one project are marked with the number of projects.Expand a group to see each secret's project, key, environment, and path. To open a secret's folder, hover over its row and select the arrow icon. If you aren't a member of a secret's project, the arrow icon is disabled.-The card needs two things:+Infisical finds duplicates by comparing hashes of secret values, the same hashes [secret value search](/documentation/platform/secret-value-search#how-values-are-compared) uses, so it never compares plain text values.++To see the card, you need the **Search All Secret Values** permission under **Secrets Management Insights**, because the card shows secrets in projects you might not be a member of. The built-in **Admin** role has it.-- The **Search All Secret Values** permission under **Secrets Management Insights**, because the card shows secrets in projects you might not be a member of (the built-in **Admin** role has it)-- [Secret value search](/documentation/platform/secret-value-search#enable-secret-value-search) turned on for the organization; if it's off, the card shows an **Enable Secret Value Search** button that turns it on+If your organization was created before secret value search was released, the card shows an **Enable Secret Value Search** button until someone turns it on.Viewing the card is recorded in the organization's [audit logs](/documentation/platform/audit-logs) as a **View Org Secrets Duplication Insights** event.@@ -73,6 +78,8 @@ The remaining cards show how secrets are created and read across all projects:If you self-host Infisical, **Auth Methods Used to Fetch Secrets** and **Secret Access Volume** appear only if your audit logs are stored in [ClickHouse](/documentation/platform/audit-logs-clickhouse-setup).++## Generate an organization reportAn organization report is a snapshot of the organization's insights, emailed as CSV attachments (one file per report type). The header of the Insights page shows when the last report was sent.@@ -102,6 +109,8 @@ To generate an organization report:</Step></Steps>++Generating a report requires the **Generate Report** permission under **Secrets Management Insights**. An organization can have one report generating at a time, so **Generate Report** is disabled until the current report finishes.</View>@@ -215,9 +224,7 @@ The **Duplicated Secrets** card groups secrets in the project that share the samSecrets whose values contain [secret references](/documentation/platform/secret-reference) aren't included.-Duplicate detection is off until you turn it on. To turn it on, select **Enable Detection** on the card. Infisical processes the project's secrets, then shows the results. Turning it on requires permission to edit the project's settings.--If an organization admin has turned on [secret value search](/documentation/platform/secret-value-search), duplicate detection is already on for every project in the organization.+Duplicate detection is on by default. If the project was created before it was released, select **Enable Detection** on the card to turn it on, which requires permission to edit the project's settings.## Rotation and reminder calendardiff --git a/docs/documentation/platform/secret-value-search.mdx b/docs/documentation/platform/secret-value-search.mdxindex b5d7309bc3..f80389a12c 100644--- a/docs/documentation/platform/secret-value-search.mdx+++ b/docs/documentation/platform/secret-value-search.mdx@@ -3,7 +3,7 @@ title: "Secret value search"description: "Find every project, environment, and path where a secret value is stored."----Secret value search finds every secret in your organization whose value exactly matches a value you enter, and shows the project, environment, and path of each match. It searches every [Secrets Management project](/documentation/platform/secrets-mgmt/project) in the organization, including projects you aren't a member of.+Secret value search finds every secret in your organization whose value exactly matches a value you enter, and shows the project, environment, and path of each match. It searches every [Secrets Management project](/documentation/platform/secrets-mgmt/project) in the organization, including projects you aren't a member of. Infisical finds matches by comparing hashes of secret values, so it never stores or searches plain text values (see [how values are compared](#how-values-are-compared)).Use it when a credential leaks. Paste the leaked value to see every place it's stored, so you can rotate or replace each copy instead of only the one you knew about.@@ -11,30 +11,12 @@ Use it when a credential leaks. Paste the leaked value to see every place it's s- An organization role with the **Search All Secret Values** permission under **Secrets Management Insights**, such as the built-in **Admin** role (to grant it to another role, see [organization role-based access controls](/documentation/platform/access-controls/role-based-access-controls#organization-level-access-controls))-## Enable secret value search--Infisical has to process every secret value in the organization before a search can return complete results, so someone with the permission turns secret value search on once for the whole organization.--To enable secret value search:--<Steps>- <Step>- In your organization, go to **Secrets Management** > **Projects**.- </Step>- <Step>- Select the search box, then select **Search by secret value**.- </Step>- <Step>- Select **Enable Secret Value Search**.- </Step>-</Steps>--The panel shows how many projects are ready while Infisical processes the organization's secrets. You can leave the page while it runs. When every project is ready, the panel shows the search box.--Once secret value search is on, it stays on, and Infisical keeps it up to date as secrets are created and changed. Turning it on also turns on the organization-wide [duplicated secrets](/documentation/platform/insights#duplicated-secrets-across-projects) card on the Insights page.-## Search for a secret value+<Note>+ Secret value search is on by default. If your organization was created before it was released, someone with the permission needs to select **Enable Secret Value Search** in the search panel once, and Infisical then indexes the organization's existing secrets.+</Note>+To search for a secret value:<Steps>@@ -43,6 +25,8 @@ To search for a secret value:</Step><Step>Select the search box, then select **Search by secret value**.++ </Step><Step>Paste the full secret value, then press `Enter` or select **Search**. The search doesn't run as you type.@@ -55,14 +39,20 @@ To search for a secret value:To open a match, hover over its row and select the arrow icon. The project's secrets overview opens at that path, filtered to that environment.If you aren't a member of the match's project, the arrow icon is disabled.++ </Step></Steps>Closing the panel clears the value and the results.-## How values are matched+## How values are compared++Infisical doesn't search plain text secret values. When a secret is created or changed, Infisical stores a hash of its value (a fixed-length fingerprint that can't be turned back into the value) next to the encrypted secret. When you search, Infisical hashes the value you enter the same way and looks for secrets with the same hash. The value you search for isn't stored.++The hash is keyed with your organization's encryption key, so the hashes stored in the database can't be matched against guessed values without access to that key.-A secret matches only if its value is identical to the value you enter:+Because Infisical compares hashes, a secret matches only if its value is identical to the value you enter:- Part of a value doesn't match (searching `sk_live_abc` doesn't find `sk_live_abc123`)- A value that differs in case or whitespace, including a trailing newline, doesn't match@@ -74,7 +64,7 @@ A search returns at most 1,000 matches. If a value has more matches than that, t## Audit logs-Infisical records each search in the organization's [audit logs](/documentation/platform/audit-logs) as a **Search Secrets by Value** event, with the number of matches. The event doesn't include the value you searched for. Turning on secret value search is recorded as an **Enable Org-Wide Secret Value Tracking** event.+Infisical records each search in the organization's [audit logs](/documentation/platform/audit-logs) as a **Search Secrets by Value** event, with the number of matches. The event doesn't include the value you searched for.## Next stepsdiff --git a/docs/images/platform/insights/org-activity.png b/docs/images/platform/insights/org-activity.pngnew file mode 100644index 0000000000..489edeb4c5Binary files /dev/null and b/docs/images/platform/insights/org-activity.png differdiff --git a/docs/images/platform/insights/org-generate-report.png b/docs/images/platform/insights/org-generate-report.pngnew file mode 100644index 0000000000..bac6f4273cBinary files /dev/null and b/docs/images/platform/insights/org-generate-report.png differdiff --git a/docs/images/platform/insights/org-overview.png b/docs/images/platform/insights/org-overview.pngnew file mode 100644index 0000000000..7dcc6f90abBinary files /dev/null and b/docs/images/platform/insights/org-overview.png differdiff --git a/docs/images/platform/insights/org-projects.png b/docs/images/platform/insights/org-projects.pngnew file mode 100644index 0000000000..59ac101d04Binary files /dev/null and b/docs/images/platform/insights/org-projects.png differdiff --git a/docs/images/platform/secret-value-search/open-search.png b/docs/images/platform/secret-value-search/open-search.pngnew file mode 100644index 0000000000..61a6f22ffeBinary files /dev/null and b/docs/images/platform/secret-value-search/open-search.png differdiff --git a/docs/images/platform/secret-value-search/results.png b/docs/images/platform/secret-value-search/results.pngnew file mode 100644index 0000000000..736714260bBinary files /dev/null and b/docs/images/platform/secret-value-search/results.png differ