0.0
No commit activity in last 3 years
No release in over 3 years
Store secrets in one file, and access them from anywhere inside a Rails app (or any Ruby code).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 2.4.2
>= 0
 Project Readme

MultiArcana¶ ↑

Rails applications have many secret strings, and storing them in a public revision control system is a security issue. This gem simplifies secret management by storing all secrets in a single file, which is then copied into place using Capistrano or other deployment tools.

Usage:

gem 'multa_arcana'

Create a file config/secrets.yml to contain your secrets:

db_username: your-username-here
db_password: your-db-password-here
secret_token: klsjdklajd...2342342ds9u

Then, in any place where you normally use a secret, retrieve it:

config/initializers/secret_token.rb

Thing::Application.config.secret_token = MultaArcana::secret_for(:secret_token)

config/database.yml

production:
  adapter: postgresql
  encoding: unicode
  database: thing_production
  pool: 5
  host: 127.0.0.1
  username: <%= MultaArcana::secret_for(:db_username) %>
  password: <%= MultaArcana::secret_for(:db_password) %>