Skip to content

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

fix: make HoneyTokenTriggered event anonymous for self-hosted privacy

Devin AIb2925556a6f6
diff --git a/backend/src/ee/services/honey-token/honey-token-service.ts b/backend/src/ee/services/honey-token/honey-token-service.ts
index 71eb2d3922..eb0796d627 100644
--- a/backend/src/ee/services/honey-token/honey-token-service.ts
+++ b/backend/src/ee/services/honey-token/honey-token-service.ts
@@ -1027,12 +1027,9 @@ export const honeyTokenServiceFactory = ({
void telemetryService
.sendPostHogEvents({
event: PostHogEventTypes.HoneyTokenTriggered,
- distinctId: `honey-token-${honeyToken.id}`,
- organizationId: honeyTokenWithOrg.orgId,
+ distinctId: "anonymous-honey-token-trigger",
properties: {
- honeyTokenId: honeyToken.id,
- type: honeyToken.type,
- projectId: honeyToken.projectId
+ type: honeyToken.type
}
})
.catch(() => {});
diff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.ts
index 4ba3c04a8e..309586a6b0 100644
--- a/backend/src/services/telemetry/telemetry-types.ts
+++ b/backend/src/services/telemetry/telemetry-types.ts
@@ -883,9 +883,7 @@ export type THoneyTokenResetEvent = {
export type THoneyTokenTriggeredEvent = {
event: PostHogEventTypes.HoneyTokenTriggered;
properties: {
- honeyTokenId: string;
type: string;
- projectId: string;
};
};