Low commit activity in last 3 years
No release in over a year
Email scrubbing configuration for Airbrake at Blinkist
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 9, < 14
 Project Readme

Blinkist::AirbrakeScrubber

Blinkist::AirbrakeScrubber provides an Airbrake scrubbing service to remove various sensitive informations from the notifications, e.g. emails. It does not replace Airbrake configuration, but provides some seamless functionality.

Installation

Add this line to your application's Gemfile:

gem "blinkist-airbrake-scrubber"

And then execute:

$ bundle install

Information

Extending the functionality

To extend the functionality, create a new scrubber file in lib/blinkist-airbrake-scrubber/scrubbers folder, like the template:

module Blinkist::AirbrakeScrubber
  class WubbaLubba
    REGEXP = /[\S]+@[\S]+/i

    def self.scrub!
      ::Airbrake.add_filter do |notice|
        # Rainbows and unicorns come here:
        notice[:errors].each { |error| error[:message].gsub!(REGEXP, FILTERED) }
      end
    end

  end
end

Then, add the class to Blinkist::AirbrakeScrubber's SCRUBBERS list to have it ran after Airbrake.configure

Dependencies

This gem has dependency on airbrake (>= 9), it will automatically add it unless already bundled.

Maintainers

Special thanks

License

Copyright 2021 Blinks Labs GmbH. https://blinkist.com