purescript / psc-package

A package manager for PureScript based on package sets
https://psc-package.readthedocs.io
Other
229 stars 45 forks source link

packages.json: support (require?) SHA in addition to version #55

Open matthewleon opened 7 years ago

matthewleon commented 7 years ago

Requiring a hash in addition to the version tag would be a cheap additional layer of security. As it stands, a package author could maliciously amend a tag in their git repo, no?

paf31 commented 7 years ago

Sounds like a good idea.

matthewleon commented 7 years ago

Adding this here as a related consideration: https://theupdateframework.github.io/

Since hackage implements this, it might not be too hard to steal code from them at some future point. https://github.com/haskell/hackage-security

This might not be applicable given that psc-package works in a fundamentally different way from Hackage, but at least there might be some ideas to take inspiration from.

Pauan commented 7 years ago

See also https://github.com/purescript/package-sets/issues/32

matthewleon commented 7 years ago

@Pauan thanks. Good to see I'm not the only one with this concern. I will do some reading and have a think.