Remove logins time_of_last_breach column#7244
Merged
jo merged 1 commit intomozilla:mainfrom Mar 4, 2026
Merged
Conversation
716dd3f to
6a1f361
Compare
402c728 to
080247f
Compare
In mozilla#7127, we added breach alerts support. However, in further discussions, we came to the conclusion that the column `time_of_last_breach` is not directly necessary, as this information can also be pulled from the Remote Settings during runtime. Performance optimizations should be subordinate to the principle of data spareness. Therefore, this PR removes the `time_of_last_breach` column introduced in mozilla#7127. Since this column is not yet used in Mobile, no data migration is necessary.
080247f to
fe7668b
Compare
bendk
approved these changes
Mar 2, 2026
Contributor
bendk
left a comment
There was a problem hiding this comment.
This looks right to me and the plan outlined makes sense.
What's happening with record_potentially_vulnerable_passwords? Is that still needed if you're getting the breach data from remote settings?
Contributor
Author
Yes, this is still needed, same with |
lando-worker Bot
pushed a commit
to mozilla-firefox/firefox
that referenced
this pull request
Mar 4, 2026
…iewers,matt-tighe to adapt to breaking as changes in mozilla/application-services#7244. timeOfLastBreach can be retrieved from Remote Settings during runtime. No data migration needed, because this data has not been actively used yet. Differential Revision: https://phabricator.services.mozilla.com/D285208
lando-worker Bot
pushed a commit
to mozilla-firefox/firefox
that referenced
this pull request
Mar 6, 2026
…iewers,matt-tighe to adapt to breaking as changes in mozilla/application-services#7244. timeOfLastBreach can be retrieved from Remote Settings during runtime. No data migration needed, because this data has not been actively used yet. Differential Revision: https://phabricator.services.mozilla.com/D285208
akliuxingyuan
pushed a commit
to akliuxingyuan/android-components
that referenced
this pull request
Apr 23, 2026
…iewers,matt-tighe to adapt to breaking as changes in mozilla/application-services#7244. timeOfLastBreach can be retrieved from Remote Settings during runtime. No data migration needed, because this data has not been actively used yet. Differential Revision: https://phabricator.services.mozilla.com/D285208
akliuxingyuan
pushed a commit
to akliuxingyuan/android-components
that referenced
this pull request
Apr 23, 2026
…iewers,matt-tighe to adapt to breaking as changes in mozilla/application-services#7244. timeOfLastBreach can be retrieved from Remote Settings during runtime. No data migration needed, because this data has not been actively used yet. Differential Revision: https://phabricator.services.mozilla.com/D285208
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In #7127, we added breach alerts support.
However, in further discussions, we came to the conclusion that the column
time_of_last_breachis not directly necessary, as this information can also be pulled from the Remote Settings during runtime. Performance optimizations should be subordinate to the principle of data spareness.Therefore, this PR removes the
time_of_last_breachcolumn introduced in #7127, along with their accessors. Since this column is not yet used in Mobile, no data migration is necessary.BREAKING CHANGES
Removed
time_of_last_breachfield fromLoginMetaandLogin. This can be derived from Remote Settings during runtime instead.Removed
record_breach(id, timestamp)API method.Removed
is_potentially_breached(id)API method.Removed
is_breach_alert_dismissed(id)API method.reset_all_breaches()now clears thebreachesLpassword table instead of resettingtime_of_last_breachtimestamps.Schema migrated to version 5:
timeOfLastBreachcolumn dropped fromloginsLandloginsM.The Phab Patch to adapt LoginsStorage.kt and Types.kt: https://phabricator.services.mozilla.com/D285208
Pull Request checklist
[ci full]to the PR title.