-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(encryption): Add previous keys fallback feature #9853
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
Changes from 7 commits
7837aa0
be93000
972ad6e
486bf57
5f45c6f
55ed3a7
5e53f06
68e05ba
772bc29
2ad2e97
c3f5bae
97e32f4
6a8694f
2f58622
628c41d
a1902e1
e1331e2
5f63c3f
2e871d2
bd6e045
e1315e3
c76a1dc
f1d8312
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,24 @@ | |
| */ | ||
| public string $key = ''; | ||
|
|
||
| /** | ||
| * -------------------------------------------------------------------------- | ||
| * Previous Encryption Keys fallback enabled | ||
| * -------------------------------------------------------------------------- | ||
| * If you want to enable decryption using previous keys, set this to true. | ||
| * See the user guide for more info. | ||
| */ | ||
| public bool $previousKeysFallbackEnabled = false; | ||
|
|
||
| /** | ||
| * -------------------------------------------------------------------------- | ||
| * Previous Encryption Keys | ||
| * -------------------------------------------------------------------------- | ||
| * If you want to enable decryption using previous keys, set them here. | ||
| * See the user guide for more info. | ||
| */ | ||
| public array $previousKeys = []; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The encryption config can take in values from the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can do that. So, this would be changed to comma separated string, right? So, we will have to do like, convert Which approach would be more better?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've currently set the second approach as for now (while initializing in the BaseConfig, do the parsing stuff and then implode as comma-separated string for future use), but we can use the other approach as well. |
||
|
|
||
| /** | ||
| * -------------------------------------------------------------------------- | ||
| * Encryption Driver to Use | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.