Skip to main content

Subscribe to GoRails to get access to this episode and all other pro episodes, and new awesome content every month.

Subscribe Now
Only $19/month

Unlimited access. Cancel anytime.

16 Rails 5.2 - Encrypted Credentials

Episode 229 · February 15, 2018

Learn how to use the new Encrypted credentials in Rails 5.2 as a replacement to the old secrets.yml and encrypted secrets.

Rails 5.2


Transcripts

Subscribe or login to view the transcript for this episode.

Discussion


Gravatar
Great tutorial!

Gravatar
Hey Chris,
Timely tut! 

I'm trying to level up my devops skills and I've got a simple 'hello world' rails app on a single Digital Ocean Droplet that uses ubuntu and ngninx. I'm trying to better understand how / where to use credentials using the ssh comment you said.  Any chance you could link me to an example of how to do the SSH method of management? What would be some examples of shared location to store the master key? (If that doesn't make sense, I'll try to clarify)

Thanks again!
Dave

Gravatar
Hi Chris, 
I didn't mention any environment  while editing my credentials. But I couldn't access my keys in development console and I could see them in production console. Did I miss anything ?
Thanks,

Gravatar
Just a note for anyone else that might get an error about it not being able to find master.key. Make sure you are in the root directory of your app. I was in the config directory on the command line and it took me a bit to realize what the problem was. I think the command should be updated to check what directory it is being called from. Anyway, once I solved that riddle your directions worked great!
Gravatar
hi i think that i have the issue that you was talking about 
The path `/Users/chris/code/marcel` does not exist.

I m trying to solve that problem for the first time

Login or create an account to join the conversation.