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
feat: depending of pg-ck nullable to empty string
=853897631f58
diff --git a/backend/src/ee/services/audit-log/audit-log-queue.ts b/backend/src/ee/services/audit-log/audit-log-queue.tsindex 9c81a9e729..e27b3fd34d 100644--- a/backend/src/ee/services/audit-log/audit-log-queue.ts+++ b/backend/src/ee/services/audit-log/audit-log-queue.ts@@ -38,6 +38,13 @@ const normalizeJsonPayload = (payload: unknown) => {return {};};+const nullable = (value: string | undefined | null, isClickhouse: boolean) => {+ if (!value) {+ return isClickhouse ? "" : null;+ }+ return value;+};+// keep this timeout 5s it must be fast because else the queue will take time to finish// audit log is a crowded queue thus needs to be fastexport const AUDIT_LOG_STREAM_TIMEOUT = 5 * 1000;@@ -104,12 +111,12 @@ export const auditLogQueueServiceFactory = async ({id,actor: actor.type,actorMetadata,- ipAddress: ipAddress ?? "",+ ipAddress: nullable(ipAddress, isClickHouseBatchEnabled),eventType: event.type,eventMetadata,- userAgent: userAgent ?? "",- userAgentType: userAgentType ?? "",- projectId: projectId ?? "",+ userAgent: nullable(userAgent, isClickHouseBatchEnabled),+ userAgentType: nullable(userAgentType, isClickHouseBatchEnabled),+ projectId: nullable(projectId, isClickHouseBatchEnabled),orgId,expiresAt: new Date(createdAt.getTime() + ttl),createdAt,