diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-30 10:38:53 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-30 11:50:03 +0300 |
commit | 03ba74c8f04c035adf29a7570883a51f7d56a555 (patch) | |
tree | f7c69dd0c4fbe4efbd550280e39378c7a4bc3396 /guides/source | |
parent | 35740ab2da890a09607b3c372ed48fd40cfc762f (diff) | |
download | rails-03ba74c8f04c035adf29a7570883a51f7d56a555.tar.gz rails-03ba74c8f04c035adf29a7570883a51f7d56a555.tar.bz2 rails-03ba74c8f04c035adf29a7570883a51f7d56a555.zip |
Add info about purpose in cookies to "Upgrading Ruby on Rails" guide [ci skip]
Context https://github.com/rails/rails/pull/33605#discussion_r210354278
Related to #32937, #33605
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 3f8edd953d..befd4e08c0 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -85,6 +85,17 @@ Rails 6.1. You are encouraged to enable `config.force_ssl` to enforce HTTPS connections throughout your application. If you need to exempt certain endpoints from redirection, you can use `config.ssl_options` to configure that behavior. +### Purpose in signed or encrypted cookie is now embedded in the cookies values + +To improve security, Rails now embeds the purpose information in encrypted or signed cookies value. +Rails can now thwart attacks that attempt to copy signed/encrypted value +of a cookie and use it as the value of another cookie. + +This new embed information make those cookies incompatible with versions of Rails older than 6.0. + +If you require your cookies to be read by 5.2 and older, or you are still validating your 6.0 deploy and want +to allow you to rollback set +`Rails.application.config.action_dispatch.use_cookies_with_metadata` to `false`. Upgrading from Rails 5.1 to Rails 5.2 ------------------------------------- |