Skip to content

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

fix: use actual actor as distinctId for IntegrationSynced PostHog event

Devin AI6234d531e81a
diff --git a/backend/src/services/secret/secret-queue.ts b/backend/src/services/secret/secret-queue.ts
index 9e0ccc70b0..e62da6e1ba 100644
--- a/backend/src/services/secret/secret-queue.ts
+++ b/backend/src/services/secret/secret-queue.ts
@@ -1036,7 +1036,7 @@ export const secretQueueFactory = ({
await telemetryService.sendPostHogEvents({
event: PostHogEventTypes.IntegrationSynced,
- distinctId: `project/${projectId}`,
+ distinctId: actorId ?? `platform/${projectId}`,
organizationId: project.orgId,
properties: {
integrationId: integration.id,