Commit 3df8da4
authored
Breach alerts and potentially vulnerable passwords (#7155)
* Move login breach fields into meta record
Move the previously introduced login breach-related fields
`time_of_last_breach` and `time_last_breach_alert_dismissed` from
LoginFields into LoginMeta struct, to group internally handled fields
which are not directly updateable.
* Add password reuse detection for breach alerts
Add breachesL table (schema v4) to track breached passwords and enable
cross-domain password reuse detection.
New APIs:
- are_potentially_vulnerable_passwords(ids) - Batch check, returns GUIDs
- is_potentially_vulnerable_password(id) - Single login check
Batch API decrypts breachesL once and uses HashSet for efficient lookups
(O(M + N) vs O(M * N) for repeated single checks).
* Add record_potentially_vulnerable_passwords API
Adds bulk insert method for populating breachesL table during import.
Encrypts passwords and filters duplicates automatically.
Called by add_many_with_meta() to collect passwords from logins with
known breaches for password reuse detection.1 parent 42c175c commit 3df8da4
File tree
7 files changed
+640
-62
lines changed- components/logins/src
- sync
7 files changed
+640
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
0 commit comments