mkouhei / blinkers-gem

A Rails plugin to handle sensitive data securely.

Home Page:https://github.com/freee/blinkers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Rails plugin to handle sensitive data securely.

https://github.com/freee/blinkers

License:MIT License


Languages

Language:Ruby 77.1%Language:HTML 18.1%Language:CSS 2.5%Language:JavaScript 2.2%