Closed Bug 2086894 Opened 1 month ago Closed 24 days ago

Add a Glean event for card security code storage errors

Categories

(Toolkit :: Form Autofill, task)

task

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: mtigley, Assigned: kalenlu)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxcm-cvv])

Attachments

(1 external file)

Add a Glean event that records when saving, reading (decrypting) or clearing a card security code fails, so silent failures show up in telemetry. S1/S2 bugs stay the rollout gate; this is a reliability signal on top of them.

  • Metric: formautofill.creditcards.cvv_store_error (event)
  • Extras:
    • operation: "save", "read" or "clear"
    • error_type: the error category
  • Recorded when saving, reading (decrypting) or clearing a security code fails.
  • Only the error category is recorded, never the code or any other card values.

Category: reliability. Needs a data review.

Whiteboard: [fxcm-cvv] → [fxcm-cvv-ui]
Whiteboard: [fxcm-cvv-ui] → [fxcm-cvv]

Add formautofill.creditcards.cvv_store_error, an event with operation ("save", "read", "clear")
and error_type extras, so failed security code writes and reads show up in telemetry instead of
failing silently.

RustAutofillCreditCardsAdapter records it from _add/_update when the failed write carried a
code ("save"), or dropped one the stored card held ("clear"). update() now passes the stored
record to _update(store, guid, record, stored) for that check.

#read records "read" when getCreditCard/getAllCreditCards fails and listCreditCardCandidates()
reports hasCvv for a card the read covered. The listing does not use the key, so it cannot prompt.
A missing record is not counted.

error_type is the AutofillApiError subclass name (CryptoError, SqlError, ...) or "Unknown",
matching the migration's error_code. No message, guid or card value is recorded.

A declined or locked primary password (NS_ERROR_ABORT) is not recorded: it is expected, not a failure.

The store encrypts the number and code in one call, so a failed write that carried a code counts as a
code failure. The JSON store holds no codes and is unchanged.

Assignee: nobody → klu
Status: NEW → ASSIGNED
Attachment #9671305 - Attachment description: Bug 2086894 - Add a Glean event for card security code storage errors. r?mtigley → Bug 2086894 - Add a Glean event for credict card storage errors. r?mtigley
Attachment #9671305 - Attachment description: Bug 2086894 - Add a Glean event for credict card storage errors. r?mtigley → Bug 2086894 - Add a Glean event for credit card storage errors. r?mtigley
Pushed by klu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/23803081cb4e https://hg.mozilla.org/integration/autoland/rev/a198abbcc632 Add a Glean event for credit card storage errors. r=mtigley,credential-management-reviewers,dimi
Status: ASSIGNED → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
See Also: → 2089497
See Also: → 2089931
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: