A way to exclude sensitive files issue still open for OpenAI Codex
- AI
- Security
- Developer Tools
- Infrastructure
The linked GitHub issue complains that Codex still does not support a reliable way to keep sensitive files out of scope, especially secrets sitting near source code in files like .env.local. That sounds like a missing convenience feature, but the useful conclusion is harsher: an ignore file is not a security boundary for a tool that can run shell commands, grep through trees, invoke build steps, and ship tool output back to a remote model provider. If the agent can access a file at all, it can usually find some path to expose it, whether by direct reads, search output, logs, or side effects from other tools. Several people pointed out that this is already how Codex works in practice. The model only “sees” what gets sent to OpenAI, so anything the harness feeds it is already exfiltration risk.
If you use cloud coding agents on a workstation that also holds secrets, move from ad hoc ignore rules to explicit isolation now. Give agents a task-scoped workspace, narrow credentials, and no access to anything you would not hand to an untrusted contractor shelling into the same machine.
- github.com
- Discuss on HN