-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request tab includes cookies #152
Comments
Based on #113, it seems that the current case-sensitivity is intentional, but it’s unclear to me why it’s desired. |
Hi @eager - thanks for the report. |
@phillipsam good to know! Would (case-insensitive) regexes be the default, and would the defaults include the 4 current filters? |
Hi @eager - case-insensitive regexes would be fine, and I think it would make sense to include the 4 current filters. We've designed a new API for redacting metadata values, which hasn't been scheduled for implementation on bugsnag-java yet. I can sketch out some of the details here if that would help #153: redactedKeys// Configuration.java
Collection<String> getRedactedKeys();
void setRedactedKeys(Collection<String> redactedKeys); The requirements would be:
If you have any questions about this please let me know. |
Expected behavior
Cookies are filtered from request headers metadata, as
Cookie
is included in the default filters.Observed behavior
Request
tab contains aheaders
map withcookie
present.Steps to reproduce
We’re using
bugsnag-spring
with Spring Boot 2.0.9 and Tomcat 9.0.30.Version
3.6.1
Additional information
It looks like the issue is that the underlying servlet implementation stores header keys case-insensitively, so the default
Cookie
filter does not match. When it comes to filtering, I think it would make sense to make all comparisons case-insensitive, so that a filter for"password"
matches"USER_PASSWORD"
,"adminPassword"
, etc.The text was updated successfully, but these errors were encountered: