Skip to content

Conversation

@jamescway
Copy link

Allow user to specify some additional fields to sanitize. Replaces the values with the string mask (********)

Raven.configure do |config|
  config.sanitize_fields = %w(host User-Agent)
end

Copy link
Contributor

Choose a reason for hiding this comment

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

:( passing the sanitize fields config here isn't great, since it's only required by a single, specific processor. I think it's possible to keep the original interface here.

Copy link
Author

Choose a reason for hiding this comment

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

oops, yeah much cleaner accessing the client directly 👍

@nateberkopec
Copy link
Contributor

❤️ except for the one parameter concern there - we should be able to access the configuration object without adding that parameter (since we're passing the entire client along when we initialize the processor).

@nateberkopec
Copy link
Contributor

This will allow people to pass in Rails.config.filter_parameters! (#39)

@jamescway jamescway force-pushed the add-sanitize-fields branch from 6041f5c to dc1fc4d Compare November 8, 2014 02:02
@nateberkopec
Copy link
Contributor

Boom! Love it. Thanks!

nateberkopec added a commit that referenced this pull request Nov 8, 2014
Add user configurable sanitizer fields.

Close #39.
@nateberkopec nateberkopec merged commit 39895a6 into getsentry:master Nov 8, 2014
@jamescway
Copy link
Author

thank u sir 😁

@jamescway jamescway deleted the add-sanitize-fields branch November 8, 2014 21:06
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