What Should a Coding Agent Be Allowed to Do? .env Key Exposure Sparks Debate

radim11 · reddit · 2026-09-14

A Reddit thread examines permission boundaries for coding agents: agents running inside a project often inherit more access than they need, including .env files with API keys and database credentials.

The author's bigger concern is what agents can do with inherited access—inspecting code, installing dependencies, calling APIs, opening PRs, or deploying shouldn't automatically grant broad reach into every environment or service. He asks how teams handle this in practice: short-lived credentials, scoped service accounts, a proxy, or something else.

Original post →

More from coding & agent

coding & agent channel →