You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I think we could do something similar to itsdangerous here, with a new OLD_SECRET_KEYS config. Then app.secret_key remains a single value, and additional values can be added to the new config, and they can be sent to the itsdangerous mechanism. Note that app.config can't be mutated after startup (as it won't sync across each worker depending on how it's deployed), so updating the keys would require restarting the application.
I'd like to have a couple of secret keys available, like so
To allow them to rotate.
I've seen this issue which seems to have auto-closed
#1574
It seems like itsdangerous now supports this
pallets/itsdangerous#141
This would allow secret keys to be rotated regularly without sessions being invalidated.
The text was updated successfully, but these errors were encountered: