File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,16 @@ The following configuration values are used internally by Flask:
127
127
128
128
.. py :data :: SECRET_KEY_FALLBACKS
129
129
130
- A list of old secret keys that can still be used for unsigning, most recent
131
- first. This allows a project to implement key rotation without invalidating
132
- active sessions or other recently-signed secrets.
130
+ A list of old secret keys that can still be used for unsigning. This allows
131
+ a project to implement key rotation without invalidating active sessions or
132
+ other recently-signed secrets.
133
133
134
134
Keys should be removed after an appropriate period of time, as checking each
135
135
additional key adds some overhead.
136
136
137
+ Order should not matter, but the default implementation will test the last
138
+ key in the list first, so it might make sense to order oldest to newest.
139
+
137
140
Flask's built-in secure cookie session supports this. Extensions that use
138
141
:data: `SECRET_KEY ` may not support this yet.
139
142
You can’t perform that action at this time.
0 commit comments