bendyworks / idkfa

Simple credentials loading
https://github.com/bendyworks/idkfa
4 stars 3 forks source link

h1. idkfa

Storing keys in your repository is A Bad Idea™. With @idkfa@, you can store them in a YAML file outside your repository yet include them easily.

Once installed and setup with @Idkfa.load_keys@, your sensitive information will be stored in upper-cased keys inside @ENV@.

Why "idkfa?" Haven't you played Doom?

h2. Default Configuration

To configure idkfa, you will need to add a @credentials.yml@ file to your project

Sample @config/credentials.yml@:

bc. common: &COMMON domain_url: http://localhost:3000 my_secret_api_key: something_really_secret development: <<: COMMON production: <<: COMMON

h2. Usage with Rails

bc. class Application < Rails::Application Idkfa.load_keys Rails.env, :credentials => Rails.root.join('config', 'credentials.yml') ... end

h2. General Usage

h2. Acknowledgements

Written/Conceived by: