Skip to content

Commit 29f3c59

Browse files
Revert "Redact args in the logs of audit log service (#20853)" (#21039)
This reverts commit b007b1d. Co-authored-by: Ona <[email protected]>
1 parent e585bf7 commit 29f3c59

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

components/server/src/audit/AuditLogService.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,7 @@ export class AuditLogService {
5353
action: method,
5454
args: argsScrubbed,
5555
};
56-
// 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));
56+
log.info("audit", new TrustedValue(logEntry));
6657
await this.dbAuditLog.recordAuditLog(logEntry);
6758
}
6859

0 commit comments

Comments
 (0)