Ruby on Rails Friday, June 2, 2017

I'm having trouble following how to use the encrypted secrets.

Basically we're revamping our project to use the secrets.yml file as suggested per the 4.1 upgrade. We also want to use secrets.yml.enc as per the 5.1 upgrade. However, I'm having trouble using these two things together.

My understanding is that once the key is deployed as an environment variable I should be able to access secrets stored in the encrypted file much like we could from the secrets.yml file in RoR 4.1, i.e.:

Rails.application.secrets.<insert secret from secrets.yml.enc name here> .

Is there something basic that I'm missing to be able to do this?

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment