fix: redact sensitive tool-call logs - #575
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughTool-call logging now recursively redacts sensitive argument values, preserves safe values, and ensures log files use owner-only permissions. A security test validates redaction, file creation, permissions, cleanup, and successful completion. ChangesTool-call log security
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
0600permissionsSecurity boundary
Tool arguments can contain shell commands, file contents, environment variables, and credentials. Those values previously reached
claude_tool_call.logverbatim and the file used ambient umask permissions. Logging now records only type/length placeholders for sensitive fields and explicitly restricts the destination file.Fixes #506.
Validation
npm run buildnode test/test-tool-call-log-security.jsgit diff --checkSummary by CodeRabbit