Permalink
Show file tree
Hide file tree
6 changes: 3 additions & 3 deletions
6
lib/redis/store/marshalling.rb → lib/redis/store/serialization.rb
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Replace marshalling with pluggable serializers
This is in response to a vulnerability warning we received on Friday, August 11th, 2017. While most users will not be affected by this change, we recommend that developers of new applications use a different serializer other than `Marshal`. This, along with the removal of the `:marshalling` option, will enforce "sane defaults" in terms of securely serializing/de-serializing data. - Add `:serializer` option and deprecate `:marshalling`. Although you will still be able to enable/disable serialization with Marshal using `:marshalling` in the 1.x series, this will be removed by 2.0. - Rename `Redis::Store::Marshalling` to `Redis::Store::Serialization` to reflect its new purpose. Fixes #289
- Loading branch information
Tom Scott
committed
Aug 15, 2017
1 parent
589d2d0
commit e0c1398
Showing
8 changed files
with
80 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1 @@ | ||
| require 'redis' | ||
| require 'redis/store' | ||
| require 'redis/store/factory' | ||
| require 'redis/distributed_store' | ||
| require 'redis/store/namespace' | ||
| require 'redis/store/marshalling' | ||
| require 'redis/store/version' | ||
| require 'redis/store/redis_version' | ||
|
|
||
| class Redis | ||
| class Store < self | ||
| end | ||
| end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
test/redis/store/marshalling_test.rb → test/redis/store/serialization_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters