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)

task

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:

  1. 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.
  2. Add a method to BackupService to enable encryption using some password ("recovery code") which calls enable on the ArchiveEncryptionState, and then persists the state to disk. This method should throw if encryption is already enabled.
  3. Allow for disabling encryption as well.
  4. Only allow BackupResource's with requiresEncryption to have backup run if encryption is enabled
  5. Add UI to the debug tool to enable / disable encryption.
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
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

Backed out for causing xpcshell failures in test_BackupService_enable_disable_encryption.js.

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
Regressions: 1900877
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Duplicate of this bug: 1890572
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: