README.md in blouson-1.1.4 vs README.md in blouson-2.0.0
- old
+ new
@@ -63,10 +63,32 @@
config.use Blouson::SensitiveTableQueryLogSilencer
end
Arproxy.enable!
```
+### SentryParameterFilter
+Blouson provides an [sentry-ruby](https://github.com/getsentry/sentry-ruby) filter to conceal sensitive data from query string, request body, request headers and cookie values.
+
+```ruby
+require 'sentry-ruby'
+require 'blouson/sentry_parameter_filter'
+
+Sentry.init do |config|
+ # Enable `send_default_pii` to send the filtered sensitive information.
+ config.send_default_pii = true
+
+ filter_pattern = Rails.application.config.filter_parameters
+ secure_headers = %w(secret_token)
+ filter = Blouson::SentryParameterFilter.new(filter_pattern, secure_headers)
+
+ config.before_send = lambda do |event, _hint|
+ filter.process(event.to_hash)
+ end
+end
+
+```
+
### RavenParameterFilterProcessor
Blouson provides an [Raven-Ruby](https://github.com/getsentry/raven-ruby) processor to conceal sensitive data from query string, request body, request headers and cookie values.
```ruby
require 'blouson/raven_parameter_filter_processor'
@@ -78,9 +100,10 @@
...
config.processors << Blouson::RavenParameterFilterProcessor.create(filter_pattern, secure_headers)
...
end
```
+
### SensitiveMailLogFilter
ActionMailer outputs email address, all headers, and body text to the log when sending email.
```