How to safely store API keys in Rails apps Inspired by a question on reddit: Can you store user API keys in the database? I decided to elaborate just a little bit on this topic. Assuming you want store API keys (or passwords for SSL ceritifcate files) what are your options? What are the pros and cons in each case. Save directly in codebaseHow? #config/environments/production.rb config.mailchimp_ap
![How to safely store API keys in Rails apps](https://cdn-ak-scissors.b.st-hatena.com/image/square/9afb6f8f73c45f811cccb15617a9d9104dffb58d/height=288;version=1;width=512/https%3A%2F%2Fblog-arkency.imgix.net%2Fruby-store-api%2Fapi-keys-rails.png%3Fw%3D768%26h%3D758%26fit%3Dmax)