A way to exclude sensitive files issue still open for OpenAI Codex
21–30 of 157 posts
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#22Earlier quoted context omitted.
Just be aware that AI agents will explore alternate means of accessing said files: https://news.ycombinator.com/item?id=48348578
If you’re already running codex as a different user to limit its file permissions, why would you add it to the docker group?
It’s a different mental model than a first party solution to “ignore” files.
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#23You can do this now: change the file permissions such that the user you run codex as can't read them, or run codex in a container without those files mounted. If you don't do that, the agent will be able to incidentally upload them. What if the model runs "rg foo", and one of those files contains the string "foo"? It uploads the tool output, which includes the file contents. And so, the only solution is to make it so…
Just be aware that AI agents will explore alternate means of accessing said files: https://news.ycombinator.com/item?id=48348578
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#24I've been looking into a "workspace" concept that involves an entire cloud VM being spun up as part of an agent conversation such that code changes can be iterated without touching the user's local machine or other trusted contexts. All the agent's tools only have effect when supplied with a specific workspace guid. CLI tools like git are not authorized to talk to the remotes in this arrangement. The machine is initialized with a clone and no way to talk to origin. There are dedicated methods in the harness that can reach into the VM and pull out a change set for deterministic PR generation in the secure contexts (e.g. when the agent calls "ReadyForReview" or similar).
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#25Re: A way to exclude sensitive files issue still open for OpenAI Codex
#26Re: A way to exclude sensitive files issue still open for OpenAI Codex
#27As others here have pointed out, it's exceedingly unlikely that a blocklist like proposed in the issue would ever be complete. You shouldn't allow agents direct yolo-access to your machine if it has sensitive data.
Codex works particularly well as a remote agent harness because of its client-server architecture: The server component runs in the container, which might be remote, while the client runs locally. So, in contrast to e.g. the claude cli where the frontend also runs remotely, there's no lag when you write/edit prompts.
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#28Earlier quoted context omitted.
Just be aware that AI agents will explore alternate means of accessing said files: https://news.ycombinator.com/item?id=48348578
If you’re already running codex as a different user to limit its file permissions, why would you add it to the docker group?
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#29You can do this now: change the file permissions such that the user you run codex as can't read them, or run codex in a container without those files mounted. If you don't do that, the agent will be able to incidentally upload them. What if the model runs "rg foo", and one of those files contains the string "foo"? It uploads the tool output, which includes the file contents. And so, the only solution is to make it so…
Yes, this was solved decades ago. How do you stop a human from reading one of your files? chmod 600
Call the police!