mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.11k stars 260 forks source link

Security: reject 3rd unsigned party binaries #682

Open taelfrinn opened 1 year ago

taelfrinn commented 1 year ago

It seems like this would be a nice feature if the binaries were signed by red hat etc, but unsigned or nobody-i-know signed 3rd party binaries are generally unacceptable.

perhaps we could honor a global npm config option to make "--build-from-source" default behavior?

It seems to make normal nodejs development inherently insecure when any npm library can suddenly start shipping black boxes... and only a matter of time before it gets widely exploited...