News for hackers. Stuff that matters.
Re:4B If Statements by jevoten on Thursday December 28, 2023 @04:46AM (#38791758)
Achieving supply-chain security by controlling every link in the chain. This Jon is very noble.
Re:4B If Statements by jbverschoor on Thursday December 28, 2023 @05:47AM (#38792111)
Packages should specify their entitlements.. network access, file access, executing system calls, being able to monkey patch things, accessing packages outside their own.
Re:4B If Statements by vorticalbox on Thursday December 28, 2023 @05:54AM (#38792154)
Deno has a few of these by default an application has no access to the filesystem, env or network.

You can allow only reading or only writing for files and you can also define what domains are allowed.

Re:4B If Statements by jbverschoor on Thursday December 28, 2023 @06:57AM (#38792560)
Sure it's a huge step forward. But that's on an application level, which honestly I can do with sandbox-exec on macOS (see below).

In Deno, all permissions would still propagate down to the dependencies.

  (version 1)
  (deny default)
  (allow file-read*
    (subpath "~/Downloads")
  )
  (allow network-outbound
    (remote tcp "localhost:80")
  )
or

  (version 1)
  (allow default)
  (deny network*)
or

  # start an airgapped shell, and play around in there..
  sandbox-exec -p "(version 1)(allow default)(deny network*)" bash
Re:4B If Statements by vorticalbox on Friday December 29, 2023 @03:17AM (#38802750)
There have been a few GitHub issues open but from what I can tell it's in the "not technically possible with V8 VM" category
Re:4B If Statements by smolder on Thursday December 28, 2023 @06:22AM (#38792333)
Realistically I think they long ago should have been banned from npm, with all submissions deleted.