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: 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.tsindex 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 TSorganizationId: 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 TSorganizationId: 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.tsindex 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;};};