Skip to content

fix: remove machine and owner identifiers from tracked files - #31

Merged
patterncatalyst merged 6 commits into
mainfrom
fix/host-scrub
Oct 23, 2026
Merged

patterncatalyst merged 6 commits into
mainfrom
fix/host-scrub

Conversation

@patterncatalyst

Copy link
Copy Markdown
Owner

Removes machine- and owner-identifying details from the current tree. History is not rewritten; that is a separate step.

Scrubbed (hits before the change: 106, after: 0)

  • account name: 35 (directory listings, subuid/subgid lines, one diagram's text in SVG and Excalidraw source)
  • home-path: 7 (host checkout and toolchain paths in the Rust toolbox chapter, now <repo> and ~)
  • hostname: 2 (strace transcript)
  • cpu-model: 4 (prose and a plan, now the class "Intel 8-core/16-thread laptop CPU")
  • kernel-build: 12 flagged by the tool, plus the host kernel build written without an architecture suffix (not detected by the tool) in the chapters, plans and example README, all reduced to major.minor
  • Recorded outputs keep their line counts and numbers; only the identifier strings changed (checked with git diff --numstat and a word diff).

Allowed in .host-scrub.toml (no values in the file)

  • home-path for 13 files: the lab guest's own fedora account home (deploy-to-vm.sh target path and the transcripts that show it).
  • kernel-build for 7 files and kernel-version for 1: the pinned Fedora guest kernel of the systems-target VM, confirmed from guest-side output (uname -r on the VM, lab-ready log). Host kernels in the same files were scrubbed before allowing.

Generators

  • scripts/test-all-examples.py now runs host_ids.py scrub over build-logs/ after each run, since chapter transcripts are pasted from those logs.
  • The hello-syscalls example intentionally prints uname(2) output; it is unchanged.

CI

  • scripts/host_ids.py copied in, new host-ids job in validate.yml (same actions/checkout@v5; the workflow has no summary job), publishing rule added to CLAUDE.md.

Verification

  • python3 scripts/host_ids.py check: 0 hits
  • python3 scripts/validate.py: OK
  • host_ids.py self-test: passed
  • Jekyll build not run locally (site is built in CI).

Adds scripts/host_ids.py, a host-ids job in validate.yml and the publishing rule in CLAUDE.md.
Replaces the per-path allows with allow_match regexes for the guest's public
values and refreshes scripts/host_ids.py.
@patterncatalyst
patterncatalyst merged commit 0134ec3 into main Oct 23, 2026
9 checks passed
@patterncatalyst
patterncatalyst deleted the fix/host-scrub branch October 23, 2026 16:03
patterncatalyst added a commit that referenced this pull request Oct 23, 2026
* fix: remove machine and owner identifiers from tracked files

* fix(scripts): scrub run logs of machine identifiers after each runner pass

* ci: check tracked files for machine and owner identifiers

Adds scripts/host_ids.py, a host-ids job in validate.yml and the publishing rule in CLAUDE.md.

* fix: use allow_match for guest values; scrub archless host kernels

Replaces the per-path allows with allow_match regexes for the guest's public
values and refreshes scripts/host_ids.py.

* fix: host_ids.py catches quoted and line-start kernel builds; allow the guest image's kernel-devel build

* fix: validation fixes (fake fixture values, CLAUDE.md wording, diagram 34, scrub on exit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant