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: pass distinctId to groupIdentify to prevent phantom PostHog persons
Devin AIa482912856ae
diff --git a/backend/src/services/telemetry/telemetry-service.ts b/backend/src/services/telemetry/telemetry-service.tsindex 9d21e82b16..5d5faef6a4 100644--- a/backend/src/services/telemetry/telemetry-service.ts+++ b/backend/src/services/telemetry/telemetry-service.ts@@ -161,11 +161,12 @@ To opt into telemetry, you can set "TELEMETRY_ENABLED=true" within the environmeconst orgId = event.organizationId;void getOrgGroupProperties(orgId, resolvedOrgName).then((groupProperties) => {- postHog.groupIdentify({- groupType: "organization",- groupKey: orgId,- properties: groupProperties- });+ postHog.groupIdentify({+ groupType: "organization",+ groupKey: orgId,+ properties: groupProperties,+ distinctId: event.distinctId+ });}).catch((error) => {logger.error(error, "Failed to identify PostHog organization");@@ -318,7 +319,8 @@ To opt into telemetry, you can set "TELEMETRY_ENABLED=true" within the environmepostHog.groupIdentify({groupType: "organization",groupKey: key.org,- properties: groupProperties+ properties: groupProperties,+ distinctId: key.id});} catch (error) {logger.error(error, "Failed to identify PostHog organization");