Keep the agent's code from reading node, instance or other workloads' credentials
Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.
Check 18 of 30: Keep the agent's code from reading node, instance or other workloads' credentials. If agent code can read the host's metadata service, it can take the host's credentials, which are often broader than the agent's own. Isolating credentials keeps one compromised agent from becoming a compromised node.
The whole checklist ยท The map
Why it matters
If agent code can read the host's metadata service, it can take the host's credentials, which are often broader than the agent's own. Isolating credentials keeps one compromised agent from becoming a compromised node.
How, in each cloud
- AWS
- Restrict access to the EC2 Instance Metadata Service for pods so containers can only retrieve credentials for their own role.
- Google Cloud
- Use Workload Identity Federation for GKE, which protects the metadata that metadata concealment covered.
- Azure
- Run hosted agents in per-session VM-isolated sandboxes, which Microsoft documents as holding no blueprint credential.
What the documentation says
- "A container never has access to credentials that are used by other containers in other Pods." (source)
- "The sensitive metadata protected by metadata concealment is also protected by" (source)
- "Each hosted-agent session runs in its own VM-isolated sandbox" (source)
- Previous: Reach cloud APIs and data stores through private endpoints
- Next: Give each tool function its own least-privilege role instead of the agent's role
Related pages
- Give each tool function its own least-privilege role instead of the agent's role: the check, and how in AWS, Google Cloud and Azure
- Restrict which principals can invoke each tool endpoint: the check, and how in AWS, Google Cloud and Azure
- Cap how much the agent can run and spend: the check, and how in AWS, Google Cloud and Azure
Sources
- docs.aws.amazon.com/eks/latest/userguide/pod-identities.html, read 10 Nov 2026
- cloud.google.com/kubernetes-engine/docs/concepts/workload-identity, read 10 Nov 2026
- learn.microsoft.com/en-us/azure/ai-foundry/agents/concepts/agent-identity, read 10 Nov 2026
Last reviewed 16 Nov 2026.