r/platformengineering • • 14h ago

How are you preventing local Claude Code / Cursor sessions from inheriting full prod kubeconfig and ~/.aws admin access?

2 Upvotes

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 ~/.aws and ~/.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?


r/platformengineering • • 15h ago

How are you preventing ""agent sprawl"" across platform and incident workflows?

1 Upvotes

We have seen a sharp split lately between teams running isolated AI coding/incident scripts and teams trying to standardize how agents interact with live infrastructure. Models are capable enough now, so the friction has mostly shifted to missing organizational context (who owns a service, which environment it is in, what dependencies break) and approval gates before an agent takes action.

For platform teams supporting 100+ engineers, how are you giving agents reliable service context and enforcing guardrails without rebuilding custom glue for every tool? Are you syncing metadata into an internal catalog/portal first, or handling permissions directly inside CI/CD and runbooks?