News for hackers. Stuff that matters.
Re:Codehash.db – A public database for software and firmware... by n1000 on Saturday November 12, 2016 @04:34AM (#12937215)
Don't packet managers like homebrew in principle do something similar? Would be interessting to join forces I guess.
Re:Codehash.db – A public database for software and firmware... by dom0 on Saturday November 12, 2016 @10:12AM (#12938175)
Automated package building usually looks like this:

    wget http(s)://... | tar x
    make
    package
    sign_with_gpg
    upload_to_ftp
Only if a package maintainer gets involved there is a chance that release signatures are actually verified. But even then, a whole lot of upstream projects just don't sign their releases. Some distros don't sign their packages, either. Or even their ISOs (iirc Linux Mint only started doing this fairly recently).

Also, "web of trust" only works for a tiny subset of people. If I'm a "lone wolf" FOSS developer, my key won't be signed by anyone, there won't be any WoT to verify. Downstream packagers just have to swallow that or TOFU.

Re:Codehash.db – A public database for software and firmware... by andrewdavidwong on Saturday November 12, 2016 @08:16PM (#12941247)
> Also, "web of trust" only works for a tiny subset of people. If I'm a "lone wolf" FOSS developer, my key won't be signed by anyone, there won't be any WoT to verify. Downstream packagers just have to swallow that or TOFU.

One way to mitigate this nowadays is through services like keybase.io, which allow you to aggregate evidence for the authenticity of your key from social media accounts and websites. You can also do this yourself by posting your PGP fingerprint in many different places. These methods make it much more difficult for someone to create a new key in order to impersonate you. Accordingly, it's easy to trust that a key really belongs to a certain person -- even if there are no signatures on it -- when there's a long history of evidence from many different sources that would collectively be very difficult to spoof.

Re:Codehash.db – A public database for software and firmware... by n1000 on Saturday November 12, 2016 @11:07AM (#12938504)
Sorry, I am new to this, but my understanding is that homebrew will verify the hash before installing, right?
Re:Codehash.db – A public database for software and firmware... by dom0 on Saturday November 12, 2016 @11:49AM (#12938707)
It probably does, but what good does that do if the source code wasn't transported securely and verified from the upstream to the packager?

Disclaimer: I don't know anything about brew packaging practices. Maybe they always require verification. Maybe they don't.