r/platformengineering • u/arnavghai19 • 14h ago
How are you preventing local Claude Code / Cursor sessions from inheriting full prod kubeconfig and ~/.aws admin access?
Genuine question for platform and security teams allowing CLI coding agents on developer laptops:
When an engineer runs claude or Cursor locally, the child process inherits full ambient ~/.kube/config, ~/.aws profiles, and gh tokens by default.
- Pure filesystem sandboxes (blocking
~/.awsand~/.kube) break workflows whenever the agent legitimately needs to debug a staging pod or check AWS resources. - Static MCP secret proxies don't intercept normal bash commands (
kubectl,aws,terraform). - Full VDI/Docker devcontainers add too much friction for daily local work.
How are your teams handling credential blast radius for local agents today? Are you enforcing short-lived scoped STS / K8s TokenRequest tokens per session, or is everyone still relying on prompt rules and luck?