clever girl...
Codex just found a "workaround" of not having sudo on my PC
21–30 of 330 posts
Re: Codex just found a "workaround" of not having sudo on my PC
#22Every time I try to install Docker there's a warning that being in the "docker" group is equivalent to having root access. You should probably know about this workaround by now.
I think that's distro-specific. Some set it up with more secure defaults (unix socket with permissions), others less (TCP socket).
The tragedy is of course that when security and usability collide, 80/20 rule will apply where 80% of people will pick usability over security. I have worked with many with the title >= "Senior Engineers" who saw that page, read the explanation, and still had no idea what the ramifications of their changes were. "Yeah sure it said any user in the docker group will be able to get root on the host, but aren't containers isolated?"
Re: Codex just found a "workaround" of not having sudo on my PC
#23This is one of the main reasons people like Podman. Docker has this "feature" but as far as I remember, it needed some obscure configuration. I guess they don't add it as default as it will break many current setups.
Re: Codex just found a "workaround" of not having sudo on my PC
#24 --cap-drop=ALL
--pids-limit=4096
--runtime=runscRe: Codex just found a "workaround" of not having sudo on my PC
#25> I noticed the machine doesn't have copy-fail patched, here is a quick workaround for not having root access for now.
> // TODO: find a better way to do this in the future.
Re: Codex just found a "workaround" of not having sudo on my PC
#26This was of course dependent on yolo mode, but automatic approval has also been pulling stunts like this. A recent example is data that was purposely kept away from Codex in a folder far far away. When it found a single reference it just went for the data when having an issue. Lesson learned, keep essential data and Codex separated on different machines. Codex remote ssh actually helps here.
(It sounds like you put it on an SSD on an extension cord and moved it to the kitchen or something.)
Re: Codex just found a "workaround" of not having sudo on my PC
#27This is why you need either a rootless container setup or user namespaces to remap the container user to irrelevant host users. https://docs.docker.com/engine/security/userns-remap/ Weak that this isn't the default.
Re: Codex just found a "workaround" of not having sudo on my PC
#28Re: Codex just found a "workaround" of not having sudo on my PC
#29This was of course dependent on yolo mode, but automatic approval has also been pulling stunts like this. A recent example is data that was purposely kept away from Codex in a folder far far away. When it found a single reference it just went for the data when having an issue. Lesson learned, keep essential data and Codex separated on different machines. Codex remote ssh actually helps here.
Re: Codex just found a "workaround" of not having sudo on my PC
#30You should not be using docker with LLMs. You should be using VMs, which have a much, much smaller attack surface than Docker, and significantly more reasonable defaults.