Skip to content
agentgateway has joined the Agentic AI Foundation — Learn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Cloud provider credentials

Page as Markdown

Authenticate to AWS, Azure, or Google Cloud with the gateway’s own identity.

Some backends do not accept a credential that you can hold. A managed cloud service issues its own short-lived tokens, and it expects the caller to prove an identity that the cloud itself recognizes. The AWS, Azure, and Google Cloud methods cover that case: the gateway authenticates as itself and exchanges its own identity for a token that the service accepts. The GitHub Copilot method works differently, because the gateway sends an existing Copilot token instead of exchanging an identity.

When to use a provider method

Use a provider method when the backend is an AWS, Azure, or Google Cloud service, or the GitHub Copilot API. Use a static key instead when the service issues you a long-lived API key, even if that service happens to run on one of those clouds.

For AWS, Azure, and Google Cloud, workload identity lets the gateway authenticate without storing a credential. On a managed cluster the platform already gives the gateway an identity: a Google service account through Workload Identity on GKE, an IAM role for a service account on EKS, or an Azure workload identity on AKS. Each of these providers also accepts an explicit credential when the ambient identity is not the one you want, or when the gateway does not run on that cloud.

What the gateway sends

Three of the four attach a bearer token to the request. AWS is the exception: it signs the whole request instead, so it runs last, after every other policy that changes the request.

ProviderWhat the gateway attachesCredential source
AWSAn AWS Signature Version 4 signatureAn IAM role for a service account, EKS Pod Identity, or an EC2 instance profile
AzureA Microsoft Entra ID token in the Authorization headerAn Azure workload identity or a managed identity
GitHub CopilotA Copilot token, plus the request headers that the Copilot API expects
Google CloudAn access token or an ID token in the Authorization headerA Google service account through Workload Identity, or the metadata server

The AWS, Azure, and Google Cloud methods resolve implicit credentials through a chain of sources, and stop at the first one that answers. The order matters whenever more than one source is present, so each page documents its own chain.

First request latency

The AWS, Azure, and Google Cloud methods resolve implicit credentials on the first request that needs them, not at startup. That first request therefore pays the cost of the exchange, and can take several seconds. The gateway caches the result, so later requests do not. A route that is slow only on its first call after a restart is showing this, not a misconfiguration.

Guides

The following guides cover AWS, Azure, and Google Cloud.

Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate ↵ select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.