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
fix: ensure folder reads are credited to secrets with appropriate permissions
DimitrisStaratzis015b2b9c00c6
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsxindex 1db200737d..e799f03bf8 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx@@ -497,6 +497,13 @@ export function SecretAccessInsights({ secretKey, environment, secretPath }: Proconst renderLastRead = (row: AccessRow) => {if (row.type === "group") return null;+ // A folder read is credited to every secret in the folder, including ones this row can only describe.+ const canReadValue = [...row.entry.allowedActions, ...(row.inheritedActions ?? [])].some(+ (action) =>+ action === ProjectPermissionSecretActions.ReadValue ||+ action === ProjectPermissionSecretActions.DescribeAndReadValue+ );+ if (!canReadValue) return null;if (isReadActivityLoading) return <Skeleton className="h-4 w-20 rounded" />;if (!readActivity) return null;