-
-
Notifications
You must be signed in to change notification settings - Fork 228
Key rotate #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key rotate #141
Conversation
Documentation is still missing. This should be a |
I think removing |
I'll write some documentation and push it before merging. The most important part seems to be documenting that the |
I think you removed |
Ended up making significant changes to the docs, so I'm going to make a separate PR for that. |
This change is designed for pallets/flask#1574
With this change,
Signer
andSerializer
can accept a list of secret keys. For instance,a
as the secret keyb
as the secret keyFor 2019/09, we will use
Serializer(['a'])
, and later in 10, we will useSerializer(['a', 'b'])
. Now the old dumped values can still be loaded, becausea
is in secret keys. But it will dump new value with secret keyb
in 2019/10.Later, we can remove
a
from the secret keys, since it is not used anymore. Maybe in 2019/11.