1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/source
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
..
kindle Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00
2_2_release_notes.md [ci skip] Improved Sentence + Removed and added commas at correct places 2021-05-31 03:09:42 +05:30
2_3_release_notes.md Fix typos, grammar, and formatting [ci-skip] 2020-12-28 12:05:53 -06:00
3_0_release_notes.md Fix typos, grammar, and formatting [ci-skip] 2020-12-28 12:05:53 -06:00
3_1_release_notes.md [ci skip] Corrected Change logs to Changelogs 2021-05-31 18:40:12 +05:30
3_2_release_notes.md [ci skip] Corrected Change logs to Changelogs 2021-05-31 18:40:12 +05:30
4_0_release_notes.md [ci skip] Corrected Change logs to Changelogs 2021-05-31 18:40:12 +05:30
4_1_release_notes.md [ci skip] Corrected Change logs to Changelogs 2021-05-31 18:40:12 +05:30
4_2_release_notes.md docs: fix missing HTTPS on links [ci-skip] 2021-04-12 09:45:13 +10:00
5_0_release_notes.md [ci skip] Fixed typos and grammatical errors 2021-06-01 03:27:58 +05:30
5_1_release_notes.md [ci skip] Fixed typos and grammatical errors 2021-06-01 04:54:25 +05:30
5_2_release_notes.md [ci skip] Corrected Change logs to Changelogs 2021-05-31 18:40:12 +05:30
6_0_release_notes.md [ci skip] Corrected Change logs to Changelogs 2021-05-31 18:40:12 +05:30
6_1_release_notes.md [ci skip] Corrected Typos and Replacement to make doc concise 2021-05-31 15:41:28 +05:30
7_0_release_notes.md Fix link to Upgrading guide from 7.0 Release Notes guide [ci skip] 2021-02-25 18:25:30 -03:00
_license.html.erb
_welcome.html.erb Rails 6.2 is now Rails 7.0 2021-02-04 16:47:16 +00:00
action_cable_overview.md [ci skip] Fixed typos and grammatical errors in Action Cable Overview 2021-06-05 03:38:01 +05:30
action_controller_overview.md [ci skip] Improved and corrected grammatical errors in Action Controller Overview 2021-06-05 04:54:19 +05:30
action_mailbox_basics.md chore: fix grammar and spelling in Markdown and Ruby files 2021-04-15 19:32:27 +10:00
action_mailer_basics.md [ci skip] Fixed grammatical errors in Action Mailer Basics Guide 2021-06-06 03:07:09 +05:30
action_text_overview.md [ci skip] Corrected Grammatical Error 2021-06-13 02:36:14 +05:30
action_view_helpers.md Lint Markdown blank lines around headings [ci-skip] 2021-04-14 01:17:46 +10:00
action_view_overview.md [ci skip] Improved Action View Overview 2021-06-13 02:48:38 +05:30
active_job_basics.md Add Range to list of supported arguments for jobs 2021-05-16 08:44:59 +01:00
active_model_basics.md [ci skip] Fixing all <x> based occurances to <x>-based 2021-06-16 19:15:12 +05:30
active_record_basics.md Add example for update_all vs. update 2021-06-10 21:07:40 +09:00
active_record_callbacks.md Fix inaccurate callback documentation 2021-06-12 17:15:12 -07:00
active_record_encryption.md Forced encoding for deterministic encryption and other improvements (#42491) 2021-06-17 12:30:35 +02:00
active_record_migrations.md Update all Migration version references 2021-05-02 21:17:04 +09:00
active_record_multiple_databases.md Multi DB docs improvements 2021-06-11 11:42:11 -05:00
active_record_postgresql.md docs: fix missing HTTPS on links [ci-skip] 2021-04-12 09:45:13 +10:00
active_record_querying.md Add relation.and documentation to the guides [skip ci] 2021-06-14 21:05:05 +02:00
active_record_validations.md typo: subject-verb disagreement 2021-05-24 15:02:03 -04:00
active_storage_overview.md Fixed wrong reference link in active storage guide. 2021-06-17 08:10:23 +05:30
active_support_core_extensions.md Compute table name based on model name 2021-05-12 12:34:56 -04:00
active_support_instrumentation.md Provide context when logging unpermitted parameters 2021-03-31 17:15:23 -06:00
api_app.md Remove Rack::Runtime and deprecate referencing it 2021-04-12 14:31:12 -04:00
api_documentation_guidelines.md Update guides/source/api_documentation_guidelines.md 2021-05-13 16:31:27 +02:00
asset_pipeline.md [ci skip] Fixing all <x> based occurances to <x>-based 2021-06-16 19:15:12 +05:30
association_basics.md Update all Migration version references 2021-05-02 21:17:04 +09:00
autoloading_and_reloading_constants.md Drops support for classic mode 2021-03-08 05:30:11 +01:00
autoloading_and_reloading_constants_classic_mode.md Fix grammar 2021-01-05 12:36:47 -06:00
caching_with_rails.md Document the new Active Support cache format 2021-04-26 11:20:59 +02:00
command_line.md Matched guide example with rails api docs [ci skip] 2021-05-01 13:18:45 +05:30
configuring.md ActiveStorage: The parameters sent to ffmpeg for are now configurable 2021-06-16 14:15:34 +12:00
contributing_to_ruby_on_rails.md Update wording on how to issue a pull request [ci skip] 2021-06-07 10:02:25 -05:00
debugging_rails_applications.md Merge pull request #42114 from adityapandit17/guides_patch 2021-05-02 10:41:39 +09:00
development_dependencies_install.md chore: fix case of CSS and JavaScript 2021-04-15 21:52:58 +10:00
documents.yaml Encryption guide (WIP) 2021-04-01 15:02:13 +02:00
engines.md Add load hook for ActiveStorage::VariantRecord 2021-05-28 10:36:16 +12:00
form_helpers.md Simplify singular resource example 2021-03-28 18:38:51 -05:00
generators.md Fix doc: stylesheet_include_tag -> stylesheet_link_tag 2021-01-23 13:07:58 -03:00
getting_started.md Fix typo 2021-05-09 08:05:47 -06:00
i18n.md Further clarify internationalization example copy 2021-06-03 10:08:04 -04:00
index.html.erb
initialization.md Fix typos, grammar, and formatting [ci-skip] 2020-12-28 12:05:53 -06:00
layout.html.erb Rename master to main in all code references 2021-01-19 20:46:33 +00:00
layouts_and_rendering.md chore: fix case of CSS and JavaScript 2021-04-15 21:52:58 +10:00
maintenance_policy.md Clarify maintenance policy for bug fixes to security patches 2021-03-12 21:26:44 +00:00
plugins.md docs: fix grammar and spelling [ci skip] 2021-04-15 18:51:29 +10:00
rails_application_templates.md Fix typos, grammar, and formatting [ci-skip] 2020-12-28 12:05:53 -06:00
rails_on_rack.md Remove Rack::Runtime and deprecate referencing it 2021-04-12 14:31:12 -04:00
routing.md Improve guides note about using a proc/lambda as a route endpoint 2021-05-21 13:05:37 -03:00
ruby_on_rails_guides_guidelines.md Remove references to WARNINGS environment variable [ci skip] 2020-07-05 16:40:52 +01:00
security.md Change HTML img tag to lowercase [ci skip] 2021-05-05 09:54:09 +10:00
testing.md Merge pull request #40745 2021-06-08 23:32:28 +00:00
threading_and_code_execution.md Fix typos, grammar, and formatting [ci-skip] 2020-12-28 12:05:53 -06:00
upgrading_ruby_on_rails.md Merge pull request #42485 from AdityaBhutani/correct-all-x-based-occurances 2021-06-17 08:33:54 +09:00
webpacker.md Fix extra s typo in doc app/javascripts/packs 2021-06-15 07:22:59 +02:00
working_with_javascript_in_rails.md docs: fix grammar and spelling [ci skip] 2021-04-15 18:51:29 +10:00