Skip to content

[Hosting] Redact AWSAccessKeyId and Signature - #70255

Merged
DeagleGross merged 4 commits into
dotnet:mainfrom
martincostello:update-sensitive-query-string-names
Nov 5, 2026
Merged

DeagleGross merged 4 commits into
dotnet:mainfrom
martincostello:update-sensitive-query-string-names

Conversation

@martincostello

@martincostello martincostello commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Redact AWSAccessKeyId and Signature

Redact the AWSAccessKeyId and Signature query string parameters from url.query to align with OpenTelemetry Semantic Conventions v1.45.0.

Description

  • Add AWSAccessKeyId and Signature to the list of sensitive query string parameter names in HostingTelemetryHelpers.
  • Update the semantic conventions link in the XML doc comment to v1.45.0.
  • Update the existing tests that asserted these names were not redacted, and add tests for each name individually, together, repeated, URL-encoded, with different casing (matching remains case-sensitive), as near-miss names, and with missing or empty values.

v1.45.0 restored these keys to the default list of sensitive query parameter keys (open-telemetry/semantic-conventions#3989).

Without the change to HostingTelemetryHelpers, the 10 test cases that expect these names to be redacted fail; with it, all pass.

Relates to open-telemetry/semantic-conventions#3989.

/cc @DeagleGross

🤖 Generated with Claude Code

Restore `AWSAccessKeyId` and `Signature` to the query string parameters redacted from `url.query` to align with OpenTelemetry Semantic Conventions v1.45.0.

Relates to open-telemetry/semantic-conventions#3989.

Assisted-by: Claude Code <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:57
@github-actions github-actions Bot added the area-hosting Includes Hosting label Nov 2, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 2, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Thanks for your PR, @martincostello. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the query-parameter redaction update.

No open issues 🎉

What changed in this PR

Updates hosting telemetry to redact AWSAccessKeyId and Signature query parameter values from url.query, aligning with OpenTelemetry Semantic Conventions v1.45.0.

Changes:

  • Adds both parameter names to the existing case-sensitive redaction list.
  • Expands helper tests and updates activity-tag expectations.
  • Updates the semantic conventions link in the XML documentation to v1.45.0.
File Description
src/​Hosting/​Hosting/​test/​HostingTelemetryHelpersTests.cs Covers redaction, repeated and encoded names, casing, near misses, and missing or empty values.
src/​Hosting/​Hosting/​test/​HostingApplicationDiagnosticsTests.cs Updates expected url.query activity tags for both parameters.
src/​Hosting/​Hosting/​src/​Internal/​HostingTelemetryHelpers.cs Adds both names to the redaction list and updates the documentation link.

Review effort: Balanced

@PureWeen

PureWeen commented Nov 2, 2026

Copy link
Copy Markdown
Member

/review

@PureWeen

PureWeen commented Nov 2, 2026

Copy link
Copy Markdown
Member

Copilot's local review panel found no issues to raise at this commit.

@DeagleGross DeagleGross left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! looks good to me

@DeagleGross
DeagleGross merged commit ab80ead into dotnet:main Nov 5, 2026
30 checks passed
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 15%

No docs needed: internal telemetry redaction list update (3 files in src/Hosting/Hosting, no signals); existing docs don't list redacted parameters.

Documentation surfaces considered

  • Conceptual article: Not required — Docs don't enumerate redacted url.query parameters; change aligns an internal list with OTel semantic conventions v1.45.0. No public API or config change.
  • Migration guidance: Not required — No user action needed when upgrading.
  • Breaking change: Not required — No API removal or compatibility impact; only additional query parameter redaction in telemetry.

@martincostello
martincostello deleted the update-sensitive-query-string-names branch November 5, 2026 17:04
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 6, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 14320c66 Deployed Nov 5, 2026 by DeagleGross via conclusion #198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-reviewed-approved area-hosting Includes Hosting community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants