-
-
Notifications
You must be signed in to change notification settings - Fork 207
Default scrubbers #87
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
Conversation
2ec3c10 to
07a987e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly just need to update the .rst files in /doc .
CHANGELOG.md
Outdated
| ## 2.0.0 (2016-11-15) | ||
|
|
||
| * Enhancements | ||
| * Provide default scrubber for request body and headers (`Sentry.Plug.default_scrubber` and `Sentry.Plug.default_header_scrubber`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should name this default_body_scrubber
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will also need to update the .rst files in /doc
lib/sentry/plug.ex
Outdated
| To configure scrubbing body and header data, we can set both configuration keys: | ||
| use Sentry.Plug, header_scrubber: &scrub_headers/1, scrubber: &scrub_params/1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also call this body_scrubber
| defp scrub_headers(data) do | ||
| Map.drop(data, ~w(authorization authentication)) | ||
| def default_header_scrubber(conn) do | ||
| Enum.into(conn.req_headers, %{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keyword.drop
6fb3e44 to
4e2b2ef
Compare
04a0c8d to
bf3358e
Compare
bf3358e to
6eb99c1
Compare
@jeregrine
This includes breaking changes for how request data is sent back, so the next release (2.0.0) will be a major version change.
closes #86