Open Bug 1912063 Opened 2 years ago Updated 2 years ago

Clear any lingering RECOVERY_OSKEYSTORE_LABEL native OSKeyStore secrets before doing a recovery

Categories

(Firefox :: Profile Backup, task, P3)

task

Tracking

()

People

(Reporter: mconley, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-device-migration])

Theoretically, a recovery can be interrupted (by a crash, for example - or a user-initiated shutdown), and the OSKeyStore recovery secret will still be in secure storage. This will cause subsequent calls to asyncRecoverSecret with that label to fail.

We should be resilient to that by checking if the secret exists and clearing it before recovering the one from the backup.

You need to log in before you can comment on or make changes to this bug.