Skip to content

mz843: generate integration tar fixtures on the fly#844

Open
mzihlmann wants to merge 1 commit into
mainfrom
mz843-tars-on-the-fly
Open

mz843: generate integration tar fixtures on the fly#844
mzihlmann wants to merge 1 commit into
mainfrom
mz843-tars-on-the-fly

Conversation

@mzihlmann

Copy link
Copy Markdown
Collaborator

Fixes #843

The integration suite committed opaque binary tar archives as test data (file.tar, file.tar.gz, file.bz2, sys.tar.gz). A committed archive never shows up in a diff and can carry content the neighboring Dockerfile never describes, which is how the XZ Utils backdoor (CVE-2024-3094) hid its payload. These also buried the behavior under test, such as the mode of an archive root entry, behind bytes nobody reviews.

The fixtures are now generated during test setup from an explicit spec (path, type, mode, content) with a pinned mtime, so the repository holds no committed archives and the generated path is git-ignored. The extracted trees are structurally identical to the old blobs (same names, modes, types, sizes) and Dockerfile_test_add passes against them. The unused integration/tar.tar image export can be removed separately.

@mzihlmann mzihlmann force-pushed the mz843-tars-on-the-fly branch from caaf31d to 641abe1 Compare June 26, 2026 21:16
@mzihlmann mzihlmann requested review from 0hlov3, BobDu, babs and nejch June 26, 2026 21:17
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

Generate integration tar fixtures on the fly instead of committing binaries

1 participant