-
Notifications
You must be signed in to change notification settings - Fork 128
chore: use redact by default #624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates the mongodb-redact
library to automatically redact sensitive data from telemetry events before transmission. The changes ensure that any secrets registered in the keychain are properly masked in telemetry data to prevent accidental exposure of sensitive information.
- Implements redaction of telemetry properties using the
mongodb-redact
library and keychain secrets - Updates telemetry types to use string values instead of booleans for consistent redaction handling
- Adds comprehensive test coverage for redaction functionality across various telemetry properties
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/telemetry/telemetry.ts |
Integrates mongodb-redact to automatically redact sensitive data from telemetry events using keychain secrets |
src/telemetry/types.ts |
Updates boolean telemetry properties to use TelemetryBoolSet for consistent string-based redaction |
src/server.ts |
Converts boolean read_only_mode property to string format for telemetry consistency |
tests/unit/telemetry.test.ts |
Adds comprehensive test coverage for redaction functionality across static and dynamic properties |
Pull Request Test Coverage Report for Build 18352375577Details
💛 - Coveralls |
Co-authored-by: Copilot <[email protected]>
Proposed changes
Checklist