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
refactor(audit-log): increase audit log row warning threshold for improved performance
Victor Hugo dos Santosdd3770ffc65d
diff --git a/backend/src/ee/services/audit-log/audit-log-service.ts b/backend/src/ee/services/audit-log/audit-log-service.tsindex c24af1519e..3eff37f51a 100644--- a/backend/src/ee/services/audit-log/audit-log-service.ts+++ b/backend/src/ee/services/audit-log/audit-log-service.ts@@ -21,8 +21,8 @@ import { TAuditLogDALFactory } from "./audit-log-dal";import { TAuditLogQueueServiceFactory } from "./audit-log-queue";import { ACTOR_TYPE_TO_METADATA_ID_KEY, EventType, TAuditLogServiceFactory } from "./audit-log-types";-const AUDIT_LOG_ROW_WARNING_THRESHOLD = 2_000;-const AUDIT_LOG_ALERT_ROW_INCREMENT = 10;+const AUDIT_LOG_ROW_WARNING_THRESHOLD = 300_000_000;+const AUDIT_LOG_ALERT_ROW_INCREMENT = 10_000_000;type TAuditLogServiceFactoryDep = {auditLogDAL: TAuditLogDALFactory;diff --git a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsxindex e845153029..c678fb6059 100644--- a/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx+++ b/frontend/src/pages/organization/AuditLogsPage/components/LogsSection.tsx@@ -55,7 +55,7 @@ const LogsSectionComponent = ({const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp(["upgradePlan"] as const);const { data: migrationStatus } = useGetAuditLogMigrationStatus();- const AUDIT_LOG_ROW_WARNING_THRESHOLD = 2_000;+ const AUDIT_LOG_ROW_WARNING_THRESHOLD = 300_000_000;const showClickHouseWarning =migrationStatus &&!migrationStatus.clickHouseConfigured &&