All threads / Rails 5.2 - Encrypted Credentials Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Rails 5.2 - Encrypted Credentials Discussion

Reply
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
Reply
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,
Reply
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!
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
Reply

Quick question: If I have my rails app publicly shared on github, and my S3 bucket is in storage.yml, does that mean that even though no one can see my credentails, can they still use them to access and/or change the contents of the bucket?

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.