Skip to content

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

feat: added expiresAt

=fcea73eefd1f
diff --git a/backend/src/ee/services/audit-log/audit-log-clickhouse-dal.ts b/backend/src/ee/services/audit-log/audit-log-clickhouse-dal.ts
index 34b53d7d24..60ba0a6bd0 100644
--- a/backend/src/ee/services/audit-log/audit-log-clickhouse-dal.ts
+++ b/backend/src/ee/services/audit-log/audit-log-clickhouse-dal.ts
@@ -41,6 +41,7 @@ type TClickHouseAuditLogRow = {
createdAt: string;
orgId: string;
projectId: string;
+ expiresAt?: string;
};
// Validate JSON path keys to prevent injection
@@ -187,7 +188,7 @@ export const clickhouseAuditLogDALFactory = (clickhouseClient: ClickHouseClient,
orgId: row.orgId || null,
projectId: row.projectId || null,
projectName: projectNameMap[row.projectId] ?? null,
- expiresAt: null
+ expiresAt: row.expiresAt ? new Date(row.expiresAt) : null
})) as TAuditLogWithProjectName[];
} catch (error) {
logger.error(error, "Failed to query audit logs from ClickHouse");