News for hackers. Stuff that matters.
Re:I'm not a fan of Deno's security model (2024) by thegagne on Sunday November 08, 2026 @04:19PM (#50417392)
Really like this and think we need something like this in every major language, especially to address supply chain attack stuff.

A couple of thoughts:

- would really like to have the option to make things more granular… things like “which dns/tls will this have access to?”, “which file/folder?” - probably would be helpful to have permissions to be kinda two sided, like “this function needs tls”, and then on the import side “allow this function tls access to this host in particular”.

Re:I'm not a fan of Deno's security model (2024) by ch4s3 on Sunday November 08, 2026 @04:29PM (#50417495)
It can be file and url level granular, there’s a capabilities page that mentions that[1]. Caps and needs are the two sides. A module function needs File.write, and you can grant a narrower cap to a single folder or file.

[1] https://march-lang.org/docs/capabilities/#choosing-the-right...

Re:I'm not a fan of Deno's security model (2024) by thegagne on Monday November 09, 2026 @12:49AM (#50421543)
Cool!

I did look for “url” on that page and came up empty, then read it with my own eyes and didn’t see it, and even passed it to Claude and it also couldn’t find an answer for my query:

> Take a look at and see if there’s a way to limit fetching from a particular hostname over https. https://march-lang.org/docs/capabilities

What I would like to be able to do is to say “only let this imported function talk to https://example.com/*”, and deny any tcp connections other than the dns lookup and https calls to that domain.

Re:I'm not a fan of Deno's security model (2024) by ch4s3 on Monday November 09, 2026 @08:13AM (#50425149)
Sorry the docs aren’t 100% there yet, the language is still pre-1.0. You can do that but it’s not well documented.
Re:I'm not a fan of Deno's security model (2024) by ch4s3 on Monday November 09, 2026 @10:16AM (#50426797)
I have a draft PR open to enable something like

mod A do

  needs IO.NetConnect("example.com")
end

mod B do

  needs IO.NetConnect("foo.com", no_redirects)
end

Where A can call "example.com" but not "foo.com".