Skip to content
agentgateway has joined the Agentic AI FoundationLearn 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, Google Cloud, or GitHub Copilot 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 provider methods cover that case: the gateway authenticates as itself and exchanges its own identity for a token that the service accepts.

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.

The value of a provider method is that no credential has to be stored. 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. The gateway uses that identity directly, so there is no secret to rotate and nothing to leak. Each provider also accepts an explicit credential, which is the fallback for the cases where the ambient identity is not the one you want, or where the gateway does not run on that cloud at all.

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 attachesAmbient identity it can use
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
Google CloudAn access token or an ID token in the Authorization headerA Google service account through Workload Identity, or the metadata server
GitHub CopilotA Copilot token, plus the request headers that the Copilot API expectsA token in the environment of the gateway process

Each provider resolves an implicit credential through a chain of sources, and stops 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

A provider method resolves its credential on the first request that needs it, 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 each of the four provider methods, including GitHub Copilot.

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/.