News for hackers. Stuff that matters.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @11:03AM (#41936219)
Why do I have to elaborate? It is well known that a container offers a sandbox and process isolation. The risk from not using one can be severe. The risks include but are not limited to packages and plugins.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by lolinder on Thursday October 24, 2024 @11:12AM (#41936314)
> Why do I have to elaborate?

Because some of us have never heard of devcontainers as a named concept with its own spec until now. I've been running my dev servers inside containers for a long time now (using JetBrains IDEs!), but have never heard of this before.

> It is well known that a container offers a sandbox and process isolation.

No, actually, it's well known that containers don't do that. It's one of the first things you learn when you start learning about containers—they are not virtual machines and are not suitable for running untrusted code, because they share a kernel with the host.

I just read through the introduction to devcontainers and there are lots of benefits it discusses but security isn't one of them:

https://containers.dev/

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @11:36AM (#41936603)
> security isn't one of them

Oh but it is. If there is harmful data-stealing software running in the container, it will remain isolated to the container. And if the kernel is shared with the host, that's a read-only share.

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by lolinder on Thursday October 24, 2024 @11:53AM (#41936767)
I think you're missing my point: you are saying that it is one of the benefits, but they don't because it isn't one. Containers are not a security solution for running untrusted code. You saying they are does not make it so.

> And if the kernel is shared with the host, that's a read-only share.

No, it's not, the kernel is reading and writing files constantly for the container. A bug in the kernel could be exploited to break the sandbox, which isn't possible in a true VM.

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @12:28PM (#41937066)
There is no such thing as perfect security. Partial security is much better than none at all. Containers go a long way in this regard. All code is untrusted.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by lolinder on Thursday October 24, 2024 @12:50PM (#41937283)
> Partial security is much better than none at all.

Only if you don't let down your guard because it's "secure". Again, there's a reason why they don't claim it's secure and everyone says to not treat containers as a sandbox.

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @12:54PM (#41937309)
The only people here who are letting their guard down are ones who're not even using a container/jail/VM for each project. JetBrains encourages this by not providing the container integration features for free.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by lolinder on Thursday October 24, 2024 @01:00PM (#41937384)
We're going in circles and I'm done engaging with you.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by fragmede on Thursday October 24, 2024 @11:49AM (#41936735)
> remain isolated to the container.

Assuming the code that implements the containerization is 100% bug free and there are no container escapes. I would not bet my user's safety purely on that assumption.

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by acdha on Thursday October 24, 2024 @01:33PM (#41937638)
This is as useful as saying that seat belts do not make you safer because people still die in crashes. Containers are not perfect but if you’re starting from the conventional position where you’re one wrong package install away from an attacker having arbitrary access to your account and data, they’re a significant immediate improvement and a good foundation for further improvement.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @02:39PM (#41938311)
Yes, exactly. JetBrains fanboys will prefer to remain blind to it, however, not realizing that the free version of JetBrains isn't competitive anymore against VSCode.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by simion314 on Thursday October 24, 2024 @03:29PM (#41938872)
People pay for JetBrains instead of the free VS Code, and there are reasons for that, like IDE features and quality. Anyway there is no need to start an IDE war here, use whatever works for you and your coding, but I am sure that a small company can't offer free stuff and survive like big tech can do, so as a paying customer I want them to survive and make good products rather to give free shit to people that don't want to pay for their tools.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @04:10PM (#41939242)
VSCode has raised the bar of what to expect from a free IDE in terms of container integrations. JetBrains has fallen behind, and is sticking to a decade old standards.

I have no problem with the paid versions of JetBrains IDEs which I think are great, but to pay, one has to first find value in the free version (which is now lacking).

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by simion314 on Thursday October 24, 2024 @01:48PM (#41937777)
>Oh but it is. If there is harmful data-stealing software running in the container, it will remain isolated to the container. And if the kernel is shared with the host, that's a read-only share.

And what protects the production server when you deploy the evil packages?

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by jasonlotito on Thursday October 24, 2024 @11:31AM (#41936537)
> Why do I have to elaborate?

It's well known that the comments on HN are great for having discussions. You don't have to participate, despite your belief that you are required to. But, it's well known that having a discussion is a two way street, with people commenting and asking questions, and people replying.

Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @11:39AM (#41936637)
No, because the discussion is being engaged in bad faith by JetBrains fanboys who won't ever see beyond it.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by simion314 on Thursday October 24, 2024 @11:05AM (#41936239)
So you are afraid of evil packages but then you deploy them in production? So you are safe and screw your users ?
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by OutOfHere on Thursday October 24, 2024 @11:37AM (#41936608)
Huh. That makes no sense. If I am experimenting with something, I won't necessarily deploy it.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by simion314 on Thursday October 24, 2024 @01:51PM (#41937800)
I am 100% sure that everything you deploy you review? Maybe is safer to setup a secure environment for your system and for production if you use dangerous packages.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by acdha on Thursday October 24, 2024 @01:57PM (#41937860)
Here’s a scenario: my development pipeline scans every package in the build but I can’t reach into a developer’s local shell session to prevent them from making a typo. Using a dev container changes that from “the attacker gets their data, keys, and anything their session credentials can access” to a more limited exposure and gives your other safeguards a chance to catch it.
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by simion314 on Thursday October 24, 2024 @03:31PM (#41938884)
So you force your devs to use your favortie IDE rhater then the best one? why not force them to use soem better stuff for this security purpose like virtual machines, docker , something that would be usefull for them to have experience with
Re:WebStorm and Rider Are Now Free for Non-Commercial Use by acdha on Thursday October 24, 2024 @05:52PM (#41940224)
This does use Docker - it’s literally just working in a container so it’s both useful experience and overlaps with your deployments so you avoid multiple layers of waste from VMs: everything is reproducible, people don’t hit problems due to untracked local state, and they don’t spend time on sysadmin work which isn’t directly related to what you deploy.