Commit 183f5a9
Add azure-deprecating to default allowed headers for logging
Add `azure-deprecating` to the default set of response headers that are
logged without redaction in the Azure Core HTTP pipeline sanitizer.
The `azure-deprecating` header is used per the Azure API Guidelines
deprecating behavior notification guidance to notify clients about
upcoming API deprecations. Without this change, the header value would
be logged as REDACTED, hiding important deprecation warnings.
- Add azure-deprecating to defaultAllowedHeaderNames in sanitizer.ts
- Update sdk/core/logger/README.md to keep the documented list in sync
- Add test verifying azure-deprecating is not redacted
- Update ts-http-runtime CHANGELOG
Co-authored-by: heaths <1532486+heaths@users.noreply.github.com>1 parent d749832 commit 183f5a9
4 files changed
Lines changed: 25 additions & 0 deletions
File tree
- sdk/core
- logger
- ts-http-runtime
- src/util
- test/internal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
43 | 64 | | |
0 commit comments