Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Heroku Config Vars safe for sensitive information?

Tags:

heroku

I overheard on in a passing conversation that ENV (config vars) on Heroku is not the safest place to store sensitive variables. I thought the opposite was true, and my Google-fu is not helping me any here. Any thoughts?

like image 575
lefnire Avatar asked Oct 01 '12 20:10

lefnire


2 Answers

Heroku config vars are designed to be safe for storing sensitive information. All config vars are stored in an encrypted form and safely stored. These are only decrypted and loaded when booting your app in a dyno itself.

like image 102
CraigKerstiens Avatar answered Oct 31 '22 12:10

CraigKerstiens


That depends what you mean by secure. In the settings section of your application on the Heroku dashboard, there is a "Reveal Config Vars" button. This will display your config vars to anyone who has access to the app.

For this reason, you probably don't want to have things like AWS_SECRET_ACCESS_KEY, or critical passwords in your config vars.

like image 5
John Stein Avatar answered Oct 31 '22 14:10

John Stein