-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated
config/secrets.yml
Rails' `config/secrets.yml` is deprecated and is not be supported in Rails 7.2. Thus, we need to change how we handle the `secret_key_base`. After this commit, the application will continue to use the environment variable `SECRET_KEY_BASE` when present (this is how the `staging` and `production` sites already work). When the environment variable is not set, the preset value in the file `tmp/local_secret.txt` is used. This *appears* to check in a private key and thus would be vulnerable, but it's not a vulnerability in this case. The rationale for this assertion is documented in the assurance case (as part of this commit), as well as more details about why it's been done this way. Signed-off-by: David A. Wheeler <[email protected]>
- Loading branch information
1 parent
228235a
commit e30a2df
Showing
4 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# The file `tmp/local_secret.txt` is NOT a vulnerability | ||
|
||
For more information, see the file `docs/assurance-case.md`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b49f4179a4f76042d3e44115f8e1bf424117f3389db00fb1dc31bcf1500bd0609f426412cc5af9871a40ade34887e65e61c895878d4973678682819098a513b7 |