I'm not a fan of Deno's security model (2024)
Trending on Hacker News: I'm not a fan of Deno's security model (2024) (73 points / 32 comments, via goldstein.lol)
Opening excerpt
this has been bothering me for a while now, so I want to write down my thoughts so I can get it out of my head and move on. we’re gonna talk about how Deno approaches security, specifically with its permissions system, and why I think this approach is fundamentally insecure and misleading.
Deno is a language runtime for JavaScript. it consists of a standard library, a package manager, a TypeScript transpiler and a bunch of other stuff that’s not important for our story. it’s not a JavaScript implementation , so it does not interpret or compile JavaScript, it reuses V8 for that.
one of the flagship features of Deno is its permission system (it’s under the “Secure by default” header on their landing page ). the idea is simple: as JS code running in Deno needs the standard library to access the outside world, Deno can choose which accesses it allows or disallows, so when you run
shell deno run —allow-read = /tmp/dir —allow-run = uname code.ts the standard library will only allow code.ts to read /tmp/dir and run uname .
(Excerpted from the original; full article via the source link below.)
This story hit the Hacker News front page today (73 points / 32 comments, via goldstein.lol). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.
Source: Hacker News