How to use Ruby on Rails Credentials

Storing environment variables and secrets in plaintext is a bad idea. But with Rails credentials, you can encrypt and store your secrets without exposing them- all it takes is a master key to access them. In this episode, I walk through setting up Rails credentials for our application.
šŸ¤Æ Support
  • https://www.patreon.com/davidwparker
  • https://www.buymeacoffee.com/davidwparker

ā±ļø Timestamps:
  • 00:00 - Introduction
  • 00:20 - Docs and what are Rails credentials
  • 01:50 - Commands and demo
  • 02:45 - AWS IAM
  • 04:30 - accessing credential values
  • 05:20 - credentials for different environments

šŸ’Œ Newsletter:
  • https://www.programmingtil.com/

šŸŖElsewhere:
  • Twitter: https://twitter.com/davidwparker
  • Twitter: https://twitter.com/programmingtil
  • GitHub: https://github.com/davidwparker

šŸ’­Concepts:
  • How to use Rails credentials to work with secrets

šŸ“šResources:
  • https://github.com/davidwparker/programmingtil-rails/tree/ep24
  • https://edgeguides.rubyonrails.org/security.html#custom-credentials
  • https://s3.console.aws.amazon.com/

šŸŽ¬ Subscribe!
  • http://bit.ly/subdavidwparker

My name is David W Parker and Iā€™m creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. Iā€™m a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. Iā€™ve used React a lot in the past, as well as some Vue and AngularJS. Iā€™ve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.

ruby #rails #rubyonrails

Ā© programmingtil.com