Skip to content

Commit

Permalink
Enable support for SHA1 encryption
Browse files Browse the repository at this point in the history
In Rails 7.1, encryption uses SHA256 whereas Rails 7.0 uses SHA1. As we
have data encrypted in SHA1, we need to enable support.

A later PR will migrate all data to use SHA256, then we will remove
support for SHA1.
  • Loading branch information
brucebolt committed Feb 27, 2024
1 parent 4798e8b commit 35c293e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,7 @@ class Application < Rails::Application
config.show_user_research_recruitment_banner = false

config.add_autoload_paths_to_load_path = true

config.active_record.encryption.support_sha1_for_non_deterministic_encryption = true
end
end

0 comments on commit 35c293e

Please sign in to comment.