News for hackers. Stuff that matters.
Re:Writing a Package Manager by zivkan on Wednesday August 23, 2023 @05:24AM (#37233601)
Depending on how important supply chain security is to your industry/company/team, validating the hash of every package is critical. If an attacker can manage an interception/man in the middle attack on your CI network, the hash check provides protection. If an attacker compromises the server you get packages from, having a hash provides protection as well. Automatically trusting the server's response to be correct, or automatically upgrading to newer versions (even if the package author strictly adheres to SemVer), puts you at risk at attacks similar to what we saw with SolarWinds around 2021.
Re:Writing a Package Manager by brabel on Wednesday August 23, 2023 @06:30AM (#37233939)
Your argument supports the idea of getting rid of the lock file and instead committing the hash in the original dependencies file - so that it's never an automatic process to update the hashes/versions.
Re:Writing a Package Manager by patmorgan23 on Wednesday August 23, 2023 @10:09AM (#37236161)
Zigs package manager takes this approach.

https://zig.news/edyu/zig-package-manager-wtf-is-zon-558e