You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the ActiveRecord encryption rails guide[1] this commit
configures active record with the necessary encryption keys and salts.
In development the values of these variables doesn't matter, but to
avoid confusion I've set them to something that isn't obviously an
encryption key (such as the ones generated by
`db:encryption:init`). We'll need to ensure that these three
environment variables are set in non-local environments before this
change is deployed.
[1] https://guides.rubyonrails.org/active_record_encryption.html
Copy file name to clipboardExpand all lines: .env.example
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,8 @@ HOST_URL=http://localhost:3009
31
31
EDITOR_PUBLIC_URL=http://localhost:3012
32
32
33
33
PROFILE_API_KEY=test# This has to match the value set in Profile (https://github.com/RaspberryPiFoundation/profile/blob/ca10a4f360b6fe2b04be76264e03283054126b0f/.env.example#L45).
34
+
35
+
# Run bin/rails db:encryption:init to generate values for these if you need to encrypt securely locally.
0 commit comments