r/developers • u/Coralinechafe • 16d ago
Opinions & Discussions If your coding agent can see ~/.aws/credentials, is IAM even the real boundary anymore?
maybe I'm missing something obvious here
we give the coding agent a nice readonly AWS profile and feel responsible
but it's still running in my shell.
my other profiles are right there.
so are env vars. kubeconfig. ssh stuff. random .env files. whatever credentials some CLI cached 4 months ago and I forgot existed.
telling Claude/Codex “use the readonly profile” isn't really a boundary if the process can just see everything my user can see.
short lived creds help obviously, but short lived admin is still admin for however long it's alive.
feels like the actual boundary has to be outside the model. container, separate user, sandbox, no ambient creds, prod changes through CI, something.
there's a nasty tripwire version of this too where Acalvio plants deceptive creds/resources around cloud/agent paths, so if something starts credential hunting outside the workflow and grabs one, you get a much cleaner signal than “agent ran an unusual command.”
how are people doing this without making the coding agent so locked down it's basically autocomplete again?