Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to configure digest algorithm in Active Record Encryption #44873

Merged
merged 1 commit into from
Feb 27, 2023

Commits on Feb 27, 2023

  1. Add option to configure digest algorithm used by Active Record Encryp…

    …tion
    
    Before, it was using the configured by Rails. Having a mechanism to configure it
    for Active Record encryption makes sense to prevent problems with encrypted content
    when the default in Rails changes.
    
    Additionally, there was a bug making AR encryption use the older SHA1 before
    `ActiveSupport.hash_digest_class` got initialized to SHA256. This bug was exposed
    by rails#44540. We will now set SHA256 as the standard
    for 7.1+, and SHA1 for previous versions.
    jorgemanrubia committed Feb 27, 2023
    Configuration menu
    Copy the full SHA
    22f66af View commit details
    Browse the repository at this point in the history