News for hackers. Stuff that matters.
Re:A way to exclude sensitive files issue still open for Ope... by lelandfe on Sunday June 28, 2026 @09:17AM (#48707019)
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 Ope... by martylamb on Sunday June 28, 2026 @10:24AM (#48707561)
Yes. I found this quickly after wrapping codex in a launcher that uses bubblewrap to exclude certain files and directories based on a config file at the project root. My best solution so far is to also include instructions for the agent that explain that it is not allowed to see certain files, and that their inaccessibility is not an error, and that it must not attempt to access them through other means (e.g. via git history, etc.).

This has been a major improvement, but it's not foolproof.

Re:A way to exclude sensitive files issue still open for Ope... by ChrisRun on Sunday June 28, 2026 @08:14PM (#48713208)
Interesting you said it's not foolproof. Did the agent ignore your instruction somehow?
Re:A way to exclude sensitive files issue still open for Ope... by martylamb on Tuesday June 30, 2026 @11:30AM (#48734163)
no, but there's no guarantee that it won't, just like any instructions.
Re:A way to exclude sensitive files issue still open for Ope... by cowsandmilk on Sunday June 28, 2026 @09:26AM (#48707078)
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 Ope... by lelandfe on Sunday June 28, 2026 @09:35AM (#48707152)
A good but altogether separate note from the point I’m making: this lack of access is seen as an obstacle to overcome, and other means of access will be tried if available.

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 Ope... by TheDong on Sunday June 28, 2026 @10:34AM (#48707666)
Weirdly, the existing first party solutions around denying commands don't seem to help here.

Often enough, when one of the agents prompts for running "sudo", and I reject it, it will do what looks very much like malicious exploration to figure out how to handle things anyway, including once hijacking a separate shell's pty where I did have a valid sudo session already in order to execute some commands.

We don't yet have the capability to make these models behave in a consistent, deterministic, or safe manner yet, so a first party solution isn't even necessarily that much better. Especially if it gives a false sense of security.

Re:A way to exclude sensitive files issue still open for Ope... by lelandfe on Monday June 29, 2026 @06:35PM (#48726244)
OTOH it lets you file a bug report :)

As opposed to, "well, you should have ran it in a container if you didn't want your baby photos deleted"

Re:A way to exclude sensitive files issue still open for Ope... by jen20 on Sunday June 28, 2026 @09:53AM (#48707267)
Lack of knowledge and the desire to have it run containers for things.
Re:A way to exclude sensitive files issue still open for Ope... by amelius on Sunday June 28, 2026 @09:40AM (#48707180)
Yes. Any sane IT department would not allow external AI services, only local ones. It is just too easy for your company's data to end up on the wrong servers. If not through faulty file permissions, then through employees who simply post company ideas.
Re:A way to exclude sensitive files issue still open for Ope... by brookst on Sunday June 28, 2026 @10:12AM (#48707435)
Or just have a corporate contract that provides assurances.

Though really I’m skeptical that much corporate info is secret for competitive or privacy reasons.

Mostly it seems to be for liability / discovery reasons. Which are still legit of course, but ideas are a dime a dozen and every company has more than they know what to do with. It’s the resourcing and execution that are hard.

Re:A way to exclude sensitive files issue still open for Ope... by amelius on Sunday June 28, 2026 @10:25AM (#48707570)
> Or just have a corporate contract that provides assurances.

After the massive copyright infringements and recent "who care's about the law anyway" stance of corporate America, trusting this could be a grand mistake.

Re:A way to exclude sensitive files issue still open for Ope... by brookst on Sunday June 28, 2026 @10:56AM (#48707874)
It’s a risk. But odds are the upsides from the legal settlements would far outweigh the losses from your super secret memos about q3 budget planning being trained on.

Just treat it like a contract worker. They may violate their NDA. That doesn’t mean you never use any for any purpose ever. It’s a risk that’s been managed since before computers.

Re:A way to exclude sensitive files issue still open for Ope... by SoftTalker on Sunday June 28, 2026 @10:56AM (#48707866)
Yet many use public github, and human developers accidently push secrets and other "not for public" files all the time.
Re:A way to exclude sensitive files issue still open for Ope... by amelius on Sunday June 28, 2026 @01:36PM (#48709562)
Exactly proving the point.