Merge pull request #5320 from consuldemocracy/aibrake_filter
Filter sensitive information from airbrake parameters
This commit is contained in:
@@ -16,6 +16,8 @@ Airbrake.configure do |config|
|
|||||||
config.job_stats = false
|
config.job_stats = false
|
||||||
config.query_stats = false
|
config.query_stats = false
|
||||||
config.remote_config = false
|
config.remote_config = false
|
||||||
|
|
||||||
|
config.blocklist_keys = Rails.application.config.filter_parameters
|
||||||
end
|
end
|
||||||
|
|
||||||
Airbrake.add_filter do |notice|
|
Airbrake.add_filter do |notice|
|
||||||
|
|||||||
7
spec/airbrake_spec.rb
Normal file
7
spec/airbrake_spec.rb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
require "rails_helper"
|
||||||
|
|
||||||
|
describe "Airbrake" do
|
||||||
|
it "uses the same filtering rules that Consul Democracy" do
|
||||||
|
expect(Airbrake::Config.instance.blocklist_keys).to eq Rails.application.config.filter_parameters
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user