1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

11 commits

Author SHA1 Message Date
Kasper Timm Hansen
f9a6c00dcc
Fix RotationConfiguration test and remove nil-kind rotates. 2017-09-24 22:58:17 +02:00
Kasper Timm Hansen
9d79d77813
Use new rotation signature in cookies.
[ Michael Coyne & Kasper Timm Hansen ]
2017-09-24 21:25:59 +02:00
Kasper Timm Hansen
b5aa2e0c49
Remove advanced key generator rotations from verifier/encryptor.
Noticed that verifiers and encryptors never once mentioned key generators
and salts but only concerned themselves with generated secrets.

Clears up the confusing naming around raw_key and secret as well. And
makes the rotation API follow the constructor signature to the letter.
2017-09-24 21:00:03 +02:00
Kasper Timm Hansen
20ba2e762c
Infer options from the primary verifier.
Spares users from passing in non-changing values explicitly.

[ Michael Coyne & Kasper Timm Hansen ]
2017-09-24 19:46:10 +02:00
Kasper Timm Hansen
92afe55b17
[ci skip] RotationConfiguration is an implementation detail, not public API. 2017-09-24 19:02:12 +02:00
Michael Coyne
39f8ca64ce Add key rotation message Encryptor and Verifier
Both classes now have a rotate method where new instances are added for
each call. When decryption or verification fails the next rotation
instance is tried.
2017-09-23 17:16:21 -04:00
Kasper Timm Hansen
e9275965f2
Perform self-serialization once metadata is involved.
Adds support for metadata even when using ActiveSupport::MessageEncryptor::NullSerializer.
2017-08-13 20:40:59 +02:00
Rafael Mendonça França
f7d0bd657f Fix all rubocop violations 2017-08-03 17:45:40 -04:00
Kasper Timm Hansen
8ee9ace27b
Let Metadata instance handle purpose coercion.
[ Assain Jaleel & Kasper Timm Hansen ]
2017-07-23 12:31:41 +02:00
Kasper Timm Hansen
9fbfb4bffe
Remove dependency on from_now extension.
[ Assain Jaleel & Kasper Timm Hansen ]
2017-07-23 12:29:03 +02:00
Assain
3b506ee0d8 Add expires_at, expires_in, and purpose meta_data to messages. 2017-07-19 17:19:16 +05:30