Skip to content

fix(supply-chain): trust safe-read as ours instead of exempting it - #14

Merged
h4x0r merged 1 commit into
mainfrom
fix/vet-trust-safe-read
Aug 7, 2026
Merged

fix(supply-chain): trust safe-read as ours instead of exempting it#14
h4x0r merged 1 commit into
mainfrom
fix/vet-trust-safe-read

Conversation

@h4x0r

@h4x0r h4x0r commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

safe-read is ours, published to crates.io by h4x0r, so ADR-0018 mechanism (2)
applies: a trust entry keyed on the publisher. This store carried mechanism (4)
instead — an [[exemptions]] block pinned to the exact version in the lockfile.

That pin is why this keeps recurring. An exemption names one version, so the
moment safe-read publishes again every consumer holding one goes red at once,
for no reason connected to the code. It already happened this sweep: publishing
safe-read 0.2.1 reddened dmg, aff4, ewf, journald and disk-forensic
simultaneously, each reporting

safe-read:0.2.1 missing ["safe-to-deploy"]

This repo is green today only because its exemption still matches its lock. It
is queued to fail the same way on the next bump, so the fix is applied here
before that happens rather than after — 18 repos share the pattern.

A trust entry records the publisher rather than the version and survives the
bump.

Verified by making it fail on purpose, not by reading the green: with the trust
entry removed cargo vet --locked names safe-read as unvetted, and with it
restored the run succeeds. The control matters because these stores carry many
unrelated exemptions, and a green run over those alone would say nothing about
this crate.

safe-read is ours, published to crates.io by h4x0r, so ADR-0018 mechanism (2)
applies: a trust entry keyed on the publisher. This store carried mechanism (4)
instead — an [[exemptions]] block pinned to the exact version in the lockfile.

That pin is why this keeps recurring. An exemption names one version, so the
moment safe-read publishes again every consumer holding one goes red at once,
for no reason connected to the code. It already happened this sweep: publishing
safe-read 0.2.1 reddened dmg, aff4, ewf, journald and disk-forensic
simultaneously, each reporting

    safe-read:0.2.1 missing ["safe-to-deploy"]

This repo is green today only because its exemption still matches its lock. It
is queued to fail the same way on the next bump, so the fix is applied here
before that happens rather than after — 18 repos share the pattern.

A trust entry records the publisher rather than the version and survives the
bump.

Verified by making it fail on purpose, not by reading the green: with the trust
entry removed `cargo vet --locked` names safe-read as unvetted, and with it
restored the run succeeds. The control matters because these stores carry many
unrelated exemptions, and a green run over those alone would say nothing about
this crate.
@h4x0r
h4x0r merged commit 08d8304 into main Aug 7, 2026
13 checks passed
@h4x0r
h4x0r deleted the fix/vet-trust-safe-read branch August 9, 2026 15:27
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