0.0
No commit activity in last 3 years
No release in over 3 years
Confidential yaml loaded into environment in rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

< 4.1.0, >= 3.1.0
 Project Readme
NOTE: Since rails 4.1 this gem is deprecated in favor of secrets.

Gem Version Code Climate Build Status Dependency Status

Confidential

Loads your confidential configuration into envs in rails.

Install

Put this line in your Gemfile:

gem 'confidential'

Then bundle:

$ bundle

Configuration

Generate the confidential file:

$ bundle exec rails g confidential:install

Put your confidential information in it:

DB_USER: user
DB_PASS: pass

NOTE: You may want to ignore the file in your repo.

Usage

All the keys will be loaded into envs and be ready to use:

production:
  username: <%= ENV['DB_USER'] %>
  password: <%= ENV['DB_PASS'] %>

Contributing

Any issue, pull request, comment of any kind is more than welcome!

I will mainly ensure compatibility to PostgreSQL, AWS, Redis, Elasticsearch, FreeBSD and Memcached. 

Credits

This gem is maintained and funded by mmontossi.

License

It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.