Logs: scrub Steam account names everywhere, keep Proton exception codes

Older session folders kept the Steam login account in steam/webhelper_js.txt
(OnLoginStateChange <account>): their scrub marker predated the account rules
and never expired. The marker now carries the rules version, so folders
scrubbed under older rules are scrubbed again at app start (every subfolder),
and folders moved out of Download/ are scrubbed after the move.

New rules: OnLoginStateChange <anything>, AccountName / account_name /
username / login fields. A bare code= is blanked only in a query string or
beside OAuth keys, never as an 8-hex exception code.
This commit is contained in:
The412Banner committed 2026-10-09 12:38:42 -04:00
1 parent 8d94f0c948
commit 79a40d93b3
8 files changed
+213 -20

No files matched your search

+14
View File
@@ -36,6 +36,20 @@ the timeline, then lessons and backlog. Companion to the README (what the app *d
both blank token values and Authorization / Cookie headers; the two test suites pass on it. The
Plasma desktop writes nothing outside the session folder (its output is the session's
`desktop.log`), so there was nothing new to move.
- **Privacy scan fixes:** the Steam login account (an email, 374 times) was still in older
folders' copied `steam/webhelper_js.txt` (`SteamUI: INFO: Login: OnLoginStateChange <account>`):
those folders carried a scrub marker from before the account rules, and the marker never
expired. The marker is now named after the redactor's rules version (`.scrubbed-r3`), so every
folder scrubbed under older rules goes through again at app start, steam/ and every subfolder
included; folders moved out of `Download/DroidDeck` are scrubbed after the move whatever their
markers say (`SessionArtifacts.scrubMoved`). New rules: `OnLoginStateChange <anything>`, and
`AccountName` / `account_name` / `username` / `login` fields (`login` only as `login=`, a quoted
key or a VDF pair, so the "Login:" label stays). The `code=` rule no longer touches Proton's
exception codes (`code=c0000005`, `406d1388`, `80000003`): a bare `code=` is blanked only right
after `?`/`&` or on a line with OAuth keys (`client_id`, `redirect_uri`, `state`, tokens), and
never when it is 8 hex digits; exchange / authorization codes are always blanked. Tests:
`LogRedactorTest` (the login line with an email and with a plain name), `SecretScrubTest`,
`SessionLogShareZipTest` (older and moved folders scrubbed on disk).
## 2026-10-08 - `feat/stores`: GOG, Epic Games and Amazon Games in the launcher (in progress)
A new **Stores** section - the three storefronts' libraries and public catalogs, one download