Skip to content

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

fix(insights): only draw a reader in the access graph when read activity says they can read

Dimitris Staratzisbadb702a885d
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
index f2d7566a09..8a07f7f23c 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretAccessInsights.tsx
@@ -572,6 +572,9 @@ export function SecretAccessInsights({
.filter((group) => group[memberField].includes(entry.id))
.map((group) => group.id);
if (!isDirect && !groupIds.length) return [];
+ // The access list judges a group on its roles alone, but a member's own folder grant also limits what the group
+ // gives them. The read activity applies those grants, so once it has loaded it decides who is drawn.
+ if (readActivity && !readActors.has(`${type}:${entry.id}`)) return [];
const status = readStatusOf(type, entry.id);
return [
{