1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides
Jorge Manrubia abfd2cc7a6
Forced encoding for deterministic encryption and other improvements (#42491)
* Fix: re-encrypting will preserve case when ignore_case is used

The implementation was outdated in relation to the new approach where we
override accessors.

* Add support for exists?(...) when querying encrypted attributes

* Add a new option to force encoding for deterministic attributes

Different encodings result in different ciphertexts. For
deterministically encrypted attributes, this can result in having
attributes with the same value that fails to satisfy uniqueness
constraints due to having different encodings.

This adds a new option `forced_encoding_for_deterministic_encryption:`
that will be UTF-8 by default. User can disabled this new behavior by
setting the option to nil.

* Add changelog entry
2021-06-17 12:30:35 +02:00
..
assets [ci skip] Kindle info icon fix 2021-06-07 16:10:24 -03:00
bug_report_templates Add net/smtp gem for bug report templates to support Ruby 3.1 2021-06-07 00:15:21 +09:00
rails_guides use ruby 2.7's filter_map instead of select + map 2021-04-26 17:55:33 -04:00
source Forced encoding for deterministic encryption and other improvements (#42491) 2021-06-17 12:30:35 +02:00
.document
CHANGELOG.md ActiveStorage: The parameters sent to ffmpeg for are now configurable 2021-06-16 14:15:34 +12:00
rails_guides.rb Use safe nav operator when calling RailsGuides::Generator.new 2018-12-05 12:41:07 +09:00
Rakefile Use Bundler.unbundled_system for bug_report_templates tests 2021-06-02 23:27:17 +09:00
w3c_validator.rb Use frozen string literal in guides/ 2017-08-13 22:04:09 +09:00