Closed Bug 1902336 Opened 4 months ago Closed 3 months ago

Recovered payment methods need to be decrypted and reencrypted with the OSKeyStore

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Attachments

(1 file)

Once bug 1901132 is fixed, we should have the OSKeyStore recovery code wrapped in an encrypted single-file backup archive. Once given the right recovery code, the ArchiveDecryptor should have the original OSKeyStore secret from the device that the backup was created on.

We should then:

  1. Create a new nativeOSKeyStore with a unique temporary name, and provide the original OSKeyStore secret ("recovery code") to it
  2. Use that nativeOSKeyStore to decrypt the payment methods
  3. Re-encrypt the payment methods using the current system OSKeyStore.

I think we can probably do this at recovery time before launching the new profile, but it'll mean passing in the ArchiveDecryptor (or the original OSKeyStore secret) into the CredentialsAndSecurityBackupResource's recover method.

Assignee: nobody → mconley
Attachment #9411161 - Attachment description: WIP: Bug 1902336 - Make sure to properly re-encrypt payment methods with the local OSKeyStore after backup recovery. r?#backup-reviewers! → Bug 1902336 - Make sure to properly re-encrypt payment methods with the local OSKeyStore after backup recovery. r?#backup-reviewers!
Status: NEW → ASSIGNED
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2d0a5e716366 Make sure to properly re-encrypt payment methods with the local OSKeyStore after backup recovery. r=backup-reviewers,sthompson
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: