Skip to content

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

add filter for secret pull events

Vladyslav Matsiiako33017b50f044
diff --git a/backend/src/helpers/secrets.ts b/backend/src/helpers/secrets.ts
index 1d7e68e491..533dd84612 100644
--- a/backend/src/helpers/secrets.ts
+++ b/backend/src/helpers/secrets.ts
@@ -574,18 +574,20 @@ export const getSecretsHelper = async ({
const approximateForNoneCapturedEvents = secrets.length * 10;
if (shouldCapture) {
- postHogClient.capture({
- event: "secrets pulled",
- distinctId: await TelemetryService.getDistinctId({ authData }),
- properties: {
- numberOfSecrets: shouldRecordK8Event ? approximateForNoneCapturedEvents : secrets.length,
- environment,
- workspaceId,
- folderId,
- channel: authData.userAgentType,
- userAgent: authData.userAgent
- }
- });
+ if (workspaceId.toString() != "650e71fbae3e6c8572f436d4") {
+ postHogClient.capture({
+ event: "secrets pulled",
+ distinctId: await TelemetryService.getDistinctId({ authData }),
+ properties: {
+ numberOfSecrets: shouldRecordK8Event ? approximateForNoneCapturedEvents : secrets.length,
+ environment,
+ workspaceId,
+ folderId,
+ channel: authData.userAgentType,
+ userAgent: authData.userAgent
+ }
+ });
+ }
}
}