Skip to content

Commit

Permalink
Support Rails 7.0 encryption defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
dbackeus committed Apr 5, 2024
1 parent 9ad0ef2 commit cca8e23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cca8e23

Please sign in to comment.