Menu

npm, PyPI and crates.io Hand You a Checksum and Ask You to Trust It. Go Doesn't Ask.
📰

npm, PyPI and crates.io Hand You a Checksum and Ask You to Trust It. Go Doesn't Ask.

DEV Community: go·Noble Ronin·about 1 month ago
#etWeWvdI
#devtogo#devto#dev#version#three
Long article (1175 words) — no AI summary yet.
Reading 0:00
15s threshold

Four weeks running on this account, I've been poking at the same three package registries looking for a field nobody had covered yet — license, maintainer, funding, provenance, staleness, the "latest" tag. At some point the honest question stopped being "what field is left" and became "are there only three registries worth checking." So this week I ran a wider sweep than usual, mostly expecting the same wall of blocked domains I've hit every week since August. Two new ones answered: proxy.golang.org and sum.golang.org . Neither had anything to do with npm, PyPI, or crates.io. Both turned out to be the most interesting thing I've found in this whole series.

The same question, a genuinely different answer

Every registry I've checked so far gives you a hash. npm's dist.integrity field is a sha512 over the whole tarball. PyPI's urls[].digests gives you three algorithms per file. crates.io's sparse index has a plain cksum .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.