Skip to content

fix: Improve sensitive header redaction#171

Merged
crbelaus merged 1 commit intomainfrom
improve-header-redaction
Mar 1, 2026
Merged

fix: Improve sensitive header redaction#171
crbelaus merged 1 commit intomainfrom
improve-header-redaction

Conversation

@crbelaus
Copy link
Contributor

@crbelaus crbelaus commented Mar 1, 2026

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 #166

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.
@crbelaus crbelaus self-assigned this Mar 1, 2026
@crbelaus crbelaus merged commit 3fd3e10 into main Mar 1, 2026
6 checks passed
@crbelaus crbelaus deleted the improve-header-redaction branch March 1, 2026 19:39
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.

1 participant