Commit Graph
6 Commits
Author SHA1 Message Date
Lauri Ojansivu 307bad3e8e Give a list from before list lifetimes its incarnation when Sync settings are saved.
Such a list had no incarnation, so it stayed on direct Sync for good.
Saving its Sync settings now assigns one in the same list update that
selects the new credential, and the credential is bound to it, so the
list becomes eligible for durable Sync. No migration assigns it, so an
upgrade leaves every stored credential matching.

Thanks to xet7 !
2026-10-02 15:09:58 +03:00
Lauri Ojansivu a00c009ba6 Bind scheduled Sync to its authorizing account 2026-09-28 02:30:48 +03:00
Lauri Ojansivu 0210614a89 Repair malformed Sync credential counters without reviving stale saves
Fence cleanup with opaque revisions and delete only bounded immutable ID snapshots. Settings saves repair invalid or exhausted counters atomically, while active tokens and newer staging remain intact. Cover reset races, overlapping delayed sweeps, bounded backlogs, lost acknowledgements and popup saves.

Thanks to xet7 !
2026-09-28 00:04:04 +03:00
Lauri Ojansivu 210f1b59b7 Retire deleted-list Sync credentials with list lifetime isolation
Generate a fresh credential incarnation for each list insertion, including imports and copies. Match it when selecting credentials and activating settings. Sweep orphan versions by exact identity without reading secrets or deleting a recreated list's new token. Cover recreation races, delayed saves, retryable cleanup and browser flows.

Thanks to xet7 !
2026-09-27 23:59:02 +03:00
Lauri Ojansivu b3c53c3ae6 Retire abandoned Sync credential versions with generation fencing
An hourly streaming sweep advances a server-owned generation before deleting unselected older versions. Settings activation checks its captured generation, so a delayed save cannot select a retired credential. Preserve active and newly staged versions, isolate per-list failures and keep secrets out of cleanup logs.

Eleven Node suites pass, including real MongoDB concurrent saves and sweeps, late inserts, uncertain writes and restart retries. Eight Chromium Sync scenarios pass across the initial run and focused corrected-test rerun. Upgrade all writers together; missing-list and malformed-generation records remain for review.

Thanks to xet7 !
2026-09-27 23:21:36 +03:00
Lauri Ojansivu 81876bfa39 Activate Sync settings and immutable credentials in one list update
Stage a private credential version and select it with settings using a conditional revision update. Preserve the previous or new pair across interrupted saves and lost acknowledgements. Prevent stale saves and delayed cleanup from replacing newer credentials, including after a clear.

Thanks to xet7.
2026-09-27 22:08:45 +03:00