Re:Deno.js in production
by systemvoltage on Tuesday May 10, 2022 @02:31PM
(#31330704)
I think this is a fair criticism and deserves attention. Whenever anything shiny comes around, we are too enamored by it to not allow any criticism.
Is there a reason Deno is not packaged as a repo in official apt, deb, yum, etc repositories?
Re:Deno.js in production
by dimitrios1 on Tuesday May 10, 2022 @03:07PM
(#31331230)
And in this hypothetical scenario, how does that protect against the aforementioned attack? If one of deno's hosting sites can be attacked to upload a malicious script, one of the package registries can also be attacked and upload a malicious package.
The most obvious case: someone compromises the installation script on the actual real deno server. Right now the webserver there is returning an HTTP/307 to an HTTP/302 to the "current" installation script file. Any compromise of the webserver makes this very dangerous.
Contrast that with proper signed packages, code signed sources, etc. There it requires compromise of the developer's systems and signing keys, which at least can be a far harder thing to attack if they're doing things securely.