Repository navigation
SlowShield 0.0.7
Added
-
Cargo at
/cargo/: a sparse registry that replaces crates-io in$CARGO_HOME/config.toml
(docs/design/cargo.md, #16). Cargo.lock keeps
crates.io as its source and checksums. Needs cargo 1.68 or later.- Index files pass through byte for byte, except that versions too new or blocked are marked
"yanked":true, so cargo resolves to an older version. A Cargo.lock that pins one gets403with the time it
becomes available and thecargo update --precisecommand for the newest version allowed; malware gets451.
Cargo prints both. Upstream failures are503, which cargo retries. - A version's publish time is its
pubtimein the index, which crates.io sets. The first one seen is kept, so a
rewritten index can't move it earlier. No requests to the crates.io API. - Downloads are checked against the index's
cksum(sha256) and fingerprinted; static.crates.io is always asked
for the index's exact spelling of the name. - Crate names match in crates.io's canonical form (lower case,
-as_) in exceptions, advisories and the UI. fail_openis off for Cargo: crates none of whose versions is old enough are held too.
- Index files pass through byte for byte, except that versions too new or blocked are marked
-
The OSV feed also takes RustSec's malware advisories (category
malicious) that have noMAL-*counterpart: most
crates RustSec reports as malware never got one. GitHub's malware advisories for Rust are read too. -
The Setup page has Cargo: the
config.toml, and a one-line command for CI and Dockerfiles (the officialrust
images setCARGO_HOME, so~/.cargoisn't read there). -
The Setup page also sets the package managers' own release age, 3 days, where they have one (pip, uv, Poetry,
PDM, npm, pnpm, Yarn, Bun), as a second layer: a release then still waits on a machine that goes around
SlowShield, or when SlowShield serves a brand-new package because nothing is old enough yet (fail-open). In
normal use only SlowShield holds anything, since its delay is longer. A switch turns it off; each tool shows the
version it needs, and what older versions do with the setting. Never more than SlowShield's own delay. uv's and
PDM's go inpyproject.tomlonly: uv records the setting inuv.lock(an environment variable on one machine
breaksuv sync --lockedon another), and PDM doesn't keep its command-line flag.
Changed
- Cargo is shown in
#DEA584(GitHub's Rust colour) in the UI and in Grafana.
Images
ghcr.io/squirro/slowshield:0.0.7ghcr.io/squirro/slowshield-caddy:0.0.7