Project

blinkers

0.01
No commit activity in last 3 years
No release in over 3 years
Provides secure_params that converts sensitive data to [FILTERED]. And send [FILTERED] data to error monitoring sevices.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

> 4.1.0
 Project Readme

Blinkers

A Rails plugin to handle sensitive data securely.

Usage

Set in Gemfile and install with bundler.

gem 'blinkers'
bundle install

secure_params

secure_params is FILTERED params. It filters all data specified in Rails.application.config.filter_parameters and converts to [FILTERED].

So if you want to pass params to log file or other services, passing secure_params would be safer.

params['password']
=> 'password123'

secure_params['password']
=> '[FILTERED]'

Adding sensitive keys

If you want to filter other data. Just add to filter_parameters.

secure_params['secure_data']
=> 'THE SECRET DATA'

Rails.application.config.filter_parameters << [:secure_data]

secure_params['secure_data']
=> '[FILTERED]'

“Rails”, “Ruby on Rails”, and the Rails logo are registered trademarks of David Heinemeier Hansson. All rights reserved.