Skip to content

Conversation

blva
Copy link
Collaborator

@blva blva commented Oct 8, 2025

Proposed changes

  • uses redact and keychain in telemetry

Checklist

@blva blva marked this pull request as ready for review October 8, 2025 16:49
@blva blva requested a review from a team as a code owner October 8, 2025 16:49
@Copilot Copilot AI review requested due to automatic review settings October 8, 2025 16:49
Copy link
Contributor

@Copilot Copilot AI left a 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

@coveralls
Copy link
Collaborator

coveralls commented Oct 8, 2025

Pull Request Test Coverage Report for Build 18352375577

Details

  • 7 of 7 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 82.608%

Totals Coverage Status
Change from base Build 18346074624: -0.01%
Covered Lines: 5374
Relevant Lines: 6387

💛 - Coveralls

@blva blva merged commit 07ac0ee into main Oct 9, 2025
17 of 18 checks passed
@blva blva deleted the telemetry-normalize branch October 9, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants