Files
factorio-clusterio/test/lib
bbassieandClaude Opus 4.8 feb0e46aab Redact credentials from URLs in download errors
The mod portal takes the Factorio account token as a query parameter on the
download URL. When a download failed, downloadFile put the whole URL into the
error message, which ModStore then logged verbatim, printing the token into the
log at error level on every failed mod download.

Add a redactUrl helper that replaces the value of credential-carrying query
parameters with REDACTED, and use it when downloadFile builds its error.
Parameter names and the rest of the URL are kept so the message stays useful
for diagnosing which request failed; username is deliberately left intact as it
is not a secret and identifies the account in use.

Fixes #795

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 20:38:09 +00:00
..
2024-01-15 03:49:41 +01:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2023-07-28 16:03:29 +02:00
2026-04-09 22:53:13 +02:00
2026-06-26 22:15:28 +01:00