[4.0] Enforce Diagnostic Sanitization and Telemetry Privacy Boundaries

Open
#3,986 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@saikoumudi is already working on this.

Since Oct 19, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement needs-team-triage server-Azure.Mcp tools-Telemetry

Release Tracker: microsoft/mcp-pr#691 (Theme 2.3)
Initiative: microsoft/mcp#3106 (Security, Identity & Governance)
Priority: P1 (Committed for 4.0)

Objective

Guarantee that Azure MCP telemetry, error responses, and diagnostic logs never leak customer secrets, PII, or internal resource payloads.

Scope

  • Implement static Roslyn analyzers to enforce telemetry tagging rules and prevent unapproved custom tags (microsoft/mcp#2119).
  • Restrict command parameter telemetry strictly to option keys (TagName.ToolParameters), ensuring parameter values and request payloads are never recorded.
  • Enforce TelemetryLogRecordEraser across all logger outputs so raw console or debug logs cannot escape through OpenTelemetry exporters.
  • Audit ToolFailureMessage mappings across commands to verify that exception details are scrubbed of sensitive resource data before emission.

Dependencies and Execution Order

  • Upstream prerequisite for: Runtime telemetry modernization (microsoft/mcp-pr#728) and operational telemetry dashboards (microsoft/mcp-pr#729).
  • Analyzer task: microsoft/mcp#2119
  • Safe Logging & Telemetry Boundaries Epic: microsoft/mcp-pr#384 (microsoft/mcp-pr#385, microsoft/mcp-pr#562, microsoft/mcp-pr#664)

4.0 Exit Criteria

  • Static telemetry analyzer integrated into the build with zero policy violations (microsoft/mcp#2119).
  • Automated tests verifying key-only ToolParameters logging and TelemetryLogRecordEraser scrubbing.
  • Privacy review sign-off completed for all 4.0 telemetry schemas prior to enabling expanded runtime tags in microsoft/mcp-pr#728.
Dominant language
C#
Stars
3.9k
Forks
689
Avg merge
2d 11h
Merged PRs (30d)
143

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/mcp

All issues in microsoft/mcp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.