Closed
Bug 1897278
Opened 1 year ago
Closed 1 year ago
Add a method to BackupService to enable encryption and persist the state to disk, and to disable
Categories
(Firefox :: Profile Backup, task, P3)
Firefox
Profile Backup
Tracking
()
RESOLVED
FIXED
128 Branch
| Tracking | Status | |
|---|---|---|
| firefox128 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley, NeedInfo)
References
Details
(Whiteboard: [fidefe-device-migration])
Attachments
(2 files)
This is based on the work in bug 1896715. In this bug, we will:
- Add an ArchiveEncryptionState instance member to BackupService. Have this be a lazy member that will attempt to read a pre-existing ArchiveEncryptionState off of disk after instantiation if one exists.
- Add a method to BackupService to enable encryption using some password ("recovery code") which calls
enableon the ArchiveEncryptionState, and then persists the state to disk. This method should throw if encryption is already enabled. - Allow for disabling encryption as well.
- Only allow BackupResource's with requiresEncryption to have
backuprun if encryption is enabled - Add UI to the debug tool to enable / disable encryption.
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Summary: Add a method to BackupService to enable encryption and persist the state to disk → Add a method to BackupService to enable encryption and persist the state to disk, and to disable
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d5e43f371c09
Make the backups profile folder a constant accessible off of the BackupService class. r=backup-reviewers,kpatenio
https://hg.mozilla.org/integration/autoland/rev/b24523dedba4
Add methods to BackupService to enable / disable encryption. r=backup-reviewers,kpatenio
Comment 4•1 year ago
|
||
Backed out for causing xpcshell failures in test_BackupService_enable_disable_encryption.js.
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/components/backup/tests/xpcshell/test_BackupService_enable_disable_encryption.js | xpcshell return code: -11
Flags: needinfo?(mconley)
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/27580a94c5ee
Make the backups profile folder a constant accessible off of the BackupService class. r=backup-reviewers,kpatenio
https://hg.mozilla.org/integration/autoland/rev/c66527750231
Add methods to BackupService to enable / disable encryption. r=backup-reviewers,kpatenio
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/27580a94c5ee
https://hg.mozilla.org/mozilla-central/rev/c66527750231
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox128:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•