citizenlabsgr / adopt-a-drain

Deploy an Adopt-a-Drain program for the Grand River watershed.
https://lgrow-staging.herokuapp.com
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Devise Secret value Distribution #158

Open Wilfongjt opened 5 years ago

Wilfongjt commented 5 years ago

Distribution of devise_secret value

devise_secret allows AAD to send outgoing email. We've been using SF's SMTP server (we are so bad) and now we are switching over to our own SMTP server which requires our own devise_secret. Anyway, we need to address how to distribute the devise_secret to developers without putting it into the repo.

Problem:

Solution:

jacebrowning commented 5 years ago

devise_secret allows AAD to send outgoing email

Does it?

My understanding is the secret is simply a pseudorandomly generated value ($ rails secret) used to encrypt account data on the server. I don't believe there is any risk involved in sharing a secret for local development as long as that secret is distinct from production.