Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sdk/core/azure-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.42.0 (Unreleased)

### Features Added

- Added `azure-deprecating` to the default allowed headers list in `HttpLoggingPolicy`, so deprecation notification headers are logged without redaction.

## 1.41.0 (2026-05-07)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ class HttpLoggingPolicy(
"WWW-Authenticate", # OAuth Challenge header.
"x-vss-e2eid", # Needed by Azure DevOps pipelines.
"x-msedge-ref", # Needed by Azure DevOps pipelines.
"azure-deprecating", # Deprecation notification header.
]
)
REDACTED_PLACEHOLDER: str = "REDACTED"
Expand Down
1 change: 1 addition & 0 deletions sdk/core/azure-core/tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def test_default_http_logging_policy(http_request):
assert "WWW-Authenticate" in http_logging_policy.allowed_header_names
assert "x-vss-e2eid" in http_logging_policy.allowed_header_names
assert "x-msedge-ref" in http_logging_policy.allowed_header_names
assert "azure-deprecating" in http_logging_policy.allowed_header_names
# Testing I can replace the set entirely
HttpLoggingPolicy.DEFAULT_HEADERS_ALLOWLIST = set(HttpLoggingPolicy.DEFAULT_HEADERS_ALLOWLIST)
HttpLoggingPolicy.DEFAULT_HEADERS_WHITELIST = set(HttpLoggingPolicy.DEFAULT_HEADERS_ALLOWLIST)
Expand Down
Loading