Redact common Windows and Proton profile paths in zip-logs #548

Open
github-bot wants to merge 1 commit from github-bot/gh-548 into main AGit
Owner

@⁠christopear on GitHub · 2026-12-06 02:22 UTC · original
christopear:codex/redact-profile-paths → main · +87 −13 · 5 files · 1 commits · open

The current ZIP command promises to strip the Windows username, but it replaces only three spellings of a C-drive path containing the process account. Under Proton the host account can be entirely different. This also misses other drives, case variations and escaped paths.

This change masks the profile component of common Windows and Linux home paths in text entries, independently of the current account. It keeps trailing path components useful for diagnosis. The CLI and reporting docs now ask users to inspect the archive before sharing it.

Checks

  • Built the original and patched Windows CLIs and ran both under Proton Experimental with synthetic logs and settings.
  • Extracted and compared all five entry types. The original retained all five synthetic profile names. The patched version masked them and preserved the unrelated diagnostic text in the fixture. ZIP integrity checks passed and source files were unchanged.
  • Both focused Rust tests passed. They cover mixed separators and case, escaped paths, spaces, Unicode, repeated redaction and unrelated paths.

Scope

This is best-effort text redaction. Entry names, custom paths, arbitrary identifiers and secrets may remain. Unquoted profile names with spaces can be ambiguous, so masking can also remove adjacent text. The archive file selection is unchanged. This complements #460, which adds stderr files and touches the same documentation row.

**@⁠christopear** on GitHub · 2026-12-06 02:22 UTC · [original](https://github.com/gamingwithhomie/larp/pull/548) `christopear:codex/redact-profile-paths` → `main` · +87 −13 · 5 files · 1 commits · open The current ZIP command promises to strip the Windows username, but it replaces only three spellings of a C-drive path containing the process account. Under Proton the host account can be entirely different. This also misses other drives, case variations and escaped paths. This change masks the profile component of common Windows and Linux home paths in text entries, independently of the current account. It keeps trailing path components useful for diagnosis. The CLI and reporting docs now ask users to inspect the archive before sharing it. ### Checks * Built the original and patched Windows CLIs and ran both under Proton Experimental with synthetic logs and settings. * Extracted and compared all five entry types. The original retained all five synthetic profile names. The patched version masked them and preserved the unrelated diagnostic text in the fixture. ZIP integrity checks passed and source files were unchanged. * Both focused Rust tests passed. They cover mixed separators and case, escaped paths, spaces, Unicode, repeated redaction and unrelated paths. ### Scope This is best-effort text redaction. Entry names, custom paths, arbitrary identifiers and secrets may remain. Unquoted profile names with spaces can be ambiguous, so masking can also remove adjacent text. The archive file selection is unchanged. This complements #460, which adds stderr files and touches the same documentation row.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 02:25:32 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/548/head:github-bot/gh-548'
git switch 'github-bot/gh-548'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-548'
git switch 'github-bot/gh-548'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-548'
git switch 'github-bot/gh-548'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-548'
git switch 'main'
git merge --squash 'github-bot/gh-548'
git switch 'main'
git merge --ff-only 'github-bot/gh-548'
git switch 'main'
git merge 'github-bot/gh-548'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.