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
Use createdAt from psql to have more consistant view between two
Fang-Pen Lin00853feb2836
diff --git a/backend/src/ee/services/audit-log/audit-log-queue.ts b/backend/src/ee/services/audit-log/audit-log-queue.tsindex 67ffb1491e..70671bb9f0 100644--- a/backend/src/ee/services/audit-log/audit-log-queue.ts+++ b/backend/src/ee/services/audit-log/audit-log-queue.ts@@ -98,6 +98,8 @@ export const auditLogQueueServiceFactory = async ({clickhouse_settings: CLICKHOUSE_AUDIT_LOG_INSERT_SETTINGS,values: [{+ // with the same id as the audit log in clickhouse, so that it's much easier to+ // find the corresponding audit log in postgresid: auditLog.id,actor: actor.type,actorMetadata: actor.metadata ?? {},@@ -106,7 +108,9 @@ export const auditLogQueueServiceFactory = async ({eventMetadata: event.metadata ?? {},userAgent: userAgent ?? "",userAgentType: userAgentType ?? "",- createdAt: new Date(),+ // with the same createdAt as the audit log from postgres, so that it's much easier to+ // deduplicate the audit logs+ createdAt: auditLog.createdAt,projectId: projectId ?? "",orgId}