We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65b0538 commit b007b1dCopy full SHA for b007b1d
components/server/src/audit/AuditLogService.ts
@@ -53,7 +53,16 @@ export class AuditLogService {
53
action: method,
54
args: argsScrubbed,
55
};
56
- log.info("audit", new TrustedValue(logEntry));
+ // The args param contains workspace IDs and other sensitive data. Since
57
+ // it's quite hard to detect them, best way is to simply not log it at
58
+ // all. It's still part of the audit database but does not appear in the
59
+ // component logs.
60
+ const logEntryForLogging = {
61
+ ...logEntry,
62
+ args: ["[redacted]"],
63
+ };
64
+
65
+ log.info("audit", new TrustedValue(logEntryForLogging));
66
await this.dbAuditLog.recordAuditLog(logEntry);
67
}
68
0 commit comments