Rails 5.1 introduced encrypted secrets, which gives you two places to put your secrets — secrets.yml and secrets.yml.enc. This causes a bit of confusion on when you should use normal secrets or encrypted secrets. Rails 5.2 replaces both secrets with encrypted credentials. You cannot use plain text credentials. There’s only credentials.yml.enc. Encrypted Credentials To use encrypted credentials, yo
![Rails Encrypted Credentials on Rails 5.2](https://cdn-ak-scissors.b.st-hatena.com/image/square/256e52f8520f317d2d2d31067ee5c9c23d861e0f/height=288;version=1;width=512/https%3A%2F%2Fwww.engineyard.com%2Fwp-content%2Fuploads%2F2022%2F02%2Fencryption2.webp)