Secure Your Secret Keys With Rails 7 Encrypted Credentials

  Рет қаралды 3,386

Deanin

Deanin

Күн бұрын

Пікірлер: 11
@MattBudz
@MattBudz 2 жыл бұрын
Rails has evironment credentials. Try this command `bin/rails credentials:edit --environment production` and this will generate `config/credentials/production.yml.enc` along with `config/credentials/production.key` rather than `config/credentials.yml.enc` and `config/master.key`. You can do the same for the test and development environments. For multi-level keys you can use this syntax `Rails.application.credentials.aws.access_key_id`. Rails will know which credentials file to use automagically without the need to specify the environment. Also, if you add the editor you want to use to your bashrc (or equivalent), you don't need to specify the editor in the command. EDIT: don't forget to add your secret_key_base to the environment credentials.
@Deanin
@Deanin 2 жыл бұрын
Had no idea about this, thank you!
@MattBudz
@MattBudz 2 жыл бұрын
@@Deanin It's quite handy for real world projects. Sadly it's not really documented anywhere.
@gregcurl5594
@gregcurl5594 9 ай бұрын
Thanks!💯
@Deanin
@Deanin 9 ай бұрын
I should be thanking you! I'm glad the video was helpful 🙂
@shiccorama
@shiccorama Жыл бұрын
THANKS A MILLION, DEANIN.
@ravi-xv7et
@ravi-xv7et 2 жыл бұрын
You are real hero for Ruby on rails as no one in the KZbin is helping like this for Ruby on rails, can you make any video with CRUD operations on GraphQL
@Deanin
@Deanin 2 жыл бұрын
I can look into it, absolutely. I've been meaning to revisit it now that I understand Rails a bit better. I also appreciate the kind words 🙂
@TheJackTheLion
@TheJackTheLion 2 жыл бұрын
That's the same thing I told him!
@gulammohammadali4831
@gulammohammadali4831 2 жыл бұрын
Thank You So much!!!!😇
The Complete Guide to Ruby on Rails Encrypted Credentials
17:22
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Работа с secrets/credentials в Ruby on Rails
14:19
Хороший программист
Рет қаралды 2,3 М.
All you need is Rails (Engines): Compartmentalising your Monolith
38:26
Rails on Hetzner with Kamal - Deployments from Scratch PT. 1
19:19
Sam Johnson
Рет қаралды 4,2 М.
Kamal 1.0
19:17
37signals
Рет қаралды 24 М.
How to use Dev Containers in Rails 7.2
24:07
GoRails
Рет қаралды 6 М.
Upgrading a Rails 6.1 application to Rails 7 - clearbnb - Part 7
21:15
CJ Avilla (cjav_dev)
Рет қаралды 5 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН