Commit 9c99a0d
committed
Drop Rails.application.secrets in favor of credentials/ENV
Rails 7.2 removes Rails.application.secrets entirely. Anything that
relied on config/secrets.yml stops working at the bump. Currently the
file only carries secret_key_base, which Rails resolves through this
chain (in order):
1. Rails.application.credentials.secret_key_base
2. ENV["SECRET_KEY_BASE"]
3. tmp/local_secret.txt (dev/test auto-generated)
Production already uses ENV["SECRET_KEY_BASE"] (unchanged). Dev/test
fall through to tmp/local_secret.txt automatically, so deleting
secrets.yml is safe.
Also drops config.read_encrypted_secrets = true from production.rb,
which is a no-op in 7.2 and only ever applied to the legacy
secrets.yml.enc workflow.
Ref: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#rails-application-secrets-removal1 parent 9e52608 commit 9c99a0d
2 files changed
Lines changed: 0 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| |||
This file was deleted.
0 commit comments