diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-04-29 00:08:23 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-04-29 00:08:23 +0300 |
commit | 519a791ef9a90541a1bb3825790bd46fd57756f9 (patch) | |
tree | 9868b410f6abf4ab40d23b4c8d4aa5e255bcd8c5 /config | |
parent | 973b948b9e9553a57113983fa4e32207b581e0ad (diff) |
Prevent Rails filtered parameters from leaking to Sentry.
As described in their Docs: https://docs.getsentry.com/on-premise/clients/ruby/integrations/rails/
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/sentry.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index e87899b2d5c..74fef7cadfe 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -15,6 +15,9 @@ if Rails.env.production? Raven.configure do |config| config.dsn = current_application_settings.sentry_dsn config.release = Gitlab::REVISION + + # Sanitize fields based on those sanitized from Rails. + config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s) end end end |