Skip to content

feat(azure-core): add azure-deprecating to default HTTP logging allowlist - #48286

Open
heaths with Copilot wants to merge 2 commits into
mainfrom
copilot/update-azure-core-logging
Open

feat(azure-core): add azure-deprecating to default HTTP logging allowlist#48286
heaths with Copilot wants to merge 2 commits into
mainfrom
copilot/update-azure-core-logging

Conversation

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

azure-deprecating was missing from HttpLoggingPolicy.DEFAULT_HEADERS_ALLOWLIST, causing the deprecation notification response header to be redacted in logs. Per the Azure API guidelines on deprecating behavior notification, this header should be visible to aid debugging and service migration. This change was requested by Heath Stewart.

Changes

  • azure/core/pipeline/policies/_universal.py: Added "azure-deprecating" to DEFAULT_HEADERS_ALLOWLIST in HttpLoggingPolicy.
  • tests/test_pipeline.py: Added assertion that azure-deprecating is present in the default allowed header names.
  • CHANGELOG.md: Added entry under new 1.42.0 (Unreleased) section.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Add `azure-deprecating` response header to the list of default allowed
headers in `HttpLoggingPolicy` so it is logged without redaction.

See: https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#deprecating-behavior-notification

Co-authored-by: heaths <1532486+heaths@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Azure Core logging to allow azure-deprecating header feat(azure-core): add azure-deprecating to default HTTP logging allowlist Jul 27, 2026
Copilot AI requested a review from heaths July 27, 2026 21:34
@heaths
heaths marked this pull request as ready for review July 27, 2026 22:07
Copilot AI review requested due to automatic review settings July 27, 2026 22:07
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
7 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Pull request overview

Adds Azure’s deprecation notification header to HTTP logging for improved migration diagnostics.

Changes:

  • Allows azure-deprecating values in HTTP logs.
  • Adds regression coverage and release notes.
Show a summary per file
File Description
azure/core/pipeline/policies/_universal.py Adds the header to the default allowlist.
tests/test_pipeline.py Verifies default header allowance.
CHANGELOG.md Documents the feature for 1.42.0.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Medium

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.

3 participants