Skip to content

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

fix: rename destination to syncDestination and add environment/secretPath to delete event

Devin AIb0fa06e85bc4
diff --git a/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts b/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
index 5555205d23..9ef59182ad 100644
--- a/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
+++ b/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
@@ -228,7 +228,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
organizationId: req.permission.orgId,
distinctId: getTelemetryDistinctId(req),
properties: {
- destination,
+ syncDestination: destination,
syncId: secretSync.id,
projectId: secretSync.projectId,
environment: secretSync.environment?.slug ?? "",
@@ -341,9 +341,11 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
organizationId: req.permission.orgId,
distinctId: getTelemetryDistinctId(req),
properties: {
- destination,
+ syncDestination: destination,
syncId,
projectId: secretSync.projectId,
+ environment: secretSync.environment?.slug ?? "",
+ secretPath: secretSync.folder?.path ?? "/",
removeSecrets
}
})
diff --git a/backend/src/services/telemetry/telemetry-types.ts b/backend/src/services/telemetry/telemetry-types.ts
index 1f1e79c528..95b8d15d1e 100644
--- a/backend/src/services/telemetry/telemetry-types.ts
+++ b/backend/src/services/telemetry/telemetry-types.ts
@@ -295,7 +295,7 @@ export type TNotificationUpdatedEvent = {
export type TSecretSyncCreatedEvent = {
event: PostHogEventTypes.SecretSyncCreated;
properties: {
- destination: string;
+ syncDestination: string;
syncId: string;
projectId: string;
environment: string;
@@ -307,9 +307,11 @@ export type TSecretSyncCreatedEvent = {
export type TSecretSyncDeletedEvent = {
event: PostHogEventTypes.SecretSyncDeleted;
properties: {
- destination: string;
+ syncDestination: string;
syncId: string;
projectId: string;
+ environment: string;
+ secretPath: string;
removeSecrets: boolean;
};
};