AgentgatewayBackend
Use AgentgatewayBackends to configure the target services that agentgateway routes traffic to.
Explore the configuration reference by clicking on a property name or expanding the property types. Use the in-field search bar to search for a property. The reference is also available as a table.agentgateway.dev/v1alpha1
- apiVersionstring
- kindstring
- metadataobject
- *spec
- a2a
- *hoststring
- *portinteger
- ai
- groups
- *providers
- anthropic
- modelstring
- azure
- apiVersionstring
- modelstring
- projectNamestring
- *resourceNamestring
- *resourceTypestring
- azureopenai
- apiVersionstring
- deploymentNamestring
- *endpointstring
- bedrock
- endpointPreferencestring
- guardrail
- *identifierstring
- *versionstring
- modelstring
- regionstring
- copilot
- modelstring
- custom
- backendRef
- groupstring
- kindstring
- *namestring
- portinteger
- *formats
- pathstring
- *typestring
- modelstring
- providerOverridestring
- gemini
- modelstring
- hoststring
- *namestring
- openai
- modelstring
- moderation
- modelstring
- policy
- input
- *modestring
- output
- *modestring
- pathstring
- pathPrefixstring
- policies
- ai
- defaults
- *fieldstring
- *valueobject
- finalTransformations
- *expressionstring
- *fieldstring
- modelAliasesobject
- overrides
- *fieldstring
- *valueobject
- prompt
- append
- *contentstring
- *rolestring
- prepend
- *contentstring
- *rolestring
- promptCaching
- cacheMessageOffsetinteger
- cacheMessagesboolean
- cacheSystemboolean
- cacheToolsboolean
- minTokensinteger
- promptGuard
- request
- bedrockGuardrails
- actionstring
- failureModestring
- *identifierstring
- policies
- auth
- aws
- assumeRole
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- expressionstring
- *keystring
- valuestring
- regionstring
- secretRef
- groupstring
- kindstring
- *namestring
- serviceNamestring
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *regionstring
- *versionstring
- googleModelArmor
- actionstring
- failureModestring
- locationstring
- policies
- auth
- gcp
- audiencestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- typestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *projectIdstring
- *templateIdstring
- openAIModeration
- actionstring
- failureModestring
- modelstring
- policies
- auth
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- regex
- actionstring
- builtinsstring[]
- matchesstring[]
- response
- headers
- *namestring
- *valuestring
- messagestring
- statusCodeinteger
- scopestring[]
- webhook
- actionstring
- *backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- failureModestring
- forwardHeaderMatches
- *namestring
- typestring
- *valuestring
- headersobject
- response
- bedrockGuardrails
- actionstring
- failureModestring
- *identifierstring
- policies
- auth
- aws
- assumeRole
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- expressionstring
- *keystring
- valuestring
- regionstring
- secretRef
- groupstring
- kindstring
- *namestring
- serviceNamestring
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *regionstring
- *versionstring
- googleModelArmor
- actionstring
- failureModestring
- locationstring
- policies
- auth
- gcp
- audiencestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- typestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *projectIdstring
- *templateIdstring
- regex
- actionstring
- builtinsstring[]
- matchesstring[]
- response
- headers
- *namestring
- *valuestring
- messagestring
- statusCodeinteger
- scopestring[]
- webhook
- actionstring
- *backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- failureModestring
- forwardHeaderMatches
- *namestring
- typestring
- *valuestring
- headersobject
- streamingstring
- routesobject
- transformations
- *expressionstring
- *fieldstring
- auth
- aws
- assumeRole
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- expressionstring
- *keystring
- valuestring
- regionstring
- secretRef
- groupstring
- kindstring
- *namestring
- serviceNamestring
- azure
- managedIdentity
- clientIdstring
- objectIdstring
- resourceIdstring
- scopesstring[]
- secretRef
- groupstring
- kindstring
- *namestring
- workloadIdentityobject
- credentials
- *location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- *secretRef
- groupstring
- keystring
- kindstring
- *namestring
- crossAppAccess
- accessTokenScopesstring[]
- *audiencestring
- cache
- inMemory
- defaultTtlstring
- maxEntriesinteger
- *identityProvider
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- pathstring
- urlstring
- *resourceAuthorizationServer
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- pathstring
- urlstring
- resourcesstring[]
- scopesstring[]
- subjectToken
- source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- gcp
- audiencestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- typestring
- jwtSign
- algstring
- claimsobject
- kidstring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- *signingKeyRef
- groupstring
- kindstring
- *namestring
- ttlstring
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- oauthTokenExchange
- actorToken
- mayActstring
- *source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- additionalParamsobject
- audiencesstring[]
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- cache
- inMemory
- defaultTtlstring
- maxEntriesinteger
- clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- grantTypestring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- pathstring
- requestedTokenTypestring
- resourcesstring[]
- scopesstring[]
- subjectToken
- source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- urlstring
- passthroughobject
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- authorization
- actionstring
- *policy
- *matchExpressionsstring[]
- health
- eviction
- consecutiveFailuresinteger
- durationstring
- healthThresholdinteger
- restoreHealthinteger
- unhealthyConditionstring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- transformation
- request
- add
- *namestring
- *valuestring
- bodystring
- metadataobject
- removestring[]
- set
- *namestring
- *valuestring
- response
- add
- *namestring
- *valuestring
- bodystring
- metadataobject
- removestring[]
- set
- *namestring
- *valuestring
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- portinteger
- vertexai
- modelstring
- *projectIdstring
- regionstring
- provider
- anthropic
- modelstring
- azure
- apiVersionstring
- modelstring
- projectNamestring
- *resourceNamestring
- *resourceTypestring
- azureopenai
- apiVersionstring
- deploymentNamestring
- *endpointstring
- bedrock
- endpointPreferencestring
- guardrail
- *identifierstring
- *versionstring
- modelstring
- regionstring
- copilot
- modelstring
- custom
- backendRef
- groupstring
- kindstring
- *namestring
- portinteger
- *formats
- pathstring
- *typestring
- modelstring
- providerOverridestring
- gemini
- modelstring
- hoststring
- openai
- modelstring
- moderation
- modelstring
- policy
- input
- *modestring
- output
- *modestring
- pathstring
- pathPrefixstring
- portinteger
- vertexai
- modelstring
- *projectIdstring
- regionstring
- aws
- agentCore
- *agentRuntimeArnstring
- qualifierstring
- dynamicForwardProxyobject
- mcp
- failureModestring
- prefixModestring
- sessionRoutingstring
- *targets
- conditionstring
- *namestring
- selector
- namespaces
- matchExpressions
- *keystring
- *operatorstring
- valuesstring[]
- matchLabelsobject
- services
- matchExpressions
- *keystring
- *operatorstring
- valuesstring[]
- matchLabelsobject
- static
- backendRef
- namestring
- hoststring
- pathstring
- policies
- auth
- aws
- assumeRole
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- expressionstring
- *keystring
- valuestring
- regionstring
- secretRef
- groupstring
- kindstring
- *namestring
- serviceNamestring
- azure
- managedIdentity
- clientIdstring
- objectIdstring
- resourceIdstring
- scopesstring[]
- secretRef
- groupstring
- kindstring
- *namestring
- workloadIdentityobject
- credentials
- *location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- *secretRef
- groupstring
- keystring
- kindstring
- *namestring
- crossAppAccess
- accessTokenScopesstring[]
- *audiencestring
- cache
- inMemory
- defaultTtlstring
- maxEntriesinteger
- *identityProvider
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- pathstring
- urlstring
- *resourceAuthorizationServer
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- pathstring
- urlstring
- resourcesstring[]
- scopesstring[]
- subjectToken
- source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- gcp
- audiencestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- typestring
- jwtSign
- algstring
- claimsobject
- kidstring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- *signingKeyRef
- groupstring
- kindstring
- *namestring
- ttlstring
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- oauthTokenExchange
- actorToken
- mayActstring
- *source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- additionalParamsobject
- audiencesstring[]
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- cache
- inMemory
- defaultTtlstring
- maxEntriesinteger
- clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- grantTypestring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- pathstring
- requestedTokenTypestring
- resourcesstring[]
- scopesstring[]
- subjectToken
- source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- urlstring
- passthroughobject
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *portinteger
- protocolstring
- policies
- ai
- defaults
- *fieldstring
- *valueobject
- finalTransformations
- *expressionstring
- *fieldstring
- modelAliasesobject
- overrides
- *fieldstring
- *valueobject
- prompt
- append
- *contentstring
- *rolestring
- prepend
- *contentstring
- *rolestring
- promptCaching
- cacheMessageOffsetinteger
- cacheMessagesboolean
- cacheSystemboolean
- cacheToolsboolean
- minTokensinteger
- promptGuard
- request
- bedrockGuardrails
- actionstring
- failureModestring
- *identifierstring
- policies
- auth
- aws
- assumeRole
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- expressionstring
- *keystring
- valuestring
- regionstring
- secretRef
- groupstring
- kindstring
- *namestring
- serviceNamestring
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *regionstring
- *versionstring
- googleModelArmor
- actionstring
- failureModestring
- locationstring
- policies
- auth
- gcp
- audiencestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- typestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *projectIdstring
- *templateIdstring
- openAIModeration
- actionstring
- failureModestring
- modelstring
- policies
- auth
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- regex
- actionstring
- builtinsstring[]
- matchesstring[]
- response
- headers
- *namestring
- *valuestring
- messagestring
- statusCodeinteger
- scopestring[]
- webhook
- actionstring
- *backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- failureModestring
- forwardHeaderMatches
- *namestring
- typestring
- *valuestring
- headersobject
- response
- bedrockGuardrails
- actionstring
- failureModestring
- *identifierstring
- policies
- auth
- aws
- assumeRole
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- expressionstring
- *keystring
- valuestring
- regionstring
- secretRef
- groupstring
- kindstring
- *namestring
- serviceNamestring
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *regionstring
- *versionstring
- googleModelArmor
- actionstring
- failureModestring
- locationstring
- policies
- auth
- gcp
- audiencestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- typestring
- http
- requestTimeoutstring
- versionstring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- *projectIdstring
- *templateIdstring
- regex
- actionstring
- builtinsstring[]
- matchesstring[]
- response
- headers
- *namestring
- *valuestring
- messagestring
- statusCodeinteger
- scopestring[]
- webhook
- actionstring
- *backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- failureModestring
- forwardHeaderMatches
- *namestring
- typestring
- *valuestring
- headersobject
- streamingstring
- routesobject
- transformations
- *expressionstring
- *fieldstring
- auth
- aws
- assumeRole
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- expressionstring
- *keystring
- valuestring
- regionstring
- secretRef
- groupstring
- kindstring
- *namestring
- serviceNamestring
- azure
- managedIdentity
- clientIdstring
- objectIdstring
- resourceIdstring
- scopesstring[]
- secretRef
- groupstring
- kindstring
- *namestring
- workloadIdentityobject
- credentials
- *location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- *secretRef
- groupstring
- keystring
- kindstring
- *namestring
- crossAppAccess
- accessTokenScopesstring[]
- *audiencestring
- cache
- inMemory
- defaultTtlstring
- maxEntriesinteger
- *identityProvider
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- pathstring
- urlstring
- *resourceAuthorizationServer
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- pathstring
- urlstring
- resourcesstring[]
- scopesstring[]
- subjectToken
- source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- gcp
- audiencestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- typestring
- jwtSign
- algstring
- claimsobject
- kidstring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- *signingKeyRef
- groupstring
- kindstring
- *namestring
- ttlstring
- keystring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- oauthTokenExchange
- actorToken
- mayActstring
- *source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- additionalParamsobject
- audiencesstring[]
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- cache
- inMemory
- defaultTtlstring
- maxEntriesinteger
- clientAuth
- *clientIdstring
- methodstring
- privateKeyJwt
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- groupstring
- keystring
- kindstring
- *namestring
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- grantTypestring
- location
- cookie
- *namestring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- pathstring
- requestedTokenTypestring
- resourcesstring[]
- scopesstring[]
- subjectToken
- source
- cookie
- *namestring
- expressionstring
- header
- *namestring
- prefixstring
- queryParameter
- *namestring
- tokenTypestring
- urlstring
- passthroughobject
- secretRef
- groupstring
- keystring
- kindstring
- *namestring
- authorization
- actionstring
- *policy
- *matchExpressionsstring[]
- extAuth
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- cache
- *keystring[]
- maxEntriesinteger
- *ttlstring
- failureModestring
- forwardBody
- *maxSize
- grpc
- contextExtensionsobject
- requestMetadataobject
- http
- addRequestHeadersobject
- allowedRequestHeadersstring[]
- allowedResponseHeadersstring[]
- bodystring
- pathstring
- redirectstring
- responseMetadataobject
- urlstring
- health
- eviction
- consecutiveFailuresinteger
- durationstring
- healthThresholdinteger
- restoreHealthinteger
- unhealthyConditionstring
- http
- requestTimeoutstring
- versionstring
- mcp
- authentication
- audiencesstring[]
- clientIdstring
- clientSecretRef
- groupstring
- keystring
- kindstring
- *namestring
- issuerstring
- *jwks
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- cacheDurationstring
- jwksPathstring
- urlstring
- modestring
- providerstring
- resourceMetadataobject
- validation
- requiredClaimsstring[]
- authorization
- actionstring
- *policy
- *matchExpressionsstring[]
- guardrails
- *processors
- expression
- conditionstring
- rejectstring
- transformstring
- *methodsobject
- remote
- allowedRequestHeadersstring[]
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- disallowedRequestHeadersstring[]
- failureModestring
- metadataobject
- urlstring
- sessionAffinity
- *sourcestring
- tcp
- connectTimeoutstring
- keepalive
- intervalstring
- retriesinteger
- timestring
- tls
- alpnProtocolsstring[]
- caCertificateRefs
- keystring
- kindstring
- *namestring
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- groupstring
- kindstring
- *namestring
- snistring
- verifySubjectAltNamesstring[]
- transformation
- request
- add
- *namestring
- *valuestring
- bodystring
- metadataobject
- removestring[]
- set
- *namestring
- *valuestring
- response
- add
- *namestring
- *valuestring
- bodystring
- metadataobject
- removestring[]
- set
- *namestring
- *valuestring
- tunnel
- backendRef
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- modestring
- urlstring
- static
- hoststring
- portinteger
- unixPathstring
- status
- conditions
- *lastTransitionTimestring
- *messagestring
- observedGenerationinteger
- *reasonstring
- *statusstring
- *typestring
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
No description for this field.
Desired backend configuration.
Validation
Rule
AI policies require AI backend
Rule
MCP policies require MCP backend
Rule
exactly one of the fields in [ai static dynamicForwardProxy mcp aws a2a] must be set
A2A backend.
Documentation References (1)
Hostname or IP address of the A2A backend.
Validation
Min length1
Max length256
Documentation References (1)
Port number of the A2A backend.
Validation
Formatint32
Minimum1
Maximum65535
Documentation References (1)
LLM backend.
Validation
Rule
exactly one of the fields in [provider groups] must be set
Documentation References (30)
Groups in priority order, where each group
defines a set of LLM providers. The priority determines the priority of
the backend endpoints chosen.
Note: provider names must be unique across all providers in all priority
groups. Backend policies may target a specific provider by name using
defines a set of LLM providers. The priority determines the priority of
the backend endpoints chosen.
Note: provider names must be unique across all providers in all priority
groups. Backend policies may target a specific provider by name using
targetRefs[].sectionName.Example configuration with two priority groups:
groups:
- providers:
- azureopenai:
deploymentName: gpt-4o-mini
apiVersion: 2024-02-15-preview
endpoint: ai-gateway.openai.azure.com
- providers:
- azureopenai:
deploymentName: gpt-4o-mini-2
apiVersion: 2024-02-15-preview
endpoint: ai-gateway-2.openai.azure.com
policies:
auth:
secretRef:
name: azure-secretValidation
Min items1
Max items8
Documentation References (3)
LLM providers within this group. Each provider is treated equally in terms of priority,
with automatic weighting based on health.
with automatic weighting based on health.
Validation
Min items1
Max items16
Rule
provider names must be unique within a group
Documentation References (3)
Anthropic provider settings.
Documentation References (2)
Model name override, such as
If unset, the model name is taken from the request.
gpt-4o-mini.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (2)
Azure provider with resource-based configuration.
Supports both Azure OpenAI and Azure AI Foundry resource types.
Supports both Azure OpenAI and Azure AI Foundry resource types.
Validation
Rule
projectName is required when resourceType is Foundry
The version of the Azure OpenAI API to use.
If unset, defaults to
If unset, defaults to
v1.Validation
Min length1
Max length64
Model name override, such as
If unset, the model name is taken from the request.
gpt-4o-mini.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
The Foundry project name, required when
Used to construct paths: /api/projects/{projectName}/openai/v1/...
resourceType is Foundry.Used to construct paths: /api/projects/{projectName}/openai/v1/...
Validation
Min length1
Max length256
The Azure resource name used to construct the endpoint host.
For OpenAI: {resourceName}.openai.azure.com
For Foundry: {resourceName}.services.ai.azure.com
Note: when the Azure portal "Foundry legacy" template was used, the
generated resource name may end in "-resource" (e.g. "myproject-resource");
that suffix is part of the resource name as the user configured it, not
part of the hostname suffix agentgateway should append.
For OpenAI: {resourceName}.openai.azure.com
For Foundry: {resourceName}.services.ai.azure.com
Note: when the Azure portal "Foundry legacy" template was used, the
generated resource name may end in "-resource" (e.g. "myproject-resource");
that suffix is part of the resource name as the user configured it, not
part of the hostname suffix agentgateway should append.
Validation
Min length1
Max length256
The type of Azure endpoint. Determines the host suffix.
Validation
EnumFoundry, OpenAI
Azure OpenAI provider settings.
Validation
Rule
deploymentName is required for this apiVersion
The version of the Azure OpenAI API to use.
For more information, see the [Azure OpenAI API version reference](https://learn.microsoft.com/en-us/azure/foundry/openai/reference).
If unset, defaults to
For more information, see the [Azure OpenAI API version reference](https://learn.microsoft.com/en-us/azure/foundry/openai/reference).
If unset, defaults to
v1.Validation
Min length1
Max length64
The name of the Azure OpenAI model deployment to use.
For more information, see the [Azure OpenAI model docs](https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/models-sold-directly-by-azure?view=foundry-classic).
This is required if
set in the request.
For more information, see the [Azure OpenAI model docs](https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/models-sold-directly-by-azure?view=foundry-classic).
This is required if
apiVersion is not v1. For v1, the model can beset in the request.
Validation
Min length1
Max length256
The endpoint for the Azure OpenAI API to use, such as
If the scheme is included, it is stripped.
my-endpoint.openai.azure.com.If the scheme is included, it is stripped.
Validation
Min length1
Max length256
Bedrock provider settings.
Validation
Rule
Bedrock guardrails cannot be used with MantlePreferred or MantleOnly
EndpointPreference selects which Bedrock API surface to prefer.
Defaults to
Decides which endpoint to pick mainly based on the catalog tags
Defaults to
RuntimePreferred, preferring runtime over mantle.Decides which endpoint to pick mainly based on the catalog tags
mantle and runtime.Validation
EnumMantleOnly, MantlePreferred, RuntimeOnly, RuntimePreferred
Guardrail policy to use for the backend. See
<https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html>.
If not specified, the AWS Guardrail policy will not be used.
<https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html>.
If not specified, the AWS Guardrail policy will not be used.
Identifier of the Guardrail policy to use for the backend.
Validation
Min length1
Max length256
Version of the Guardrail policy to use for the backend.
Validation
Min length1
Max length256
AWS region to use for the backend.
Defaults to
Defaults to
us-east-1 if not specified.Validation
Pattern^[a-z0-9-]+$
Min length1
Max length63
GitHub Copilot provider settings.
Model name override.
If unset, the model name is taken from the request.
If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Custom provider configures a non-managed or self-hosted LLM provider.
Use this when the provider target and API formats should be declared
explicitly instead of inferred from a managed provider such as OpenAI or
Anthropic.
Use this when the provider target and API formats should be declared
explicitly instead of inferred from a managed provider such as OpenAI or
Anthropic.
Validation
Rule
custom provider backendRef may target only Service or InferencePool
Documentation References (1)
Kubernetes backend that serves this provider.
If unset, host and port must be set on the parent provider.
backendRef may target only a namespace-local Service or InferencePool.If unset, host and port must be set on the parent provider.
Validation
Rule
Must have port for Service reference
API group of the referenced resource. For example,
Defaults to the empty string, which identifies the core API group.
gateway.networking.k8s.io.Defaults to the empty string, which identifies the core API group.
Validation
Pattern^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Max length253
Kind of the referenced resource. For example,
Defaults to "Service" when not specified.
Service.Defaults to "Service" when not specified.
Validation
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Name of the referenced resource.
Validation
Min length1
Max length253
Destination port number to use for this resource.
Required when the referenced resource is a Kubernetes Service.
Required when the referenced resource is a Kubernetes Service.
Validation
Formatint32
Minimum1
Maximum65535
Provider-native API formats this provider supports.
Validation
Min items1
Max items6
List typemap
List map keystype
Documentation References (1)
Default upstream path override for this format.
If unset, agentgateway uses the default path for the format.
If unset, agentgateway uses the default path for the format.
Validation
Min length1
Max length1024
Documentation References (1)
Provider-native API format.
Validation
EnumAnthropicTokenCount, Completions, Decisions, Embeddings, Messages, Realtime, Rerank, Responses, SystemOne
Documentation References (1)
Model name override, such as
If unset, the model name is taken from the request.
gpt-oss.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (1)
Provider identity used for cost-catalog lookup and telemetry.
Defaults to "custom" when unset.
Defaults to "custom" when unset.
Validation
Min length1
Max length256
Gemini provider settings.
Model name override, such as
If unset, the model name is taken from the request.
gemini-2.5-pro.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Hostname to send requests to.
For custom providers without backendRef, host and port specify the target.
For managed providers, host and port override the provider default.
For custom providers without backendRef, host and port specify the target.
For managed providers, host and port override the provider default.
Validation
Min length1
Max length256
Documentation References (2)
Name of the provider. Policies can target this provider by name.
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
Documentation References (3)
OpenAI provider settings.
Documentation References (2)
Inline moderation configuration to inject into OpenAI chat completions
and responses requests.
If unset, the OpenAI inline moderation parameter is not injected.
and responses requests.
If unset, the OpenAI inline moderation parameter is not injected.
The moderation model to use, such as
Defaults to
omni-moderation-latest.Defaults to
omni-moderation-latest if not specified.Validation
Min length1
Max length256
Policies to apply to request input and generated output.
Policy for request input moderation.
Mode controls whether moderation only returns scores or blocks flagged content.
Validation
EnumBlock, Score
Policy for generated output moderation.
URL path to use for LLM provider API requests.
This is useful when you need to route requests to a different API endpoint while maintaining
compatibility with the original provider's API structure.
If not specified, the default path for the provider is used.
This is useful when you need to route requests to a different API endpoint while maintaining
compatibility with the original provider's API structure.
If not specified, the default path for the provider is used.
Validation
Min length1
Max length1024
Documentation References (1)
Overrides the default base path prefix, such as
Path translation for cross-format requests still applies using this prefix.
Only supported for OpenAI and Anthropic providers.
/v1, for upstream requests.Path translation for cross-format requests still applies using this prefix.
Only supported for OpenAI and Anthropic providers.
Validation
Min length1
Max length1024
Policies for communicating with this backend.
Policies may also be set in
order:
LLM provider (this field).
Policies may also be set in
AgentgatewayPolicy, or in the top-levelAgentgatewayBackend. Policies are merged on a field-level basis, withorder:
AgentgatewayPolicy < AgentgatewayBackend < AgentgatewayBackendLLM provider (this field).
Validation
Rule
at least one of the fields in [ai auth authorization health http tcp tls transformation tunnel] must be set
Documentation References (3)
Settings for AI workloads. This is only applicable when
connecting to a
connecting to a
Backend of type ai.Validation
Rule
at least one of the fields in [defaults finalTransformations modelAliases overrides prompt promptCaching promptGuard routes transformations] must be set
Defaults to merge with user input fields. If the field is already set, the field in the request is used.
Validation
Min items1
Max items64
Name of the field.
Validation
Min length1
Max length256
Default value for the field. This can be any JSON data type.
Validation
Preserve unknown fieldstrue
CEL transformations to compute and set fields in the request body.
The expression result overwrites any existing value for that field.
This has a higher priority than
key.
Those transformations are applied after the request is converted to the provider's format, so they can be used to set provider-specific fields.
The expression result overwrites any existing value for that field.
This has a higher priority than
overrides if both are set for the samekey.
Those transformations are applied after the request is converted to the provider's format, so they can be used to set provider-specific fields.
Validation
Min items1
Max items64
List typemap
List map keysfield
CEL expression used to compute the field value.
Validation
Min length1
Max length16384
Name of the field to set.
Validation
Min length1
Max length256
Maps friendly model names to actual provider model names.
Example:
Note: This field is only applicable when using the agentgateway data plane.
Example:
{"fast": "gpt-3.5-turbo", "smart": "gpt-4-turbo"}.Note: This field is only applicable when using the agentgateway data plane.
Validation
Max properties64
Overrides to merge with user input fields. If the field is already set, the field is overwritten.
Validation
Min items1
Max items64
Enriches requests sent to the LLM provider by appending and prepending system prompts. This can be configured only for
LLM providers that use the
LLM providers that use the
CHAT or CHAT_STREAMING API route type.Messages to append to the prompt sent by the client.
String content of the message.
Role of the message. The available roles depend on the backend
LLM provider model, such as
LLM provider model, such as
SYSTEM or USER in the OpenAI API.Messages to prepend to the prompt sent by the client.
Automatic prompt caching for supported providers: Anthropic, Anthropic
models on Vertex AI, and AWS Bedrock (Claude 3+ and Nova models).
Reduces API costs by caching static content like system prompts and tool definitions.
Cache marks sent by the client take precedence: if a request already has any,
the policy adds none.
models on Vertex AI, and AWS Bedrock (Claude 3+ and Nova models).
Reduces API costs by caching static content like system prompts and tool definitions.
Cache marks sent by the client take precedence: if a request already has any,
the policy adds none.
Shifts the message cache point further back in the
conversation. 0 (default) places it at the second-to-last message.
Higher values move it N additional messages towards the start, clamped
to bounds.
conversation. 0 (default) places it at the second-to-last message.
Higher values move it N additional messages towards the start, clamped
to bounds.
Validation
Minimum0
Enables caching for conversation messages. Defaults to true.
Caches all messages in the conversation for cost savings.
Caches all messages in the conversation for cost savings.
Enables caching for system prompts. Defaults to true.
Inserts a cache point after all system messages.
Inserts a cache point after all system messages.
Enables caching for tool definitions. Defaults to false.
Inserts a cache point after all tool specifications.
Ignored for Bedrock Nova models, which do not support caching tools.
Inserts a cache point after all tool specifications.
Ignored for Bedrock Nova models, which do not support caching tools.
Minimum estimated token count
before caching is enabled. Uses rough heuristic (word count × 1.3) to estimate tokens.
Applies to system prompt caching. Defaults to 1024; most models require at least
1,024 tokens for caching to be effective.
before caching is enabled. Uses rough heuristic (word count × 1.3) to estimate tokens.
Applies to system prompt caching. Defaults to 1024; most models require at least
1,024 tokens for caching to be effective.
Validation
Minimum0
Guardrails for LLM requests and responses.
Validation
Rule
streaming response guards only support the Messages scope
Rule
at least one of the fields in [request response] must be set
Prompt guards to apply to requests sent by the client.
Validation
Min items1
Max items8
AWS Bedrock Guardrails settings for prompt
guarding.
guarding.
Action controls whether the guardrail's verdict is enforced or only
observed.
assessment rejects the request/response and an anonymized assessment masks
the matched content.
invoked and its assessment recorded (metrics + structured log), but the
request/response is never blocked or masked.
observed.
Reject (the default) enforces the guardrail: a blockedassessment rejects the request/response and an anonymized assessment masks
the matched content.
Audit runs the guardrail in observe mode: it isinvoked and its assessment recorded (metrics + structured log), but the
request/response is never blocked or masked.
Validation
EnumAudit, Reject
Behavior when the provider is unavailable or returns an error.
FailOpen allows the request to continue; FailClosed (default) rejects it.Validation
EnumFailClosed, FailOpen
Policies for communicating with AWS Bedrock Guardrails.
Validation
Rule
at least one of the fields in [auth http tcp tls tunnel] must be set
Settings for authenticating to AWS Bedrock Guardrails.
Validation
Rule
location may only be set for key or secretRef auth
Rule
exactly one of the fields in [key secretRef aws] must be set
AWS authentication method for Bedrock Guardrails. Use
default AWS SDK credential discovery.
aws: {} fordefault AWS SDK credential discovery.
Validation
Rule
secretRef and assumeRole are mutually exclusive
AWS STS AssumeRole settings to use before signing backend requests.
Ambient AWS credentials are used as the source credentials for STS.
Ambient AWS credentials are used as the source credentials for STS.
Validation
Rule
at most one of the fields in [sessionName sessionNameExpression] may be set
ExternalID is set when the role's trust policy requires sts:ExternalId.
Validation
Pattern^[\w+=,.@:/-]+$
Min length2
Max length1224
AWS IAM role ARN to assume.
Validation
Pattern^arn:aws[a-z-]*:iam::[0-9]{12}:role/.+$
Min length1
SessionName is a custom session name (RoleSessionName) for CloudTrail and
Cost & Usage Report attribution. If unset, AWS generates a random name.
Cost & Usage Report attribution. If unset, AWS generates a random name.
Validation
Pattern^[\w+=,.@-]{2,64}$
SessionNameExpression is a CEL expression evaluated against each request
to produce the session name (RoleSessionName), for example
session name at request time, the request is rejected.
to produce the session name (RoleSessionName), for example
jwt.sub orrequest.headers["x-team"]. If the expression does not produce a validsession name at request time, the request is rejected.
Validation
Min length1
Max length16384
Session tags passed to STS AssumeRole for cost attribution in the AWS Cost
& Usage Report, once activated. STS allows at most 50 per role session.
& Usage Report, once activated. STS allows at most 50 per role session.
Validation
Max items50
List typemap
List map keyskey
CEL expression evaluated against each request to produce the tag value,
for example
tag values are rejected.
for example
jwt.sub or request.headers["x-app"]. Requests with invalidtag values are rejected.
Validation
Min length1
Max length16384
Key is the tag key.
Validation
Min length1
Max length128
Value is a static tag value.
Validation
Max length256
AWS SigV4 signing region, for example
target AWS service is in a different region than the gateway. If unset,
typed AWS backends may provide this automatically; otherwise the ambient
AWS region is used.
us-east-1. Set this when thetarget AWS service is in a different region than the gateway. If unset,
typed AWS backends may provide this automatically; otherwise the ambient
AWS region is used.
Validation
Min length1
Max length256
Credential source for AWS credentials, defaulting to a Kubernetes
The default Secret resolver expects
Secret.The default Secret resolver expects
accessKey, secretKey, and optionalsessionToken keys.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
API group of the referenced credential; empty selects the core API group
Kind of the referenced credential; empty defaults to
SecretName of the referenced credential
Validation
Min length1
Max length253
AWS SigV4 signing service name, for example
backends may provide this automatically.
bedrock, bedrock-agentcore, or execute-api). If unset, typed AWSbackends may provide this automatically.
Validation
Min length1
Max length256
Inline API key to use as the value of the
This option is the least secure; usage of a
Authorization header.This option is the least secure; usage of a
Secret is preferred.Validation
Max length2048
Where API keys are inserted. Defaults to the
the
Authorization header withthe
Bearer prefix. Applies to key and secretRef.Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
No description for this field.
No description for this field.
Validation
Min length1
Max length256
Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with
:) are not supportedValidation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
No description for this field.
Validation
Min length1
Max length256
Credential source for the API key, defaulting to a Kubernetes
By default, the value is read from the
the default
Secret.By default, the value is read from the
Authorization key; setsecretRef.key to override it. A Bearer prefix is stripped only fromthe default
Authorization key.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Key in the referenced Secret. If omitted, a location-specific default is used
Validation
Min length1
Max length253
Settings for managing HTTP requests to the backend
Deadline for receiving a response from the backend.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
requestTimeout must be at least 1ms
HTTP protocol version for backend connections. If unset, it is inferred:
plaintext HTTP, or
to HTTP/2 even when the backend does not support it.
Service appProtocol, HTTP2 for gRPC, the original protocol forplaintext HTTP, or
HTTP1 for HTTPS because clients often upgrade HTTPSto HTTP/2 even when the backend does not support it.
Validation
EnumHTTP1, HTTP2
Settings for managing TCP connections to the backend
Deadline for establishing a connection to
the destination.
the destination.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
connectTimeout must be at least 100ms
Settings for enabling TCP keepalives on the
connection.
connection.
Time between keepalive probes.
If unset, this defaults to 180s.
If unset, this defaults to 180s.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
interval must be at least 1 second
Maximum number of keepalive probes to send before dropping the connection.
If unset, this defaults to 9.
If unset, this defaults to 9.
Validation
Formatint32
Minimum1
Maximum64
Time a connection needs to be idle before keepalive probes start being sent.
If unset, this defaults to 180s.
If unset, this defaults to 180s.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
time must be at least 1 second
Settings for managing TLS connections to the backend
When set, TLS is originated to the backend using the system trusted CA
certificates, and SNI is inferred from the destination.
certificates, and SNI is inferred from the destination.
Validation
Rule
insecureSkipVerify All and caCertificateRefs may not be set together
Rule
insecureSkipVerify and verifySubjectAltNames may not be set together
Rule
certificateSource SPIFFE may not be combined with mtlsCertificateRef, caCertificateRefs, or insecureSkipVerify
Rule
at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set
Application-Layer Protocol Negotiation (
value to use in the TLS handshake.
ALPN)value to use in the TLS handshake.
If not present, defaults to
["h2", "http/1.1"].Validation
Min items1
Max items16
CA certificate source to use to verify the server certificate. Omitted kind
and
read from the
system's trusted certificates are used.
and
ConfigMap select a ConfigMap; Secret selects a Secret. The bundle isread from the
ca.crt key unless key names a different one. If unset, thesystem's trusted certificates are used.
Validation
Max items1
List typeatomic
Key within the referenced source holding the PEM-encoded CA bundle.
Omitted defaults to
Omitted defaults to
ca.crt.Validation
Pattern^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9])?$
Min length1
Max length253
Kind of the referenced CA certificate source. Omitted defaults to ConfigMap.
Validation
EnumConfigMap, Secret
Name of the referenced CA certificate source.
Validation
Min length1
Max length253
Source for the gateway's client identity and trust roots (
Inline default, or SPIFFE).Validation
EnumInline, SPIFFE
Originates TLS but skips verification of the backend's certificate
WARNING: insecure; only use if the risks are understood
WARNING: insecure; only use if the risks are understood
Modes:
*
*
Still insecure; prefer
*
All disables all TLS verification*
Hostname trusts the CA certificate but ignores hostname/SAN mismatches.Still insecure; prefer
verifySubjectAltNames where possible.Validation
EnumAll, Hostname
Ordered list of key exchange groups for a TLS connection.
For example:
For example:
X25519_MLKEM768,X25519.Enables mutual TLS to the backend using
referenced credential source (defaulting to a Kubernetes
optional
is used.
tls.key and tls.crt from thereferenced credential source (defaulting to a Kubernetes
Secret). Anoptional
ca.cert, if present, verifies the server certificate, butcaCertificateRefs takes priority. If unspecified, no client certificateis used.
Validation
Max items1
List typeatomic
Server Name Indicator (
handshake. If unset, the
destination hostname.
SNI) to use in the TLShandshake. If unset, the
SNI is automatically set based on thedestination hostname.
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
Subject Alternative Names (
to verify in the server certificate.
If not present, the destination hostname is automatically used.
SAN)to verify in the server certificate.
If not present, the destination hostname is automatically used.
Validation
Min items1
Max items16
Settings for managing tunnel connections to the backend, like
HTTPS_PROXYValidation
Rule
exactly one of the fields in [backendRef url] must be set
Rule
url must not include a path for backend tunnel
backendRef selects a backend for this policy.Mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Group of the referent, for example
gateway.networking.k8s.io. Empty selects the core API groupValidation
Pattern^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Max length253
Kubernetes resource kind of the referent, for example
Service. Defaults to ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Name is the name of the referent.
Validation
Min length1
Max length253
Namespace of the referent. Defaults to the local namespace. A cross-namespace reference requires a ReferenceGrant in the referent namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Destination port number. Required when the referent is a Kubernetes
ServiceValidation
Formatint32
Minimum1
Maximum65535
How requests are sent through the proxy.
Defaults to
Defaults to
Auto.Validation
EnumAuto, Connect
url directly specifies the HTTP(S) endpoint for this policy.When the scheme is
https, backend TLS is enabled automatically.Mutually exclusive with
backendRef.URLs are opaque; referencing a Kubernetes service hostname like
hello.ns.svc.cluster.localwill not apply Service policies or load balancing.
Validation
Pattern^https?://[^/?#@]+(/[^?#]*)?$
Min length1
Max length1024
AWS region where the guardrail is deployed, for example
us-west-2).Validation
Min length1
Max length256
Google Model Armor settings for prompt guarding.
Action controls whether flagged content is rejected or only observed.
would-be rejection without blocking.
Reject (the default) rejects flagged content; Audit records thewould-be rejection without blocking.
Validation
EnumAudit, Reject
Google Cloud location, for example
Defaults to
us-central1.Defaults to
us-central1 if not specified.Validation
Min length1
Max length256
Policies for communicating with Google Model Armor.
Validation
Rule
at least one of the fields in [auth http tcp tls tunnel] must be set
Settings for authenticating to Google Model Armor.
Validation
Rule
exactly one of the fields in [gcp] must be set
Google authentication method for Model Armor. Use
Google credential discovery.
gcp: {} for defaultGoogle credential discovery.
Validation
Rule
audience is only valid with IdToken
Explicit
valid with
derived from the backend hostname.
aud value for the ID token. Onlyvalid with
IdToken type. If not set, the aud is automaticallyderived from the backend hostname.
Validation
Min length1
Max length256
Credential source for ADC-compatible Google credential JSON, defaulting to
a Kubernetes
ambient credentials are used.
a Kubernetes
Secret. By default, the value is read fromcredentials.json; set secretRef.key to override it. When omitted,ambient credentials are used.
Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
The type of token to generate. To authenticate to GCP services,
generally an
generally an
AccessToken is used. To authenticate to Cloud Run, anIdToken is used.Validation
EnumAccessToken, IdToken
Google Cloud project ID.
Validation
Min length1
Max length256
Template ID for Google Model Armor.
Validation
Min length1
Max length256
Passes prompt data through the OpenAI Moderations
endpoint.
See https://developers.openai.com/api/reference/resources/moderations for more information.
endpoint.
See https://developers.openai.com/api/reference/resources/moderations for more information.
Moderation model to use. For example,
omni-moderation.Policies for communicating with OpenAI.
Validation
Rule
at least one of the fields in [auth http tcp tls tunnel] must be set
Settings for authenticating to OpenAI.
Validation
Rule
exactly one of the fields in [key secretRef] must be set
Inline key to use as the value of the
Authorization header. This option is the least secure; usage of aSecret is preferred.Validation
Max length2048
Where backend credentials are inserted. Defaults to the
header with the
Authorizationheader with the
Bearer prefix. Applies to key and secretRef.Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
Credential source for the authorization value, defaulting to a Kubernetes
the default
Secret. By default, the value is read from the Authorization key; setsecretRef.key to override it. A Bearer prefix is stripped only fromthe default
Authorization key.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Regular expression (regex) matching for prompt guards and data masking.
The action to take if a regex pattern is matched in a request or response.
The action applies to request and response matches alike. Note that
streamed response is passed through unmodified.
Defaults to
The action applies to request and response matches alike. Note that
Mask is not applied to streamed responses: matched content in astreamed response is passed through unmodified.
Defaults to
Mask.Validation
EnumAudit, Mask, Reject
Built-in regex patterns to match against the request or response.
Matches and built-ins are additive.
Matches and built-ins are additive.
Regex patterns to match against the request or response.
Matches and built-ins are additive.
Matches and built-ins are additive.
Custom response message to return to the client. If not specified, defaults to
The request was rejected due to inappropriate content.Headers to include in the rejection response.
Name of the HTTP header, case-insensitive
Validation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
Value for the HTTP header
Validation
Min length1
Max length4096
Custom response message to return to the client. If not specified, defaults to
The request was rejected due to inappropriate content.Status code to return to the client. Defaults to 403.
Validation
Formatint32
Minimum200
Maximum599
Which parts of the request this guard inspects. When unset, defaults to
inspected unless
support scope and always inspect
In APIs that send tool arguments as opaque JSON, such as Completions, the
arguments are masked as a single string, meaning a prompt guard has the
potential to rewrite the arguments into invalid JSON.
SystemPrompt, Messages, and ToolOutput. Tool call inputs are notinspected unless
ToolInput is listed explicitly. Webhook guards do notsupport scope and always inspect
SystemPrompt and Messages.In APIs that send tool arguments as opaque JSON, such as Completions, the
arguments are masked as a single string, meaning a prompt guard has the
potential to rewrite the arguments into invalid JSON.
Validation
Min items1
Max items4
List typeset
Webhook that receives requests for prompt guarding.
Action controls whether the webhook's verdict is enforced or only observed.
without blocking or masking.
Reject (the default) enforces it; Audit records the would-be actionwithout blocking or masking.
Validation
EnumAudit, Reject
Webhook server to reach.
Supported types: Service and Backend.
Validation
Rule
Must have port for Service reference
Behavior when the webhook guardrail is unavailable
or returns an error.
or returns an error.
FailOpen allows the request to continue.FailClosed (default) rejects the request.Validation
EnumFailClosed, FailOpen
HTTP header matches used to select the headers to forward to the webhook.
Request headers are used when forwarding requests and response headers
are used when forwarding responses.
By default, no headers are forwarded.
Request headers are used when forwarding requests and response headers
are used when forwarding responses.
By default, no headers are forwarded.
Name of the HTTP header to match, case-insensitive. When names are equivalent, only the first matching entry is used
Validation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
How to match against the header value:
Exact (default) or RegularExpression. The regex dialect is implementation-specificValidation
EnumExact, RegularExpression
DefaultExact
Value of the HTTP header to match
Validation
Min length1
Max length4096
CEL-computed headers to include in webhook requests.
Validation
Max properties64
Prompt guards to apply to responses returned by the LLM provider.
Validation
Min items1
Max items8
Custom response message to return to the client. If not specified, defaults to
The response was rejected due to inappropriate content.Which parts of the response this guard inspects. When unset, defaults to
serverside tools.
In APIs that send tool arguments as opaque JSON, such as Completions, the
arguments are masked as a single string, meaning a prompt guard has the
potential to rewrite the arguments into invalid JSON.
Messages. Tool calls generated by the model are not inspected unlessToolInput is listed explicitly; ToolOutput covers results ofserverside tools.
In APIs that send tool arguments as opaque JSON, such as Completions, the
arguments are masked as a single string, meaning a prompt guard has the
potential to rewrite the arguments into invalid JSON.
Validation
Min items1
Max items4
List typeset
Webhook that receives responses for prompt guarding.
Apply prompt guards to streaming responses and realtime websocket messages.
Defaults to disabled to preserve streaming throughput unless explicitly enabled.
Defaults to disabled to preserve streaming throughput unless explicitly enabled.
Validation
EnumEnabled
Rules for identifying the type of traffic to handle.
The keys are URL path suffixes matched using ends-with comparison, for
example
The special
If not specified, all traffic defaults to
The keys are URL path suffixes matched using ends-with comparison, for
example
"/v1/chat/completions".The special
* wildcard matches any path.If not specified, all traffic defaults to
completions type.CEL transformations to compute and set fields in the request body.
The expression result overwrites any existing value for that field.
This has a higher priority than
key.
The expression result overwrites any existing value for that field.
This has a higher priority than
overrides if both are set for the samekey.
Validation
Min items1
Max items64
List typemap
List map keysfield
Settings for managing authentication to the backend
Validation
Rule
must specify credentials, or at most one of key/secretRef/passthrough/aws/azure/gcp/oauthTokenExchange/crossAppAccess/jwtSign (credentials may be combined with a primary auth kind)
Rule
location may only be set for key, secretRef, or passthrough auth
Rule
at most one of the fields in [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign] may be set
Documentation References (3)
Explicit AWS authentication method for the backend.
When omitted, default AWS SDK credential discovery is used.
When omitted, default AWS SDK credential discovery is used.
Validation
Rule
secretRef and assumeRole are mutually exclusive
Azure authentication method for the backend.
Validation
Rule
managedIdentity supports exactly one scope
Rule
at most one of the fields in [secretRef managedIdentity workloadIdentity] may be set
Managed identity authentication settings. Leave this object empty to use
the system-assigned identity. To use a user-assigned identity, set one of
the system-assigned identity. To use a user-assigned identity, set one of
clientId, objectId, or resourceId.Validation
Rule
at most one of the fields in [clientId objectId resourceId] may be set
Client ID of the user-assigned managed identity.
Object ID of the user-assigned managed identity.
Resource ID of the user-assigned managed identity.
Scopes requested for the Azure access token. When omitted, the scope is
inferred from the backend hostname. Managed Identity supports exactly one
scope.
inferred from the backend hostname. Managed Identity supports exactly one
scope.
Validation
Min items1
Max items64
Credential source for Azure credentials, defaulting to a Kubernetes
Secret. The default Secret resolver expects clientID, tenantID, andclientSecret keys.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Workload identity authentication settings. Uses the federated token and
Azure env vars projected into the data plane pod. Recommended on AKS with
Workload Identity enabled.
Azure env vars projected into the data plane pod. Recommended on AKS with
Workload Identity enabled.
Credentials is a list of additional credentials to inject on the
backend request. Each entry resolves a Secret key and writes its value
to the entry's location.
alongside it.
backend request. Each entry resolves a Secret key and writes its value
to the entry's location.
credentials is independent of the primarykey/secretRef/passthrough mechanism and may be set on its own oralongside it.
Validation
Min items1
Max items8
List typeatomic
Where the credential is inserted on the backend request.
Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
SecretRef references a Kubernetes Secret holding the credential value, and
optionally overrides the key read from it. Defaults to
matching the key convention used by the top-level
optionally overrides the key read from it. Defaults to
Authorization,matching the key convention used by the top-level
secretRef.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Cross App Access (Identity Assertion / ID-JAG) authentication.
If this configuration is invalid, requests using it are rejected.
If this configuration is invalid, requests using it are rejected.
Scopes requested when exchanging the ID-JAG for an access token.
When omitted, defaults to Scopes. Set to an empty list to omit scope.
When omitted, defaults to Scopes. Set to an empty list to omit scope.
Validation
Max items64
Identifier of the resource authorization server. The issued ID-JAG is bound to this audience.
Validation
Min length1
Max length256
Response cache configuration.
TTL used when the token endpoint omits expires_in. Default 300s.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
defaultTtl must be at least 1 second
Default 8192; 0 disables the cache.
Validation
Formatint32
User identity provider authorization server, used for the RFC 8693 ID-JAG exchange.
Validation
Rule
path may not be set when url is set
Rule
exactly one of the fields in [backendRef url] must be set
Client authentication for the token endpoint.
Validation
Rule
privateKeyJwt settings require method PrivateKeyJwt
Rule
secretRef is not valid with method PrivateKeyJwt
Rule
clientAuth without secretRef requires method ClientSecretPost or PrivateKeyJwt
Client ID sent to the token endpoint.
Validation
Min length1
Client authentication method. Defaults to ClientSecretBasic.
Validation
EnumClientSecretBasic, ClientSecretPost, PrivateKeyJwt
Client assertion settings. Required when method is PrivateKeyJwt.
Validation
Rule
certificateRef and certificateHeader must be set together
JWS signing algorithm. Defaults to RS256.
Validation
EnumES256, ES384, PS256, RS256, RS384, RS512
Audience for the client assertion, typically the token endpoint URL.
Validation
Min length1
JWS certificate header. Required when certificateRef is set.
Validation
Enumx5c, x5t#S256
PEM-encoded X.509 certificate chain, leaf first, for certificateHeader. The
leaf public key should match signingKeyRef; a mismatch only logs a warning
but the token endpoint will reject the assertions. Required when
certificateHeader is set. The key defaults to
leaf public key should match signingKeyRef; a mismatch only logs a warning
but the token endpoint will reject the assertions. Required when
certificateHeader is set. The key defaults to
certificate.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Optional JWS key ID header.
PEM-encoded RSA or EC private key; key defaults to
signingKey.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Secret providing the
is only valid with ClientSecretPost.
clientSecret key by default; override viasecretRef.key. When omitted, client_id is sent without a secret, whichis only valid with ClientSecretPost.
Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Token endpoint path; defaults to "/". Must start with "/".
Validation
Pattern^/
Resource authorization server, used for the RFC 7523 jwt-bearer exchange.
Validation
Rule
path may not be set when url is set
Rule
exactly one of the fields in [backendRef url] must be set
Resources sent to the token endpoint.
Validation
Min items1
Max items64
Scopes requested when obtaining the ID-JAG from the identity provider.
Validation
Min items1
Max items64
Subject token sent to the identity provider. Defaults to an OpenID Connect
ID token read from the Authorization Bearer header.
ID token read from the Authorization Bearer header.
Validation
Rule
tokenType IdJag is not supported by crossAppAccess
Where to read the subject token. Defaults to the Authorization Bearer header.
Validation
Rule
exactly one of the fields in [header queryParameter cookie expression] must be set
CEL expression that extracts the credential from the request.
Validation
Min length1
Max length16384
OAuth RFC 8693 subject token type. Defaults to IdToken
Google authentication method for the backend.
When omitted, default Google credential discovery is used.
When omitted, default Google credential discovery is used.
Validation
Rule
audience is only valid with IdToken
Signs a short-lived JWT with a private key on each request and sends it
to the backend, for upstreams that require per-request keypair JWTs
(e.g. the Snowflake SQL API) rather than a static credential.
to the backend, for upstreams that require per-request keypair JWTs
(e.g. the Snowflake SQL API) rather than a static credential.
Static claims added to every token (e.g. iss, sub, aud). Values may be
any JSON value (e.g. a string, number, bool, or array). iat, exp, and
nbf are reserved for the signer and cannot be configured here; the
controller rejects them at translation time.
any JSON value (e.g. a string, number, bool, or array). iat, exp, and
nbf are reserved for the signer and cannot be configured here; the
controller rejects them at translation time.
Where the signed token is written on the backend request.
Defaults to the Authorization header with a "Bearer " prefix.
Defaults to the Authorization header with a "Bearer " prefix.
Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
Secret providing the
signingKey key with a PEM-encoded RSA or EC private key.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Token lifetime used for exp. Defaults to 300s.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
ttl must be at least 1 second
Where backend credentials are inserted.
If omitted, credentials are written to the
This applies to
If omitted, credentials are written to the
Authorization header with the Bearer prefix.This applies to
key, secretRef, and passthrough. Entries in credentials carry their own location.Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
OAuth 2.0 token exchange (RFC 8693) / jwt-bearer (RFC 7523) authentication.
If this configuration is invalid, requests using it are rejected.
If this configuration is invalid, requests using it are rejected.
Validation
Rule
actorToken is only valid with TokenExchange grantType
Rule
requestedTokenType is only valid with TokenExchange grantType
Rule
requestedTokenType IdJag is only supported by crossAppAccess
Rule
path may not be set when url is set
Rule
exactly one of the fields in [backendRef url] must be set
RFC 8693 delegation actor token. TokenExchange grant only.
Validation
Rule
mayAct Required requires tokenType Jwt
may_act claim validation mode. When omitted, may_act is not enforced.
Validation
EnumRequired
Where to read the actor token. Actor tokens have no default source.
Validation
Rule
exactly one of the fields in [header queryParameter cookie expression] must be set
OAuth token type. Empty defaults to AccessToken. Custom absolute URI values
are supported for actor tokens.
are supported for actor tokens.
Extra form params; values are CEL expressions over the incoming request.
Validation
Max properties64
Audiences sent to the token endpoint.
Validation
Min items1
Max items64
Client authentication for the token endpoint. When unset, none is sent.
Validation
Rule
privateKeyJwt settings require method PrivateKeyJwt
Rule
secretRef is not valid with method PrivateKeyJwt
Rule
clientAuth without secretRef requires method ClientSecretPost or PrivateKeyJwt
RFC followed by the request. Defaults to TokenExchange (RFC 8693).
Validation
EnumJwtBearer, TokenExchange
Where the exchanged token is written to the backend request.
Defaults to Authorization: Bearer.
Defaults to Authorization: Bearer.
Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
RFC 8693 requested_token_type. Unlike subject/actor token types, only the
built-in values may be requested; custom URIs are not supported here.
built-in values may be requested; custom URIs are not supported here.
Validation
EnumAccessToken, Jwt, IdToken, IdJag
Scopes sent to the token endpoint.
Validation
Min items1
Max items64
Subject token / assertion source and type. Defaults to Authorization Bearer, AccessToken.
The token type may be a built-in value or a custom absolute URI for providers
that support custom token exchange profiles.
The token type may be a built-in value or a custom absolute URI for providers
that support custom token exchange profiles.
Where to read the token. CEL
expression variant is permitted.Validation
Rule
exactly one of the fields in [header queryParameter cookie expression] must be set
OAuth token type. Empty defaults to AccessToken. Custom absolute URI values
are supported for subject tokens.
are supported for subject tokens.
Reuses a client token already validated by another policy. Those policies
may strip client credentials; passthrough adds the original token back to
the backend request. Without client auth policies, this has no effect.
may strip client credentials; passthrough adds the original token back to
the backend request. Without client auth policies, this has no effect.
Credential source for the authorization value, defaulting to a Kubernetes
the default
Secret. By default, the value is read from the Authorization key; setsecretRef.key to override it. A Bearer prefix is stripped only fromthe default
Authorization key.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (3)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (3)
Authorization rules that clients must satisfy after this AI provider is selected.
The effect of this rule when it matches.
If unspecified, defaults to
If unspecified, defaults to
Allow.Require rules are cumulative: all require rules must match.Validation
EnumAllow, Deny, Require
The authorization rule to evaluate.
*
*
*
Allow: any matching allow rule allows the request.*
Require: every require rule must match for the request to be allowed.*
Deny: any matching deny rule denies the request.Deny is not recommended because expression failures fail to deny; preferAllow or Require. If used, design expressions defensively against evaluation errors.If at least one
least one allow rule matches.
Allow rule is configured, requests are denied unless atleast one allow rule matches.
CEL expressions that must all evaluate to true for the rule to match.
Validation
Min items1
Max items256
Settings for passive and active health checking.
Settings for evicting unhealthy backends.
Number of consecutive unhealthy responses required before the backend is evicted.
For example, a value of 5 means the backend must receive 5 unhealthy responses in a row before being evicted.
When both consecutiveFailures and healthThreshold are set, the backend is evicted when either condition is met.
When neither is set, a single unhealthy response can trigger eviction.
For example, a value of 5 means the backend must receive 5 unhealthy responses in a row before being evicted.
When both consecutiveFailures and healthThreshold are set, the backend is evicted when either condition is met.
When neither is set, a single unhealthy response can trigger eviction.
Validation
Formatint32
Minimum0
Base time a backend should be evicted after being marked unhealthy.
Subsequent evictions use multiplicative backoff (duration * times_evicted).
If all endpoints are evicted, the load balancer falls back to returning evicted endpoints
rather than failing entirely.
If unset, defaults to
Subsequent evictions use multiplicative backoff (duration * times_evicted).
If all endpoints are evicted, the load balancer falls back to returning evicted endpoints
rather than failing entirely.
If unset, defaults to
3s.Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
duration must be at least 1 second
EWMA health score threshold, from 0 to 100. When set, a backend is evicted
only if its computed health drops below this value after an unhealthy
response (e.g. 50 evicts when EWMA health falls below 50%). Unlike
consecutiveFailures, this sliding-window average lets a single success delay
eviction. If both are set, either condition evicts; if neither, a single
unhealthy response evicts.
only if its computed health drops below this value after an unhealthy
response (e.g. 50 evicts when EWMA health falls below 50%). Unlike
consecutiveFailures, this sliding-window average lets a single success delay
eviction. If both are set, either condition evicts; if neither, a single
unhealthy response evicts.
Validation
Formatint32
Minimum0
Maximum100
Health score from 0 to 100 assigned to a backend when it returns from eviction.
For gradual recovery, set below 100; for full recovery immediately, set 100.
If unset, the backend resumes with the health it had when evicted.
For gradual recovery, set below 100; for full recovery immediately, set 100.
If unset, the backend resumes with the health it had when evicted.
Validation
Formatint32
Minimum0
Maximum100
CEL expression that determines whether a response indicates an unhealthy backend.
When the expression evaluates to true, the backend is considered unhealthy and may be evicted.
When the expression evaluates to true, the backend is considered unhealthy and may be evicted.
For example, to evict on 5xx responses:
response.code >= 500.When unset, any 5xx response, or a connection failure, is treated as unhealthy.
This default lowers the backend's health score but does not trigger eviction on its own.
This default lowers the backend's health score but does not trigger eviction on its own.
Validation
Min length1
Max length16384
Mutates and transforms requests and responses sent to and from the backend.
Validation
Rule
at least one of the fields in [request response] must be set
Request transformation settings.
Validation
Rule
at least one of the fields in [add body metadata remove set] must be set
Headers to add to the request and what each value
should be set to. If there is already a header with these values then
append the value as an extra entry.
should be set to. If there is already a header with these values then
append the value as an extra entry.
Validation
Min items1
Max items16
List typemap
List map keysname
The name of the header to add.
Validation
Pattern^:?[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
Rule
pseudo-headers must be one of :authority, :method, :path, :scheme, or :status
CEL expression that generates the output value for
the header.
the header.
Validation
Min length1
Max length16384
HTTP body transformation.
Validation
Min length1
Max length16384
Stores CEL-evaluated values under the
for subsequent policy evaluations.
or body transformations.
metadata CEL variablefor subsequent policy evaluations.
metadata is evaluated before headeror body transformations.
Validation
Min properties1
Max properties16
Header names to remove from the request or
response.
response.
Validation
Min items1
Max items16
List typeset
Headers to set and the values to use.
Validation
Min items1
Max items16
List typemap
List map keysname
Response transformation settings.
Validation
Rule
at least one of the fields in [add body metadata remove set] must be set
Port to send requests to.
Validation
Formatint32
Minimum1
Maximum65535
Documentation References (2)
Vertex AI provider settings.
The ID of the Google Cloud Project that you use for the Vertex AI.
Validation
Min length1
Max length64
The location of the Google Cloud Project that you use for the Vertex AI.
Special values:
multi-region endpoints. Other values are treated as regional locations.
Defaults to
Special values:
global uses the global endpoint, while us and eu use restrictedmulti-region endpoints. Other values are treated as regional locations.
Defaults to
global if not specified.Validation
Min length1
Max length64
Configuration for how to reach the configured LLM
provider.
provider.
Validation
Rule
both host and port must be set together
Rule
custom providers must specify exactly one of backendRef or host and port
Rule
path and pathPrefix are mutually exclusive
Rule
path, pathPrefix, and custom format paths are mutually exclusive
Rule
pathPrefix requires host to be set
Rule
exactly one of the fields in [openai azureopenai azure anthropic gemini vertexai bedrock custom copilot] must be set
Documentation References (29)
Anthropic provider settings.
Documentation References (2)
Model name override, such as
If unset, the model name is taken from the request.
gpt-4o-mini.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (2)
Azure provider with resource-based configuration.
Supports both Azure OpenAI and Azure AI Foundry resource types.
Supports both Azure OpenAI and Azure AI Foundry resource types.
Validation
Rule
projectName is required when resourceType is Foundry
Documentation References (1)
Model name override, such as
If unset, the model name is taken from the request.
gpt-4o-mini.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (1)
The Foundry project name, required when
Used to construct paths: /api/projects/{projectName}/openai/v1/...
resourceType is Foundry.Used to construct paths: /api/projects/{projectName}/openai/v1/...
Validation
Min length1
Max length256
Documentation References (1)
The Azure resource name used to construct the endpoint host.
For OpenAI: {resourceName}.openai.azure.com
For Foundry: {resourceName}.services.ai.azure.com
Note: when the Azure portal "Foundry legacy" template was used, the
generated resource name may end in "-resource" (e.g. "myproject-resource");
that suffix is part of the resource name as the user configured it, not
part of the hostname suffix agentgateway should append.
For OpenAI: {resourceName}.openai.azure.com
For Foundry: {resourceName}.services.ai.azure.com
Note: when the Azure portal "Foundry legacy" template was used, the
generated resource name may end in "-resource" (e.g. "myproject-resource");
that suffix is part of the resource name as the user configured it, not
part of the hostname suffix agentgateway should append.
Validation
Min length1
Max length256
Documentation References (1)
The type of Azure endpoint. Determines the host suffix.
Validation
EnumFoundry, OpenAI
Documentation References (1)
Bedrock provider settings.
Validation
Rule
Bedrock guardrails cannot be used with MantlePreferred or MantleOnly
Documentation References (2)
Model name override, such as
If unset, the model name is taken from the request.
gpt-4o-mini.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (2)
AWS region to use for the backend.
Defaults to
Defaults to
us-east-1 if not specified.Validation
Pattern^[a-z0-9-]+$
Min length1
Max length63
Documentation References (2)
GitHub Copilot provider settings.
Documentation References (1)
Custom provider configures a non-managed or self-hosted LLM provider.
Use this when the provider target and API formats should be declared
explicitly instead of inferred from a managed provider such as OpenAI or
Anthropic.
Use this when the provider target and API formats should be declared
explicitly instead of inferred from a managed provider such as OpenAI or
Anthropic.
Validation
Rule
custom provider backendRef may target only Service or InferencePool
Kubernetes backend that serves this provider.
If unset, host and port must be set on the parent provider.
backendRef may target only a namespace-local Service or InferencePool.If unset, host and port must be set on the parent provider.
Validation
Rule
Must have port for Service reference
API group of the referenced resource. For example,
Defaults to the empty string, which identifies the core API group.
gateway.networking.k8s.io.Defaults to the empty string, which identifies the core API group.
Validation
Pattern^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Max length253
Documentation References (3)
Kind of the referenced resource. For example,
Defaults to "Service" when not specified.
Service.Defaults to "Service" when not specified.
Validation
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (3)
Name of the referenced resource.
Validation
Min length1
Max length253
Destination port number to use for this resource.
Required when the referenced resource is a Kubernetes Service.
Required when the referenced resource is a Kubernetes Service.
Validation
Formatint32
Minimum1
Maximum65535
Documentation References (2)
Provider-native API formats this provider supports.
Validation
Min items1
Max items6
List typemap
List map keystype
Default upstream path override for this format.
If unset, agentgateway uses the default path for the format.
If unset, agentgateway uses the default path for the format.
Validation
Min length1
Max length1024
Documentation References (3)
Provider-native API format.
Validation
EnumAnthropicTokenCount, Completions, Decisions, Embeddings, Messages, Realtime, Rerank, Responses, SystemOne
Model name override, such as
If unset, the model name is taken from the request.
gpt-oss.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Provider identity used for cost-catalog lookup and telemetry.
Defaults to "custom" when unset.
Defaults to "custom" when unset.
Validation
Min length1
Max length256
Documentation References (1)
Gemini provider settings.
Documentation References (3)
Model name override, such as
If unset, the model name is taken from the request.
gemini-2.5-pro.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (2)
Hostname to send requests to.
For custom providers without backendRef, host and port specify the target.
For managed providers, host and port override the provider default.
For custom providers without backendRef, host and port specify the target.
For managed providers, host and port override the provider default.
Validation
Min length1
Max length256
Documentation References (8)
OpenAI provider settings.
Documentation References (17)
Model name override, such as
If unset, the model name is taken from the request.
gpt-4o-mini.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (12)
Inline moderation configuration to inject into OpenAI chat completions
and responses requests.
If unset, the OpenAI inline moderation parameter is not injected.
and responses requests.
If unset, the OpenAI inline moderation parameter is not injected.
Documentation References (1)
The moderation model to use, such as
Defaults to
omni-moderation-latest.Defaults to
omni-moderation-latest if not specified.Validation
Min length1
Max length256
Documentation References (1)
Policies to apply to request input and generated output.
Documentation References (1)
Policy for request input moderation.
Documentation References (1)
Mode controls whether moderation only returns scores or blocks flagged content.
Validation
EnumBlock, Score
Documentation References (1)
Policy for generated output moderation.
Documentation References (1)
URL path to use for LLM provider API requests.
This is useful when you need to route requests to a different API endpoint while maintaining
compatibility with the original provider's API structure.
If not specified, the default path for the provider is used.
This is useful when you need to route requests to a different API endpoint while maintaining
compatibility with the original provider's API structure.
If not specified, the default path for the provider is used.
Validation
Min length1
Max length1024
Overrides the default base path prefix, such as
Path translation for cross-format requests still applies using this prefix.
Only supported for OpenAI and Anthropic providers.
/v1, for upstream requests.Path translation for cross-format requests still applies using this prefix.
Only supported for OpenAI and Anthropic providers.
Validation
Min length1
Max length1024
Documentation References (1)
Port to send requests to.
Validation
Formatint32
Minimum1
Maximum65535
Documentation References (8)
Vertex AI provider settings.
Documentation References (1)
Model name override, such as
If unset, the model name is taken from the request.
gpt-4o-mini.If unset, the model name is taken from the request.
Validation
Min length1
Max length256
Documentation References (1)
The ID of the Google Cloud Project that you use for the Vertex AI.
Validation
Min length1
Max length64
Documentation References (1)
The location of the Google Cloud Project that you use for the Vertex AI.
Special values:
multi-region endpoints. Other values are treated as regional locations.
Defaults to
Special values:
global uses the global endpoint, while us and eu use restrictedmulti-region endpoints. Other values are treated as regional locations.
Defaults to
global if not specified.Validation
Min length1
Max length64
Documentation References (1)
AWS service backend, such as AgentCore.
Validation
Rule
exactly one of the fields in [agentCore] must be set
Documentation References (1)
Amazon Bedrock AgentCore backend settings.
Documentation References (1)
ARN of the AgentCore runtime.
Documentation References (1)
Alias or version qualifier.
Dynamically sends requests to the destination based on the incoming
request HTTP host header, or TLS SNI for TLS traffic.
request HTTP host header, or TLS SNI for TLS traffic.
Warning: this backend type can send requests to arbitrary destinations. Proper
access controls must be put in place when using this backend type.
access controls must be put in place when using this backend type.
Documentation References (1)
MCP backend.
Documentation References (9)
Behavior when MCP targets fail to initialize or
become unavailable at runtime.
continues serving from healthy ones.
entire session if any target fails.
become unavailable at runtime.
FailOpen skips failed targets andcontinues serving from healthy ones.
FailClosed (default) fails theentire session if any target fails.
Validation
EnumFailClosed, FailOpen
How tool and prompt names are prefixed with the target name. Resource URIs
always retain target routing information when multiplexing and are unaffected.
names and routes calls by looking up which target serves the name;
names must be unique across targets.
always retain target routing information when multiplexing and are unaffected.
Conditional (default) prefixes only when there are multiple targets.Always prefixes even with a single target. Never exposes unprefixednames and routes calls by looking up which target serves the name;
names must be unique across targets.
Validation
EnumAlways, Conditional, Never
MCP session routing behavior.
Defaults to
Defaults to
Stateful if not set.Validation
EnumStateful, Stateless
Documentation References (1)
MCP targets to use for this backend. Policies
targeting MCP targets must use
the target by name.
targeting MCP targets must use
targetRefs[].sectionName to selectthe target by name.
Validation
Min items1
Max items128
List typemap
List map keysname
Rule
mcp target condition requires at least two targets unless the target uses selector
Documentation References (9)
CEL expression evaluated per request; when it evaluates to false, the
target is excluded from the virtual MCP.
With
target is excluded from the virtual MCP.
mcp.target.name is available.With
selector, the condition applies to each selected target.Validation
Min length1
Max length16384
Documentation References (1)
Name of the MCP target.
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
Documentation References (9)
Label selector used to select
Selected
streamable HTTP or
without a recognized MCP
If policies are needed on a per-service basis,
target the desired
Service resources.Selected
Service ports must set appProtocol: agentgateway.dev/mcp forstreamable HTTP or
appProtocol: agentgateway.dev/mcp-sse for SSE. Portswithout a recognized MCP
appProtocol value are ignored.If policies are needed on a per-service basis,
AgentgatewayPolicy cantarget the desired
Service.Validation
Rule
at least one of the fields in [namespaces services] must be set
namespace is the label selector for namespaces that Serviceresources should be selected from. If unset, only the namespace of the
AgentgatewayBackend is searched.Validation
Map typeatomic
matchExpressions is a list of label selector requirements. The requirements are ANDed.
Validation
List typeatomic
key is the label key that the selector applies to.
operator represents a key's relationship to a set of values.
Valid operators are In, NotIn, Exists and DoesNotExist.
Valid operators are In, NotIn, Exists and DoesNotExist.
values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.
Validation
List typeatomic
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
services is the label selector for which Service resources should beselected.
Validation
Map typeatomic
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
Static MCP destination. When connecting to
in-cluster
instead.
in-cluster
Service resources, it is recommended to use selectorinstead.
Validation
Rule
mcp target policies may not be used with backendRef
Rule
exactly one of the fields in [host backendRef] must be set
Namespace-local
When set, this replaces
remain configured on this target.
Service resource by name.When set, this replaces
host only; port, path, and protocolremain configured on this target.
Validation
Map typeatomic
Documentation References (2)
Name of the referent
Documentation References (2)
Hostname or IP address of the MCP target.
Validation
Min length1
Max length256
URL path of the MCP target endpoint.
Defaults to
Defaults to
"/sse" for the SSE protocol or "/mcp" for theStreamableHTTP protocol if not specified.Validation
Min length1
Max length1024
Documentation References (1)
Policies for communicating with this backend.
Policies may also be set in
order:
This field may only be used with host-based static targets, not
Policies may also be set in
AgentgatewayPolicy, or in the top-levelAgentgatewayBackend. Policies are merged on a field-level basis, withorder:
AgentgatewayPolicy < AgentgatewayBackend < AgentgatewayBackend MCP (this field).This field may only be used with host-based static targets, not
backendRef.Documentation References (1)
Settings for managing authentication to the backend
Validation
Rule
must specify credentials, or at most one of key/secretRef/passthrough/aws/azure/gcp/oauthTokenExchange/crossAppAccess/jwtSign (credentials may be combined with a primary auth kind)
Rule
location may only be set for key, secretRef, or passthrough auth
Rule
at most one of the fields in [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign] may be set
Settings for managing TLS connections to the backend
When set, TLS is originated to the backend using the system trusted CA
certificates, and SNI is inferred from the destination.
certificates, and SNI is inferred from the destination.
Validation
Rule
insecureSkipVerify All and caCertificateRefs may not be set together
Rule
insecureSkipVerify and verifySubjectAltNames may not be set together
Rule
certificateSource SPIFFE may not be combined with mtlsCertificateRef, caCertificateRefs, or insecureSkipVerify
Rule
at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set
Documentation References (1)
Server Name Indicator (
handshake. If unset, the
destination hostname.
SNI) to use in the TLShandshake. If unset, the
SNI is automatically set based on thedestination hostname.
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
Documentation References (1)
Port number of the MCP target.
Validation
Formatint32
Minimum1
Maximum65535
Protocol to use for the connection to the MCP
target.
target.
Validation
EnumSSE, StreamableHTTP
Policies for communicating with this backend. Policies may also be set
with AgentgatewayPolicy. Backend policies take precedence over policy
resources when they set the same field.
with AgentgatewayPolicy. Backend policies take precedence over policy
resources when they set the same field.
Validation
Rule
at least one of the fields in [ai auth authorization extAuth health http mcp sessionAffinity tcp tls transformation tunnel] must be set
Documentation References (40)
Settings for AI workloads. This is only applicable when
connecting to a
connecting to a
Backend of type ai.Validation
Rule
at least one of the fields in [defaults finalTransformations modelAliases overrides prompt promptCaching promptGuard routes transformations] must be set
Documentation References (12)
Maps friendly model names to actual provider model names.
Example:
Note: This field is only applicable when using the agentgateway data plane.
Example:
{"fast": "gpt-3.5-turbo", "smart": "gpt-4-turbo"}.Note: This field is only applicable when using the agentgateway data plane.
Validation
Max properties64
Documentation References (1)
Rules for identifying the type of traffic to handle.
The keys are URL path suffixes matched using ends-with comparison, for
example
The special
If not specified, all traffic defaults to
The keys are URL path suffixes matched using ends-with comparison, for
example
"/v1/chat/completions".The special
* wildcard matches any path.If not specified, all traffic defaults to
completions type.Documentation References (11)
Settings for managing authentication to the backend
Validation
Rule
must specify credentials, or at most one of key/secretRef/passthrough/aws/azure/gcp/oauthTokenExchange/crossAppAccess/jwtSign (credentials may be combined with a primary auth kind)
Rule
location may only be set for key, secretRef, or passthrough auth
Rule
at most one of the fields in [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign] may be set
Documentation References (32)
Explicit AWS authentication method for the backend.
When omitted, default AWS SDK credential discovery is used.
When omitted, default AWS SDK credential discovery is used.
Validation
Rule
secretRef and assumeRole are mutually exclusive
AWS STS AssumeRole settings to use before signing backend requests.
Ambient AWS credentials are used as the source credentials for STS.
Ambient AWS credentials are used as the source credentials for STS.
Validation
Rule
at most one of the fields in [sessionName sessionNameExpression] may be set
Documentation References (1)
AWS IAM role ARN to assume.
Validation
Pattern^arn:aws[a-z-]*:iam::[0-9]{12}:role/.+$
Min length1
Documentation References (1)
SessionNameExpression is a CEL expression evaluated against each request
to produce the session name (RoleSessionName), for example
session name at request time, the request is rejected.
to produce the session name (RoleSessionName), for example
jwt.sub orrequest.headers["x-team"]. If the expression does not produce a validsession name at request time, the request is rejected.
Validation
Min length1
Max length16384
Documentation References (1)
Session tags passed to STS AssumeRole for cost attribution in the AWS Cost
& Usage Report, once activated. STS allows at most 50 per role session.
& Usage Report, once activated. STS allows at most 50 per role session.
Validation
Max items50
List typemap
List map keyskey
Documentation References (1)
CEL expression evaluated against each request to produce the tag value,
for example
tag values are rejected.
for example
jwt.sub or request.headers["x-app"]. Requests with invalidtag values are rejected.
Validation
Min length1
Max length16384
Documentation References (1)
Key is the tag key.
Validation
Min length1
Max length128
Documentation References (1)
Value is a static tag value.
Validation
Max length256
Documentation References (1)
Credential source for AWS credentials, defaulting to a Kubernetes
The default Secret resolver expects
Secret.The default Secret resolver expects
accessKey, secretKey, and optionalsessionToken keys.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (2)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (2)
AWS SigV4 signing service name, for example
backends may provide this automatically.
bedrock, bedrock-agentcore, or execute-api). If unset, typed AWSbackends may provide this automatically.
Validation
Min length1
Max length256
Documentation References (1)
Azure authentication method for the backend.
Validation
Rule
managedIdentity supports exactly one scope
Rule
at most one of the fields in [secretRef managedIdentity workloadIdentity] may be set
Documentation References (1)
Managed identity authentication settings. Leave this object empty to use
the system-assigned identity. To use a user-assigned identity, set one of
the system-assigned identity. To use a user-assigned identity, set one of
clientId, objectId, or resourceId.Validation
Rule
at most one of the fields in [clientId objectId resourceId] may be set
Documentation References (1)
Client ID of the user-assigned managed identity.
Documentation References (1)
Workload identity authentication settings. Uses the federated token and
Azure env vars projected into the data plane pod. Recommended on AKS with
Workload Identity enabled.
Azure env vars projected into the data plane pod. Recommended on AKS with
Workload Identity enabled.
Documentation References (1)
Credentials is a list of additional credentials to inject on the
backend request. Each entry resolves a Secret key and writes its value
to the entry's location.
alongside it.
backend request. Each entry resolves a Secret key and writes its value
to the entry's location.
credentials is independent of the primarykey/secretRef/passthrough mechanism and may be set on its own oralongside it.
Validation
Min items1
Max items8
List typeatomic
Documentation References (2)
Where the credential is inserted on the backend request.
Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
Documentation References (2)
No description for this field.
Documentation References (2)
Name of an HTTP header. HTTP/2 pseudo-headers (names beginning with
:) are not supportedValidation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
Documentation References (2)
SecretRef references a Kubernetes Secret holding the credential value, and
optionally overrides the key read from it. Defaults to
matching the key convention used by the top-level
optionally overrides the key read from it. Defaults to
Authorization,matching the key convention used by the top-level
secretRef.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (2)
Key in the referenced Secret. If omitted, a location-specific default is used
Validation
Min length1
Max length253
Documentation References (2)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (2)
Inline key to use as the value of the
Authorization header. This option is the least secure; usage of aSecret is preferred.Validation
Max length2048
Documentation References (1)
Reuses a client token already validated by another policy. Those policies
may strip client credentials; passthrough adds the original token back to
the backend request. Without client auth policies, this has no effect.
may strip client credentials; passthrough adds the original token back to
the backend request. Without client auth policies, this has no effect.
Documentation References (1)
Credential source for the authorization value, defaulting to a Kubernetes
the default
Secret. By default, the value is read from the Authorization key; setsecretRef.key to override it. A Bearer prefix is stripped only fromthe default
Authorization key.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (28)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (28)
Authorization rules that clients must satisfy after this backend is selected.
Unlike traffic authorization, this policy is evaluated against the request
associated with the selected destination backend.
Unlike traffic authorization, this policy is evaluated against the request
associated with the selected destination backend.
External authentication configuration for requests
sent to this backend.
sent to this backend.
Validation
Rule
exactly one of backendRef or url must be set
Rule
forwardBody cannot be used with http.body
Rule
url path is only valid with http
Rule
http.path may not be set when url includes a path
Caches authorization results.
WARNING: the safety of this feature depends on the cache key accurately
capturing every request property that the authorization service uses to
make a decision. For example, if the service returns different results
based on both path and authorization header, both must be included in
authorization result.
capturing every request property that the authorization service uses to
make a decision. For example, if the service returns different results
based on both path and authorization header, both must be included in
key; otherwise, one request may incorrectly reuse another request'sauthorization result.
If any key expression fails to evaluate or produces an unsupported value,
the request is still sent to the authorization service, but its result is
not read from or written to the cache.
the request is still sent to the authorization service, but its result is
not read from or written to the cache.
Ordered list of CEL expressions evaluated against the request
to construct the cache key.
to construct the cache key.
Validation
Min items1
Max items16
Maximum number of authorization results to keep in
the cache. If unset, this defaults to 10000.
the cache. If unset, this defaults to 10000.
Validation
Formatint32
Minimum1
Duration string, such as
returns the duration that cached authorization results may be reused, or a
timestamp when the cached authorization result expires. The expression is
evaluated after the authorization response has been applied to the request.
5m, or a CEL expression thatreturns the duration that cached authorization results may be reused, or a
timestamp when the cached authorization result expires. The expression is
evaluated after the authorization response has been applied to the request.
Validation
Min length1
Max length16384
Behavior when the external authorization service is
unavailable or returns an error. "FailOpen" allows the request to continue.
"FailClosed" (default) denies the request.
unavailable or returns an error. "FailOpen" allows the request to continue.
"FailClosed" (default) denies the request.
Validation
EnumFailClosed, FailOpen
Whether to include the HTTP body in the authorization request.
If enabled, the request body will be buffered.
If enabled, the request body will be buffered.
Largest body, in bytes, that will be buffered
and sent to the authorization server. If the body size is larger than
and sent to the authorization server. If the body size is larger than
maxSize, then the request will be rejected with a response.Validation
Pattern^[+-]?([0-9]+(\.[0-9]*)?|\.[0-9]+)(([KMGTPE]i)|[numkMGTPE]|[eE](\+?0*([0-9]|1[0-8])|-0*[0-9]))?$
Min length1
Max length32
Int or stringtrue
Rule
value must be at least 1 byte and fit within uint32
Uses the gRPC External Authorization
[protocol](https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/auth/v3/external_auth.proto) should be used.
[protocol](https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/auth/v3/external_auth.proto) should be used.
Additional arbitrary key-value pairs to
send to the authorization server in the
send to the authorization server in the
context_extensions field.Validation
Max properties64
Metadata to send to the authorization
server. This maps to the
request, and allows dynamic CEL expressions. If unset, by default the
well, for compatibility.
server. This maps to the
metadata_context.filter_metadata field of therequest, and allows dynamic CEL expressions. If unset, by default the
envoy.filters.http.jwt_authn key is set if the JWT policy is used aswell, for compatibility.
Validation
Max properties64
Uses HTTP to connect to
the authorization server. The authorization server must return a
status code, otherwise the request is considered an authorization
failure.
the authorization server. The authorization server must return a
200status code, otherwise the request is considered an authorization
failure.
Additional headers to add to the
request to the authorization server. While
passes the original headers through,
custom headers based on CEL expressions.
request to the authorization server. While
allowedRequestHeaders justpasses the original headers through,
addRequestHeaders allows definingcustom headers based on CEL expressions.
Validation
Max properties64
Additional headers from the client request that
will be sent to the authorization server.
will be sent to the authorization server.
If unset, the following headers are sent by default:
Authorization.Validation
Max items64
Headers from the authorization response that
will be copied into the request to the backend.
will be copied into the request to the backend.
Validation
Max items64
Body is a CEL expression that produces the HTTP authorization request body.
Strings and bytes are used directly; other values are JSON-encoded.
Strings and bytes are used directly; other values are JSON-encoded.
Validation
Min length1
Max length16384
Path to send to the authorization server. If
unset, this defaults to the original request path.
This is a CEL expression, which allows customizing the path based on the
incoming request. For example, to add a prefix, use
unset, this defaults to the original request path.
This is a CEL expression, which allows customizing the path based on the
incoming request. For example, to add a prefix, use
"/prefix/" + request.path.Validation
Min length1
Max length16384
Optional expression that determines a path to
redirect to on authorization failure. This is useful to redirect to a
sign-in page.
redirect to on authorization failure. This is useful to redirect to a
sign-in page.
Validation
Min length1
Max length16384
Metadata fields to construct
from the authorization response. These will be included under the
for things like logging usernames, without needing to include them as
headers to the backend, as
from the authorization response. These will be included under the
extauthz variable in future CEL expressions. Setting this is usefulfor things like logging usernames, without needing to include them as
headers to the backend, as
allowedResponseHeaders would.Validation
Max properties64
Settings for passive and active health checking.
Documentation References (1)
Settings for evicting unhealthy backends.
Documentation References (1)
Number of consecutive unhealthy responses required before the backend is evicted.
For example, a value of 5 means the backend must receive 5 unhealthy responses in a row before being evicted.
When both consecutiveFailures and healthThreshold are set, the backend is evicted when either condition is met.
When neither is set, a single unhealthy response can trigger eviction.
For example, a value of 5 means the backend must receive 5 unhealthy responses in a row before being evicted.
When both consecutiveFailures and healthThreshold are set, the backend is evicted when either condition is met.
When neither is set, a single unhealthy response can trigger eviction.
Validation
Formatint32
Minimum0
Documentation References (1)
Settings for managing HTTP requests to the backend
Documentation References (1)
HTTP protocol version for backend connections. If unset, it is inferred:
plaintext HTTP, or
to HTTP/2 even when the backend does not support it.
Service appProtocol, HTTP2 for gRPC, the original protocol forplaintext HTTP, or
HTTP1 for HTTPS because clients often upgrade HTTPSto HTTP/2 even when the backend does not support it.
Validation
EnumHTTP1, HTTP2
Documentation References (1)
Settings for MCP workloads. This is only applicable when
connecting to a
connecting to a
Backend of type mcp.Validation
Rule
at least one of the fields in [authentication authorization guardrails] must be set
MCP backend-specific authentication rules.
This field is deprecated; prefer to use traffic policy
other policies such as transformation and rate limiting.
jwtAuthentication.mcp, which ensures authentication runs beforeother policies such as transformation and rate limiting.
Allowed audiences that are allowed
access. This corresponds to the
([RFC 7519 §4.1.3](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3)).
If unset, any audience is allowed.
access. This corresponds to the
aud claim([RFC 7519 §4.1.3](https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3)).
If unset, any audience is allowed.
Validation
Min items1
Max items64
Client ID to use for short-circuiting Dynamic Client Registration.
If set, the gateway will not proxy registration requests to the IDP and instead return this client ID.
If set, the gateway will not proxy registration requests to the IDP and instead return this client ID.
Reference to a Kubernetes Secret holding the OAuth client secret of the app
registration identified by
which require the secret at the token endpoint). The gateway injects it into the
token requests it proxies to the provider. Defaults to the
override via
registration identified by
clientId (for example Entra ID confidential clients,which require the secret at the token endpoint). The gateway injects it into the
token requests it proxies to the provider. Defaults to the
clientSecret key;override via
clientSecretRef.key.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
IdP that issued the JWT. This corresponds to the
iss claim ([RFC 7519 §4.1.1](https://tools.ietf.org/html/rfc7519#section-4.1.1)).Validation
Min length1
Max length256
Remote JSON Web Key used to validate the signature of
the JWT.
the JWT.
Validation
Rule
jwksPath is required when backendRef is set
Rule
jwksPath may not be set when url is set
Rule
exactly one of the fields in [backendRef url] must be set
How long a fetched
Defaults to
jwks document is used before it is re-fetched from the IdP.Defaults to
5m.Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
cacheDuration must be at least 5m.
Path to the IdP
jwks endpoint, relative to the root, commonly".well-known/jwks.json".Validation
Min length1
Max length1024
Validation mode for JWT authentication. Defaults to
Strict.Validation
EnumOptional, Permissive, Strict
Identity provider to use for authentication.
Validation
EnumAuth0, Authentik, Descope, Entra, Keycloak, Okta
Metadata to use for MCP resources.
Additional JWT claim presence requirements. Defaults to requiring
Issuer validation always requires
requires
list removes only the additional presence requirements. Expiration is
still checked whenever
exp.Issuer validation always requires
iss; a non-empty audiences list alsorequires
aud, regardless of these options. An empty requiredClaimslist removes only the additional presence requirements. Expiration is
still checked whenever
exp is present.Additional claims that must be present in the token payload.
Recognized values:
Defaults to
beyond
when a non-empty audiences list is configured. Expiration is still
checked whenever
Recognized values:
exp, nbf, aud, sub.Defaults to
["exp"] when omitted. An empty list adds no requirementsbeyond
iss, which is always required, and aud, which is requiredwhen a non-empty audiences list is configured. Expiration is still
checked whenever
exp is present.Validation
Max items4
List typeatomic
MCP backend authorization. Unlike authorization at the HTTP level, which rejects
unauthorized requests with a
unauthorized requests with a
403 error, this policy works at theMCPBackend level.List operations, such as
Items that do not meet the rule will be filtered.
list_tools, will have each item evaluated.Items that do not meet the rule will be filtered.
Get or call operations, such as
item and reject requests that do not meet the rule.
call_tool, will evaluate the specificitem and reject requests that do not meet the rule.
Remote and in-process CEL policy processors for MCP requests and responses.
processors is the ordered list of policy processors applied to matchedmethods. Processors run in the order listed; the first to reject a request
short-circuits the chain.
Validation
Min items1
Max items16
In-process guardrail driven by CEL expressions.
Validation
Rule
exactly one of the fields in [reject transform] must be set
Condition gating the action; absent means always.
Validation
Min length1
Max length16384
Reject with this message.
Validation
Min length1
Max length4096
Returns a replacement body (
Use
mcp.params on requests or mcp.result on responses).Use
merge to preserve fields you do not wish to mutate; null leaves the body unchanged.Validation
Min length1
Max length16384
methods is the allowlist of JSON-RPC methods (e.g. tools/call,tools/list) routed through this processor, keyed by method name with thephase it runs in. Keys may be exact, a prefix wildcard (
tools/*), a suffixwildcard (
*/list), or * for all methods; the most specific match wins.Methods matching no key, including unknown ones, bypass this processor.
Validation
Min properties1
Max properties64
Rule
method wildcards must be '*', a prefix like 'tools/*', or a suffix like '*/list'
remote configures a gRPC policy server.Validation
Rule
url must not include a path
Rule
exactly one of the fields in [backendRef url] must be set
allowedRequestHeaders lists the incoming request headers forwarded tothe policy server in
McpRequest.headers. If empty, all headers andpseudo-headers (
:authority, :method, ...) are forwarded. Matching iscase-insensitive.
Validation
Max items64
List typeset
disallowedRequestHeaders lists header names never forwarded to thepolicy server, even if listed in
allowedRequestHeaders. Matching iscase-insensitive.
Validation
Max items64
List typeset
failureMode controls behavior when the policy server is unreachableor returns an error.
FailOpen allows the request; FailClosed(default) denies it.
Validation
EnumFailClosed, FailOpen
metadata is static or CEL-evaluated context surfaced to the policyserver as fields of the
metadata_context google.protobuf.Struct,keyed by config key. Values are CEL expressions.
Validation
Max properties64
Configures best-effort session affinity using an existing request attribute.
For AI backends, this applies across the backend's provider groups and must not
be configured on an individual provider.
For AI backends, this applies across the backend's provider groups and must not
be configured on an individual provider.
Documentation References (1)
CEL expression evaluated against request state. It must return a string or bytes value.
For example,
For example,
request.headers["x-session-id"] or string(source.address).Validation
Min length1
Max length16384
Documentation References (1)
Settings for managing TLS connections to the backend
When set, TLS is originated to the backend using the system trusted CA
certificates, and SNI is inferred from the destination.
certificates, and SNI is inferred from the destination.
Validation
Rule
insecureSkipVerify All and caCertificateRefs may not be set together
Rule
insecureSkipVerify and verifySubjectAltNames may not be set together
Rule
certificateSource SPIFFE may not be combined with mtlsCertificateRef, caCertificateRefs, or insecureSkipVerify
Rule
at most one of the fields in [verifySubjectAltNames insecureSkipVerify] may be set
Documentation References (9)
Originates TLS but skips verification of the backend's certificate
WARNING: insecure; only use if the risks are understood
WARNING: insecure; only use if the risks are understood
Modes:
*
*
Still insecure; prefer
*
All disables all TLS verification*
Hostname trusts the CA certificate but ignores hostname/SAN mismatches.Still insecure; prefer
verifySubjectAltNames where possible.Validation
EnumAll, Hostname
Documentation References (1)
Server Name Indicator (
handshake. If unset, the
destination hostname.
SNI) to use in the TLShandshake. If unset, the
SNI is automatically set based on thedestination hostname.
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
Settings for managing tunnel connections to the backend, like
HTTPS_PROXYValidation
Rule
exactly one of the fields in [backendRef url] must be set
Rule
url must not include a path for backend tunnel
Documentation References (1)
backendRef selects a backend for this policy.Mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (1)
Group of the referent, for example
gateway.networking.k8s.io. Empty selects the core API groupValidation
Pattern^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Max length253
Documentation References (1)
Kubernetes resource kind of the referent, for example
Service. Defaults to ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (1)
Name is the name of the referent.
Validation
Min length1
Max length253
Documentation References (1)
Destination port number. Required when the referent is a Kubernetes
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (1)
Static hostname, IP address, or Unix Domain Socket backend.
Validation
Rule
must specify either unixPath or both host and port
Rule
unixPath and host/port are mutually exclusive
Documentation References (20)
Host to connect to for TCP backends.
Validation
Min length1
Max length256
Documentation References (20)
Port to connect to for TCP backends.
Validation
Formatint32
Minimum1
Maximum65535
Documentation References (20)
Filesystem path to a Unix Domain Socket. The gateway pod
must share a volume with the target (e.g., via emptyDir sidecar pattern).
Mutually exclusive with host/port.
must share a volume with the target (e.g., via emptyDir sidecar pattern).
Mutually exclusive with host/port.
Validation
Min length1
Current backend status.
Current condition state for the backend.
Validation
Max items8
List typemap
List map keystype
lastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
Validation
Formatdate-time
message is a human readable message indicating details about the transition.
This may be an empty string.
This may be an empty string.
Validation
Max length32768
observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
Validation
Formatint64
Minimum0
reason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
Validation
Pattern^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
Min length1
Max length1024
status of the condition, one of True, False, Unknown.
Validation
EnumTrue, False, Unknown
type of condition in CamelCase or in foo.example.com/CamelCase.
Validation
Pattern^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
Max length316
Was this page helpful?