Live data from Hacker News

A way to exclude sensitive files issue still open for OpenAI Codex

github.com

141–150 of 157 posts

Re: A way to exclude sensitive files issue still open for OpenAI Codex

#141
post #54
post #37

Bind mounts can work fine. Setting them up does require root though. Easiest would be if the harness offered to enable containment. Awkwardly, it would require root.

In fact, it's possible to set up bind mounts without root on a modern Linux system, using a user namespace and a mount namespace.

You also need setuid, that's were I hit the root requirement, the bind mount itself can indeed be created.

Re: A way to exclude sensitive files issue still open for OpenAI Codex

#144

Earlier quoted context omitted.

100% this. The idea that Codex should enforce this is putting the security boundary at the wrong layer. If you don’t want codes to access something, make it so it doesn’t have access.

The Codex bug tracker is a great insight into how wide the knowledge gap seem to be between users. The issue where people ask them to add back /undo or whatever it is instead of just learning to use git, probably reached 100 comments at least by now. People seemingly don't really understand the computers they use on a daily basis, and refuse to learn too.

You mean they went to the codex bug tracker, on github, and they don't know how to use git?

Well that is kind of ironic, isn't it?

Re: A way to exclude sensitive files issue still open for OpenAI Codex

#145

Earlier quoted context omitted.

lol I don’t you realize how tech illiterate most normies are

It's not that I don't understand, it's that I don't care. Normies routinely hurt themselves trying to do professional work. We don't blame the tools when that happens, we blame the normies.

“You didn’t even watch a single YouTube video before powering up that table saw?”

Re: A way to exclude sensitive files issue still open for OpenAI Codex

#147

Earlier quoted context omitted.

Does that work? I've never seen it used. It seems easy to escape. The docs seem to suggest using alternate approaches. > Modern systems provide more secure ways to implement a restricted environment, such as jails, zones, or containers. https://www.gnu.org/software/bash/manual/html_node/The-Restr...

>> bash actually has a "restricted" mode ... > Does that work? I've never seen it used. It seems easy to escape. Yes, it does work for its intended purpose. It has often been used in combination with chroot[0] as well. > The docs seem to suggest using alternate approaches. >> Modern systems provide more secure ways to implement a restricted environment, such as jails, zones, or containers. These approaches are not mu…

I'm seeing a ton of restricted mode escapes documented online, like https://0xffsec.com/handbook/shells/restricted-shells/ so I'm not so sure. When basic utilities like less, man, and awk can run subshells it's quite a mess.

Bash restricted mode needing a chroot may suggest that Claude also needs a chroot (or restricted file permissions, jail, etc).

Re: A way to exclude sensitive files issue still open for OpenAI Codex

#148
The fact that pretty much every comment in this thread suggests a different solution means there’s still plenty of innovation and consolidation to occur on this problem.

My take is that Unix already solved all of these user access problems (what can a user read or execute), so the solution will probably be around containers or virtual machines. But the UX around booting up a container or virtual machine for agentic workflows needs to be simplified to the point where vibe coders who don’t know the first thing about Unix, VMs, or containers can still take advantage of the solutions.

Re: A way to exclude sensitive files issue still open for OpenAI Codex

#149

Earlier quoted context omitted.

I don't think I've ever seen it used. I think the idea was back in the day when you wanted to let a user have a shell login (because that's the only way you could use a shared computer) but wanted to confine them to a specific directory and prevent them running anything that wasn't in the pre-defined PATH that you set for them.

Back in the day we'd use chroot to achieve something similar https://linux.die.net/man/1/chroot

Yes, in reality you might use chroot, limited filesystem permissions, and a restricted shell as a belt-and-suspenders approach.

Re: A way to exclude sensitive files issue still open for OpenAI Codex

#150

Earlier quoted context omitted.

smolpi looks great! and smolvm does clean up ephemeral runs if the machine run exits gracefully. I'll take a deeper look into this edge case and fix it today.

Fixed and released in v1.3.1: https://github.com/smol-machines/smolvm/pull/497

Cheers, thanks for the quick turnaround!
Post reply on HN