News for hackers. Stuff that matters.
Re:React Native for Windows and Mac by pier25 on Tuesday May 12, 2020 @06:31PM (#23160875)
> A fine grained capability system for packages would dramatically improve the safety profile

I think Deno does that (the new project by Node's original creator):

https://blog.logrocket.com/what-is-deno/

Re:React Native for Windows and Mac by jakear on Tuesday May 12, 2020 @10:58PM (#23162975)
Deno gives all packages the same permissions of the main app. So if your app can make network requests, so can every dependency you use. It’s not a great situation. I’ve brought this up to them and their response is that per-package permissions would be too difficult to implement.
Re:React Native for Windows and Mac by Already__Taken on Wednesday May 13, 2020 @05:21AM (#23165040)
The app design is going to have to change around per-process permissions. build.ts doesn't need the same as main.ts but at that point what are you getting where you couldn't just use docker and abstract that pattern to literally all software and dependencies that aren't in deno.

Maybe it's a start of better tooling? Kicking out a graph of package/permission call stack might be useful to audit

Re:React Native for Windows and Mac by vijaybritto on Wednesday May 13, 2020 @01:47AM (#23163854)
Yes, checking everyone at the main door is indeed easier than checking everyone at every single point of contact. It needs a vast architectural change compared to current implementation as you need to enforce those rules at runtime!
Re:React Native for Windows and Mac by jakear on Wednesday May 13, 2020 @10:56AM (#23167474)
Well yeah, but I thought the whole point of deno was to make vast architectural changes to allow for increased security. Seems odd to stop half way.
Re:React Native for Windows and Mac by mthoms on Tuesday May 12, 2020 @06:59PM (#23161145)
Woohoo! I just noticed Deno is at release candidate stage for v1.0.