# How to Give AI Agents Cloud Access Without Long-Lived Keys

DevFeed: [How to Give AI Agents Cloud Access Without Long-Lived Keys](<https://devfeed.tech/articles/how-to-give-ai-agents-cloud-access-without-long-lived-keys-98731.md>)

Original publisher: [Read original article](<https://www.lyzr.ai/blog/give-ai-agents-cloud-access-without-long-lived-keys/>)

Author: Lyzr Team

Published: 2026-10-23T09:49:11Z

Content type: article

Language: en

Sources: [Lyzr.ai](<https://devfeed.tech/sources/lyzr-ai.md>)

Topics: [Access Control](<https://devfeed.tech/topics/access-control.md>), [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [AWS Security Token Service](<https://devfeed.tech/topics/aws-security-token-service.md>), [Cloud Architecture](<https://devfeed.tech/topics/cloud-architecture.md>), [Security, Identity, & Compliance](<https://devfeed.tech/topics/security-identity-compliance.md>), [Azure](<https://devfeed.tech/topics/azure.md>), [Entra ID](<https://devfeed.tech/topics/entra-id.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-control](<https://devfeed.tech/tags/agent-control.md>), [agent-identity](<https://devfeed.tech/tags/agent-identity.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-agent-governance](<https://devfeed.tech/tags/ai-agent-governance.md>), [ai-agent-identity](<https://devfeed.tech/tags/ai-agent-identity.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-control-plane](<https://devfeed.tech/tags/ai-control-plane.md>), [api](<https://devfeed.tech/tags/api.md>), [api-gateway](<https://devfeed.tech/tags/api-gateway.md>), [api-key](<https://devfeed.tech/tags/api-key.md>), [apis](<https://devfeed.tech/tags/apis.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [developer](<https://devfeed.tech/tags/developer.md>), [key](<https://devfeed.tech/tags/key.md>), [keys](<https://devfeed.tech/tags/keys.md>), [storage](<https://devfeed.tech/tags/storage.md>)

## AI overview

Avoid long-lived cloud keys by having an agent runtime authenticate through workload identity, an attached role or federation, then obtain temporary credentials scoped to the required resources and actions. The implementation depends on runtime and cloud: AWS uses attached IAM roles with STS, IAM Roles Anywhere for X.509-based external workloads, or web identity federation; Google Cloud supports Workload Identity Federation and attached service accounts; Azure uses managed identities or Entra workload identity federation. For sensitive calls, a trusted tool server, gateway or proxy can check permissions and execute operations without exposing raw credentials to the agent, though this is not required everywhere. Short expiry does not compensate for excessive permissions, and temporary credentials do not prevent unsafe actions by an authorized or compromised agent. Monitoring, revocation plans, action controls and governance remain necessary. Opencontroller is presented as a visibility and governance layer; it does not replace cloud IAM, manage secrets, issue STS credentials or configure federation.

## Source excerpt

TL;DR An agent needs to read a storage object, inspect cloud resources or call an internal service. A developer creates an access key, drops it...