Commit 3fd3e10
authored
fix: Improve sensitive header redaction (#171)
We now redact headers instead of just dropping them. This allows users
of the Error Tracker to know wether a header was present or not. With
the previous logic it was impossible to know wether the header was
dropped or not present in the first place.
We also redact the `set-cookie` header so we redact outgoing cookies and
not only incoming cookies as per the `cookie` header.
This PR replaces #1661 parent f636e60 commit 3fd3e10
File tree
2 files changed
+8
-8
lines changed- lib/error_tracker/integrations
- test/integrations
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
56 | 53 | | |
57 | 54 | | |
0 commit comments