From cca8e23e35ae3a5433505e4dadadbcd41ea1581b Mon Sep 17 00:00:00 2001 From: David Backeus Date: Fri, 5 Apr 2024 15:20:17 +0200 Subject: [PATCH] Support Rails 7.0 encryption defaults --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index bf8055f..f1b2433 100644 --- a/config/application.rb +++ b/config/application.rb @@ -48,5 +48,8 @@ class Application < Rails::Application config.active_record.encryption.primary_key = ENV["AR_ENCRYPTION_PRIMARY_KEY"] config.active_record.encryption.deterministic_key = ENV["AR_ENCRYPTION_DETERMINISTIC_KEY"] config.active_record.encryption.key_derivation_salt = ENV["AR_ENCRYPTION_KEY_DERIVATION_SALT"] + + # TODO: Remove after running Cluster.find_each(&:encrypt) + config.active_record.encryption.support_sha1_for_non_deterministic_encryption = true end end