Skip to content

Conversation

mitchellhenke
Copy link
Contributor

Fixes a bug in that we should not be sending cookies, as there's no good default to prevent sending sensitive data.

By default, we won't send any, but will allow for users to override it with the cookie_scrubber option on Sentry.Plug

Closes #253


@spec default_cookie_scrubber(Plug.Conn.t()) :: map()
def default_cookie_scrubber(_conn) do
# Enum.into(conn.req_headers, %{})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented out code

end

test "scrubs cookies" do
bypass = Bypass.open()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test with a custom scrubber

@mitchellhenke mitchellhenke force-pushed the scrub-cookies branch 3 times, most recently from 663f8da to b860c18 Compare February 16, 2018 20:18
@mitchellhenke mitchellhenke merged commit c3ace17 into master Feb 27, 2018
@mitchellhenke mitchellhenke deleted the scrub-cookies branch February 27, 2018 15:33
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.

2 participants