A way to exclude sensitive files issue still open for OpenAI Codex
1–10 of 157 posts
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#2Re: A way to exclude sensitive files issue still open for OpenAI Codex
#3Re: A way to exclude sensitive files issue still open for OpenAI Codex
#4If 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 the codex process is unable to access those files, hence using a container, or unix permissions, or deleting the files. Which you can already do.
I imagine this isn't resolved primarily because people expect it to apply to bash tool use, not just the "read" and "edit" tools, and people also expect those files to still be accessible i.e. if the agent invokes "make", which makes it impossible to solve perfectly.
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#5Re: A way to exclude sensitive files issue still open for OpenAI Codex
#6You 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…
chmod 600Re: A way to exclude sensitive files issue still open for OpenAI Codex
#7Re: A way to exclude sensitive files issue still open for OpenAI Codex
#8This should be an open standard like AGENTS.md or skills. What do other harnesses do?
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#9People just need to learn how to use the tools their system already provides them. i.e., chmod
Re: A way to exclude sensitive files issue still open for OpenAI Codex
#10it has been a year and still it is not resolved