I’m not a fan of Deno’s security model (2024)

46 points by ThinkChaos


xonix

Java since its inception had similar concept of Security Manager, which was eventually deprecated and removed: https://openjdk.org/jeps/411

I think it was "broken by design" similarly to the Deno's case.

ambiso

Good article; though regarding the sudo example - most people's sudo is not really secure in any way:

echo "alias sudo='sudo echo pwned && sudo'" >> ~/.bashrc

Is probably a way you can get privesc on >90% of desktop users. Not that it matters since you can access saved cookies and passwords without root anyway.

goldstein

author here, did not expect this to surface after so much time lol. I guess it doesn’t matter much anymore, since deno will probably be dead soon, but it was weird while it lasted.

cmcaine

Recommending bwrap at the bottom just reminds me that bwrap has no easy or obvious way to sandbox processes either.

https://man.archlinux.org/man/bwrap.1

I know a fair bit about linux, and idk how to use that interface to sandbox stuff properly.

The interface for Jart's pledge tool is much easier to understand (tho idk how safe it is either)

https://github.com/jart/pledge