Drop cards that cannot be decrypted when migrating to the Rust store, instead of failing the migration
Categories
(Toolkit :: Form Autofill, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: dimi, Assigned: dimi)
References
Details
(Whiteboard: [fxcm-backlog])
Attachments
(1 external file, 6 obsolete files)
A card whose number cannot be decrypted fails the whole migration run. The profile retries at every launch, fails identically, exhausts its retry budget and never migrates.
Proposal: skip records that cannot be decrypted, migrate the rest and complete the run. Their data is already unrecoverable.
| Assignee | ||
Comment 1•8 days ago
|
||
A card whose number does not decrypt fails every migration attempt the same
way, so the profile spends its retry budget and stays on JSON for good. Such
failures almost never clear: of the profiles that had already failed three
attempts and failed to decrypt again, about 0.2% later migrated. Once
DROP_UNDECRYPTABLE_AFTER_ATTEMPTS (3) attempts have failed, cards whose
number fails to decrypt with NS_ERROR_FAILURE or NS_ERROR_INVALID_ARG are
left out and the rest migrate; a cancelled unlock or a shutdown still fails
the attempt.
migrate_to_rust gains undecryptable, dropped and drop_reason, so the
threshold can be tuned by whether a decryption failure ever clears on a later
attempt.
| Assignee | ||
Comment 2•8 days ago
|
||
When other cards still decrypt and a card fails again on a second try, the key
store works and that card's number is encrypted under a key it no longer holds,
so there is no point spending the retry budget on it. Any attempt now leaves
such cards out. A card that decrypts on the second try, or a run where no card
decrypts, still fails the attempt.
Depends on D343048
| Assignee | ||
Comment 3•8 days ago
|
||
The attempt threshold counts failures of any kind, so it waits out errors
that clear on their own before giving up on a card. Two attempts in a row that
both fail to decrypt a card are evidence enough on their own: of the profiles
that failed to decrypt twice in a row, about 0.7% later migrated. A failure of
another kind restarts the count.
Depends on D343049
| Assignee | ||
Comment 4•8 days ago
|
||
A card whose number does not decrypt fails every migration attempt the same
way, so the profile spends its retry budget and stays on JSON for good. Such
failures almost never clear: of the profiles that had already failed three
attempts and failed to decrypt again, about 0.2% later migrated. Once
DROP_UNDECRYPTABLE_AFTER_ATTEMPTS (3) attempts have failed, cards whose
number fails to decrypt with NS_ERROR_FAILURE or NS_ERROR_INVALID_ARG are
left out and the rest migrate; a cancelled unlock or a shutdown still fails
the attempt.
| Assignee | ||
Comment 5•8 days ago
|
||
When another card's number decrypts in the same attempt, the key store works
and the cards that fail are encrypted under a key it no longer holds, so there
is no point spending the retry budget on them. Any attempt now leaves such
cards out. A run where no card decrypts still fails the attempt.
Depends on D343057
| Assignee | ||
Comment 6•8 days ago
|
||
The attempt threshold counts failures of any kind, so it waits out errors
that clear on their own before giving up on a card. Two attempts in a row that
both fail to decrypt a card are evidence enough on their own: of the profiles
that failed to decrypt twice in a row, about 0.7% later migrated. A failure of
another kind clears the record of the last one.
A key store that cannot be reached at all fails every decrypt the same way,
so a profile whose key store stays unreachable for two launches migrates
without its cards.
Depends on D343058
Updated•8 days ago
|
Updated•8 days ago
|
Updated•8 days ago
|
Updated•8 days ago
|
Updated•8 days ago
|
| Assignee | ||
Comment 7•8 days ago
|
||
How many cards a migration left out already follows from migrate_to_rust
(source_total minus migrated minus failed), but not which of the three rules
allowed it, since the thresholds are prefs and the rules can hold together.
drop_reason names it, giving the strongest evidence when more than one holds.
It is left off dry runs so that every drop_reason reported is a real migration.
Depends on D343057
Updated•8 days ago
|
Updated•8 days ago
|
Updated•8 days ago
|
Updated•8 days ago
|
| Assignee | ||
Updated•7 days ago
|
Updated•7 days ago
|
Comment 9•6 days ago
|
||
| bugherder | ||
Description
•