Rails 6 adds support for Multi Environment credentials

This blog is part of our Rails 6 series. Rails 6.0.0.rc1 was recently released.In Rails 5.2, encrypted credentails are stored in the file config/credentials.yml.enc. This is a single flat file which is encrypted by the key located in config/master.key.Rails 5.2 does not support storing credentials of different environments with different encryption keys. If we want environment specific encrypted credentials, we’ll have to follow this workaround.Rails 6 has added support for Multi Environment credentials. With this change, credentials that belong to different environments can be stored in separate files with their own encryption key.
Rails 6 adds support for Multi Environment credentials #ruby #rubydeveloper #rubyonrails #credentials #environment https://rubyonrails.ba/single/rails-6-adds-support-for-multi-environment-credentials

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles