Skip to content

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

incrase alarm threshold

Thiago Araujo da Silva2d013b23c4a2
diff --git a/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts b/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts
index 1aea3b0a39..0727edab8c 100644
--- a/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts
+++ b/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts
@@ -28,10 +28,10 @@ import { LOG_STREAM_FACTORY_MAP } from "./audit-log-stream-factory";
import { TAuditLogStream, TCreateAuditLogStreamDTO, TUpdateAuditLogStreamDTO } from "./audit-log-stream-types";
import { TCustomProviderCredentials } from "./custom/custom-provider-types";
-const FAILURE_THRESHOLD = 10; // 10 errors threshold
+const FAILURE_THRESHOLD = 20; // 20 errors threshold
const FAILURE_WINDOW_MINUTES = 5; // counter expires after this much idle time since the last error
const FAILURE_WINDOW_SECONDS = FAILURE_WINDOW_MINUTES * 60;
-const FAILURE_ALERT_COOLDOWN_SECONDS = 12 * 60 * 60; // 12 hours alert cooldown
+const FAILURE_ALERT_COOLDOWN_SECONDS = 24 * 60 * 60; // 24 hours alert cooldown
const LAST_ERROR_MESSAGE_MAX_LENGTH = 1000;
export type TAuditLogStreamServiceFactoryDep = {