AgentgatewayPolicy
Use AgentgatewayPolicy to configure traffic manipulation, observability, security, and more.
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
- *fieldstring
- *valueobject
- *expressionstring
- *fieldstring
- *contentstring
- *rolestring
- *contentstring
- *rolestring
- append
- prepend
- cacheMessageOffsetinteger
- cacheMessagesboolean
- cacheSystemboolean
- cacheToolsboolean
- minTokensinteger
- apiVersionstring
- blocklistNamesstring[]
- haltOnBlocklistHitboolean
- severityThresholdinteger
- apiVersionstring
- actionstring
- analyzeText
- detectJailbreak
- *endpointstring
- failureModestring
- expressionstring
- *keystring
- valuestring
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- groupstring
- kindstring
- *namestring
- assumeRole
- regionstring
- secretRef
- serviceNamestring
- *namestring
- *namestring
- prefixstring
- cookie
- header
- queryParameter
- groupstring
- keystring
- kindstring
- *namestring
- aws
- keystring
- location
- secretRef
- requestTimeoutstring
- versionstring
- intervalstring
- retriesinteger
- timestring
- connectTimeoutstring
- keepalive
- keystring
- kindstring
- *namestring
- *certstring
- *keystring
- rootstring
- file
- groupstring
- kindstring
- namestring
- alpnProtocolsstring[]
- caCertificateRefs
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- snistring
- verifySubjectAltNamesstring[]
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- backendRef
- modestring
- urlstring
- auth
- http
- tcp
- tls
- tunnel
- actionstring
- failureModestring
- *identifierstring
- policies
- *regionstring
- *versionstring
- audiencestring
- secretRef
- typestring
- gcp
- auth
- http
- tcp
- tls
- tunnel
- actionstring
- failureModestring
- locationstring
- policies
- *projectIdstring
- *templateIdstring
- keystring
- location
- secretRef
- auth
- http
- tcp
- tls
- tunnel
- actionstring
- failureModestring
- modelstring
- policies
- groupstring
- kindstring
- *namestring
- assumeRole
- regionstring
- secretRef
- serviceNamestring
- clientIdstring
- objectIdstring
- resourceIdstring
- managedIdentity
- scopesstring[]
- secretRef
- workloadIdentityobject
- audiencestring
- secretRef
- typestring
- groupstring
- keystring
- kindstring
- *namestring
- aws
- azure
- gcp
- keystring
- location
- secretRef
- attemptsinteger
- backoffstring
- codesinteger[]
- conditionstring
- preconditionstring
- auth
- http
- retry
- tcp
- tls
- tunnel
- actionstring
- builtinsstring[]
- matchesstring[]
- *namestring
- *valuestring
- headers
- messagestring
- statusCodeinteger
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *namestring
- typestring
- *valuestring
- actionstring
- *backendRef
- failureModestring
- forwardHeaderMatches
- headersobject
- azureContentSafety
- bedrockGuardrails
- googleModelArmor
- openAIModeration
- policies
- regex
- response
- scopestring[]
- webhook
- actionstring
- analyzeText
- detectJailbreak
- *endpointstring
- failureModestring
- groupstring
- keystring
- kindstring
- *namestring
- aws
- azure
- gcp
- keystring
- location
- secretRef
- auth
- http
- retry
- tcp
- tls
- tunnel
- actionstring
- builtinsstring[]
- matchesstring[]
- headers
- messagestring
- statusCodeinteger
- actionstring
- *backendRef
- failureModestring
- forwardHeaderMatches
- headersobject
- azureContentSafety
- bedrockGuardrails
- googleModelArmor
- policies
- regex
- response
- scopestring[]
- webhook
- request
- response
- streamingstring
- *expressionstring
- *fieldstring
- defaults
- finalTransformations
- modelAliasesobject
- overrides
- prompt
- promptCaching
- promptGuard
- routesobject
- transformations
- expressionstring
- *keystring
- valuestring
- externalIdstring
- *roleArnstring
- sessionNamestring
- sessionNameExpressionstring
- tags
- groupstring
- kindstring
- *namestring
- assumeRole
- regionstring
- secretRef
- serviceNamestring
- groupstring
- kindstring
- *namestring
- managedIdentity
- scopesstring[]
- secretRef
- workloadIdentityobject
- *namestring
- prefixstring
- *namestring
- cookie
- header
- queryParameter
- groupstring
- keystring
- kindstring
- *namestring
- gcp
- *location
- secretRef
- defaultTtlstring
- maxEntriesinteger
- inMemory
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- algstring
- *assertionAudiencestring
- certificateHeaderstring
- certificateRef
- kidstring
- *signingKeyRef
- groupstring
- keystring
- kindstring
- *namestring
- *clientIdstring
- methodstring
- privateKeyJwt
- secretRef
- backendRef
- *clientAuth
- pathstring
- urlstring
- cookie
- expressionstring
- header
- queryParameter
- source
- tokenTypestring
- accessTokenScopesstring[]
- *audiencestring
- cache
- *identityProvider
- *resourceAuthorizationServer
- resourcesstring[]
- scopesstring[]
- subjectToken
- audiencestring
- secretRef
- typestring
- groupstring
- kindstring
- *namestring
- algstring
- claimsobject
- kidstring
- location
- *signingKeyRef
- ttlstring
- cookie
- header
- queryParameter
- cookie
- expressionstring
- header
- queryParameter
- mayActstring
- *source
- tokenTypestring
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- groupstring
- keystring
- kindstring
- *namestring
- *clientIdstring
- methodstring
- privateKeyJwt
- secretRef
- source
- tokenTypestring
- actorToken
- additionalParamsobject
- audiencesstring[]
- backendRef
- cache
- clientAuth
- grantTypestring
- location
- pathstring
- requestedTokenTypestring
- resourcesstring[]
- scopesstring[]
- subjectToken
- urlstring
- groupstring
- keystring
- kindstring
- *namestring
- aws
- azure
- credentials
- crossAppAccess
- gcp
- jwtSign
- keystring
- location
- oauthTokenExchange
- passthroughobject
- secretRef
- *matchExpressionsstring[]
- actionstring
- *policy
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *keystring[]
- maxEntriesinteger
- *ttlstring
- *maxSize
- contextExtensionsobject
- requestMetadataobject
- addRequestHeadersobject
- allowedRequestHeadersstring[]
- allowedResponseHeadersstring[]
- bodystring
- pathstring
- redirectstring
- responseMetadataobject
- backendRef
- cache
- failureModestring
- forwardBody
- grpc
- http
- urlstring
- consecutiveFailuresinteger
- durationstring
- healthThresholdinteger
- restoreHealthinteger
- eviction
- unhealthyConditionstring
- requestTimeoutstring
- versionstring
- backendRef
- cacheDurationstring
- jwksPathstring
- urlstring
- requiredClaimsstring[]
- audiencesstring[]
- clientIdstring
- clientSecretRef
- issuerstring
- *jwks
- modestring
- providerstring
- resourceMetadataobject
- validation
- *matchExpressionsstring[]
- actionstring
- *policy
- conditionstring
- rejectstring
- transformstring
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- allowedRequestHeadersstring[]
- backendRef
- disallowedRequestHeadersstring[]
- failureModestring
- metadataobject
- urlstring
- expression
- *methodsobject
- remote
- *processors
- authentication
- authorization
- guardrails
- *sourcestring
- intervalstring
- retriesinteger
- timestring
- connectTimeoutstring
- keepalive
- keystring
- kindstring
- *namestring
- *certstring
- *keystring
- rootstring
- file
- groupstring
- kindstring
- namestring
- alpnProtocolsstring[]
- caCertificateRefs
- certificateSourcestring
- insecureSkipVerifystring
- keyExchangeGroupsstring[]
- mtlsCertificateRef
- snistring
- verifySubjectAltNamesstring[]
- *namestring
- *valuestring
- add
- bodystring
- metadataobject
- removestring[]
- set
- request
- response
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- backendRef
- modestring
- urlstring
- ai
- auth
- authorization
- extAuth
- health
- http
- mcp
- sessionAffinity
- tcp
- tls
- transformation
- tunnel
- *expressionstring
- *namestring
- add
- removestring[]
- *expressionstring
- *namestring
- add
- removestring[]
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- attributes
- backendRef
- filterstring
- pathstring
- protocolstring
- urlstring
- attributes
- filterstring
- otlp
- presetstring
- *modestring
- http1HeaderCasestring
- http1IdleTimeoutstring
- http1MaxHeadersinteger
- http2ConnectionWindowSize
- http2FrameSize
- http2KeepaliveIntervalstring
- http2KeepaliveTimeoutstring
- http2MaxHeaderSize
- http2WindowSize
- maxBufferSize
- maxConcurrentRequestsinteger
- maxConnectionDurationstring
- normalizestring[]
- *expressionstring
- *namestring
- add
- *attributes
- modestring
- versionstring
- intervalstring
- retriesinteger
- timestring
- keepalive
- maxConnectionsinteger
- alpnProtocolsstring[]
- cipherSuitesstring[]
- handshakeTimeoutstring
- keyExchangeGroupsstring[]
- maxProtocolVersionstring
- minProtocolVersionstring
- *expressionstring
- *namestring
- add
- removestring[]
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *expressionstring
- *namestring
- attributes
- backendRef
- clientSamplingstring
- filterstring
- parentNotSampledstring
- pathstring
- protocolstring
- randomSamplingstring
- resources
- urlstring
- accessLog
- connect
- http
- metrics
- networkAuthorization
- proxyProtocol
- tcp
- tls
- tracing
- inheritancestring
- *groupstring
- *kindstring
- *namestring
- portinteger
- sectionNamestring
- *groupstring
- *kindstring
- *matchLabelsobject
- portinteger
- sectionNamestring
- *matchLabelsobject
- *namestring
- *namestring
- prefixstring
- cookie
- expressionstring
- header
- queryParameter
- groupstring
- kindstring
- *namestring
- *matchLabelsobject
- configMapSelector
- location
- modestring
- secretRef
- secretSelector
- *matchExpressionsstring[]
- actionstring
- *policy
- groupstring
- keystring
- kindstring
- *namestring
- location
- modestring
- realmstring
- secretRef
- usersstring[]
- failureModestring
- maxBytes
- request
- response
- algorithmsstring[]
- decompress
- algorithmsstring[]
- compress
- request
- response
- allowCredentialsboolean
- allowHeadersstring[]
- allowMethodsstring[]
- allowOriginsstring[]
- exposeHeadersstring[]
- maxAgeinteger
- additionalOriginsstring[]
- *durationstring
- *namestring
- *valuestring
- bodystring
- bodyExpressionstring
- headers
- statusinteger
- conditionstring
- *policy
- bodystring
- bodyExpressionstring
- conditional
- headers
- statusinteger
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *keystring[]
- maxEntriesinteger
- *ttlstring
- backendRef
- cache
- failureModestring
- forwardBody
- grpc
- http
- urlstring
- conditionstring
- *policy
- addRequestHeadersobject
- allowedRequestHeadersstring[]
- allowedResponseHeadersstring[]
- bodystring
- pathstring
- redirectstring
- responseMetadataobject
- backendRef
- cache
- conditional
- failureModestring
- forwardBody
- grpc
- http
- urlstring
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- allowModeOverrideboolean
- requestBodyModestring
- requestHeaderModestring
- requestTrailerModestring
- responseBodyModestring
- responseHeaderModestring
- responseTrailerModestring
- backendRef
- failureModestring
- metadataContextobject
- processingOptions
- requestAttributesobject
- responseAttributesobject
- urlstring
- conditionstring
- *policy
- allowModeOverrideboolean
- requestBodyModestring
- requestHeaderModestring
- requestTrailerModestring
- responseBodyModestring
- responseHeaderModestring
- responseTrailerModestring
- backendRef
- conditional
- failureModestring
- metadataContextobject
- processingOptions
- requestAttributesobject
- responseAttributesobject
- urlstring
- add
- removestring[]
- set
- request
- response
- *modestring
- *namestring
- prefixstring
- *namestring
- cookie
- expressionstring
- header
- queryParameter
- clientIdstring
- providerstring
- resourceMetadataobject
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- backendRef
- cacheDurationstring
- jwksPathstring
- urlstring
- inlinestring
- remote
- audiencesstring[]
- *issuerstring
- *jwks
- validation
- location
- mcp
- modestring
- preserveTokenboolean
- *providers
- *expressionstring
- *namestring
- coststring
- *entries
- limitOverridestring
- unitstring
- backendRef
- *descriptors
- *domainstring
- failureModestring
- urlstring
- burstinteger
- keystring
- requestsinteger
- tokensinteger
- *unitstring
- global
- local
- conditionstring
- *policy
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- *expressionstring
- *namestring
- coststring
- *entries
- limitOverridestring
- unitstring
- backendRef
- *descriptors
- *domainstring
- failureModestring
- urlstring
- burstinteger
- keystring
- requestsinteger
- tokensinteger
- *unitstring
- conditional
- global
- local
- attemptsinteger
- backoffstring
- codesinteger[]
- conditionstring
- preconditionstring
- requeststring
- responseIdlestring
- *namestring
- *valuestring
- add
- bodystring
- metadataobject
- removestring[]
- set
- request
- response
- conditionstring
- *policy
- *namestring
- *valuestring
- add
- bodystring
- metadataobject
- removestring[]
- set
- *namestring
- *valuestring
- *namestring
- *valuestring
- add
- bodystring
- metadataobject
- removestring[]
- set
- conditional
- request
- response
- apiKeyAuthentication
- authorization
- basicAuthentication
- buffer
- compression
- cors
- csrf
- delay
- directResponse
- extAuth
- extProc
- headerModifiers
- hostRewrite
- jwtAuthentication
- phasestring
- rateLimit
- retry
- timeouts
- transformation
- backend
- frontend
- strategy
- targetRefs
- targetSelectors
- traffic
- groupstring
- kindstring
- *namestring
- namespacestring
- portinteger
- sectionNamestring
- *lastTransitionTimestring
- *messagestring
- observedGenerationinteger
- *reasonstring
- *statusstring
- *typestring
- *ancestorRef
- *conditions
- *controllerNamestring
- *ancestors
- apiVersionstring
- kindstring
- metadataobject
- *spec
- status
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.
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
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
CEL expression used to compute the field value.
Validation
Min length1
Max length16384
Name of the field to set.
Validation
Min length1
Max length256
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
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
String content of the message.
Documentation References (1)
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.Documentation References (1)
Messages to append to the prompt sent by the client.
Documentation References (1)
String content of the message.
Documentation References (2)
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.Documentation References (2)
Messages to prepend to the prompt sent by the client.
Documentation References (2)
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.Documentation References (2)
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.
Documentation References (1)
Enables caching for system prompts. Defaults to true.
Inserts a cache point after all system messages.
Inserts a cache point after all system messages.
Documentation References (1)
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.
Documentation References (1)
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
Documentation References (1)
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.
Documentation References (1)
Reject (default) blocks flagged content; Audit only records it.Validation
EnumAudit, Reject
Analyze Text API version. Defaults to
2024-09-01.Validation
Min length1
Max length256
Names of custom blocklists to check. Any blocklist match flags the content.
Validation
Min items1
Max items64
List typeset
When true, further analysis stops if a blocklist is hit.
Severity at or above which content is flagged (0-6). Defaults to 2.
Validation
Formatint32
Minimum0
Maximum6
Documentation References (1)
Checks content with the Analyze Text API for harmful content categories
(Hate, SelfHarm, Sexual, Violence) and blocklist matches.
(Hate, SelfHarm, Sexual, Violence) and blocklist matches.
Documentation References (1)
Detect Text Jailbreak API version. Defaults to
2024-02-15-preview.Validation
Min length1
Max length256
Checks content with the Detect Text Jailbreak API (Prompt Shields).
Only supported on request guards.
Only supported on request guards.
Documentation References (1)
Endpoint of the Azure AI Content Safety resource, for example
and ignored.
my-resource.cognitiveservices.azure.com. An https:// prefix is acceptedand ignored.
Validation
Min length1
Max length256
Documentation References (1)
On provider error:
FailClosed (default) rejects, FailOpen continues.Validation
EnumFailClosed, FailOpen
Azure AI Content Safety settings for prompt guarding.
Validation
Rule
at least one of analyzeText or detectJailbreak must be set
Documentation References (1)
Reject (default) enforces the guardrail, blocking or masking content; Audit invokes itand records the assessment without blocking or masking.
Validation
EnumAudit, Reject
Identifier of the Guardrail policy to use for the backend.
Validation
Min length1
Max length256
Documentation References (1)
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
Role session name for CloudTrail and cost attribution. If both session-name fields are
omitted, the AWS SDK generates the name.
omitted, the AWS SDK generates the name.
Validation
Pattern^[\w+=,.@-]{2,64}$
CEL expression producing the session name per request, for example
yield an invalid name are rejected.
jwt.sub. Requests thatyield an invalid name are rejected.
Validation
Min length1
Max length16384
CEL expression producing the tag value per request, for example
reject the request.
jwt.sub. Invalid valuesreject the request.
Validation
Min length1
Max length16384
Key is the tag key.
Validation
Min length1
Max length128
Value is a static tag value.
Validation
Max length256
STS session tags for AWS cost attribution; at most 50.
Validation
Max items50
List typemap
List map keyskey
STS AssumeRole before signing requests, using ambient AWS credentials as the source.
Validation
Rule
at most one of the fields in [sessionName sessionNameExpression] may be set
SigV4 signing region, for example
otherwise the ambient region is used.
us-east-1. If unset, typed AWS backends may set it;otherwise the ambient region is used.
Validation
Min length1
Max length256
API group of the credential; empty is the core group
Kind of the credential; defaults to
SecretName of the referenced credential
Validation
Min length1
Max length253
AWS credentials (a
Secret by default) with accessKey, secretKey, and optionalsessionToken keys.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
SigV4 signing service, for example
may set it.
bedrock or execute-api. If unset, typed AWS backendsmay set it.
Validation
Min length1
Max length256
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
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
No description for this field.
Validation
Min length1
Max length256
No description for this field.
HTTP header name; HTTP/2 pseudo-headers (
:name) are not supportedValidation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
No description for this field.
Validation
Min length1
Max length256
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
Key within the credential; the default depends on the field
Validation
Min length1
Max length253
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
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
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 version for backend connections. If unset: the Service
the client's protocol for plaintext, or
appProtocol, HTTP2 for gRPC,the client's protocol for plaintext, or
HTTP1 for HTTPS.Validation
EnumHTTP1, HTTP2
Settings for managing HTTP requests 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
Time between keepalive probes. 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
Unanswered probes before the connection is dropped. Defaults to 9.
Validation
Formatint32
Minimum1
Maximum64
Idle time before keepalive probes start. 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 enabling TCP keepalives on the
connection.
connection.
Settings for managing TCP connections to the backend
ALPN protocols for the TLS handshake. Defaults to
["h2", "http/1.1"].Validation
Min items1
Max items16
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
Trust roots for
allowed with a
its workload trust bundle.
Inline TLS; they take precedence over the mTLS credential's ca.crt. Notallowed with a
File credential (use file.root). Defaults to system roots. SPIFFE usesits workload trust bundle.
Validation
Max items1
List typeatomic
Source for the gateway's client identity and trust roots (
Inline default, or SPIFFE).Validation
EnumInline, SPIFFE
Skips backend certificate verification (insecure).
All disables all verification;Hostname checks the CA chain but ignores hostname/SAN mismatches, so preferverifySubjectAltNames.Validation
EnumAll, Hostname
Ordered list of key exchange groups for a TLS connection.
For example:
For example:
X25519_MLKEM768,X25519.Path to the client certificate file.
Validation
Min length1
Max length1024
Path to the client certificate's private key file.
Validation
Min length1
Max length1024
CA bundle file used to verify the backend. Defaults to the system's trusted certificates.
Validation
Min length1
Max length1024
Paths on the agentgateway pod, which must be allowed by
fileAccess. Required when kind isFile.API group of the referenced credential; empty selects the core API group.
Kind of the referenced credential; empty defaults to
Secret. File reads from file.Name of the referenced credential. Required unless
kind is File.Validation
Min length1
Max length253
Client identity for
(a Secret by default), or use pod files with kind
Inline mutual TLS. Supply tls.crt and tls.key in the credential(a Secret by default), or use pod files with kind
File. Omitting this reference inInline mode sends no client certificate. SPIFFE supplies its own identity.Validation
Max items1
List typeatomic
SNI for the TLS handshake. Defaults to the destination 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
SANs accepted for the server certificate; defaults to the destination hostname.
With SPIFFE, accepts DNS names or SPIFFE IDs; only SPIFFE IDs select federated bundles.
If omitted with SPIFFE, accepts any SVID in the local trust domain.
With SPIFFE, accepts DNS names or SPIFFE IDs; only SPIFFE IDs select federated bundles.
If omitted with SPIFFE, accepts any SVID in the local trust domain.
Validation
Min items1
Max items16
Originates TLS to the backend. An empty object uses system trust roots and the destination
as SNI.
as SNI.
Validation
Rule
insecureSkipVerify All and caCertificateRefs may not be set together
Rule
insecureSkipVerify and verifySubjectAltNames may not be set together
Rule
caCertificateRefs may not be combined with a File mtlsCertificateRef; use file.root instead
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
API group of the referent; empty selects 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 referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Name of the referent
Validation
Min length1
Max length253
Namespace of the referent; defaults to the local namespace. Cross-namespace references require a ReferenceGrant in the target namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
How requests are sent through the proxy.
Defaults to
Defaults to
Auto.Validation
EnumAuto, Connect
HTTP(S) endpoint for this policy; mutually exclusive with
backend TLS. The host is used as-is, so a Service hostname gets no Service policies or load
balancing.
backendRef. https enablesbackend TLS. The host is used as-is, so a Service hostname gets no Service policies or load
balancing.
Validation
Pattern^https?://[^/?#@]+(/[^?#]*)?$
Min length1
Max length1024
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
Policies for communicating with the provider.
This field is deprecated; prefer
It may not be set together with the guard-level
policies on the prompt guard entry.It may not be set together with the guard-level
policies.Validation
Rule
at least one of the fields in [auth http tcp tls tunnel] must be set
AWS region where the guardrail is deployed, for example
us-west-2).Validation
Min length1
Max length256
Documentation References (1)
Version of the Guardrail policy to use for the backend.
Validation
Min length1
Max length256
Documentation References (1)
AWS Bedrock Guardrails settings for prompt
guarding.
guarding.
Documentation References (1)
Google Cloud location, for example
Defaults to
us-central1.Defaults to
us-central1 if not specified.Validation
Min length1
Max length256
Documentation References (1)
Audience for an
Required for other targets.
IdToken. Defaults to https://<backend-hostname> for hostname targets.Required for other targets.
Validation
Min length1
Max length256
Credential (a
Secret by default) holding ADC-compatible Google credential JSON undercredentials.json, or secretRef.key. If unset, ambient credentials are used.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Token type:
Cloud Run.
AccessToken (default) for most GCP services, or IdToken, for example forCloud Run.
Validation
EnumAccessToken, IdToken
Google authentication method for Model Armor. Use
Google credential discovery.
gcp: {} for defaultGoogle credential discovery.
Validation
Rule
audience is only valid with IdToken
Settings for authenticating to Google Model Armor.
Validation
Rule
exactly one of the fields in [gcp] must be set
Google Cloud project ID.
Validation
Min length1
Max length256
Documentation References (1)
Template ID for Google Model Armor.
Validation
Min length1
Max length256
Documentation References (1)
Google Model Armor settings for prompt guarding.
Documentation References (1)
Reject (default) blocks flagged content; Audit only records it.Validation
EnumAudit, Reject
Documentation References (1)
Moderation model to use. For example,
omni-moderation.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
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
Settings for authenticating to OpenAI.
Validation
Rule
exactly one of the fields in [key secretRef] must be set
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.
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
AWS credentials (a
Secret by default) with accessKey, secretKey, and optionalsessionToken keys.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (1)
AWS authentication method. Use
discovery.
aws: {} for default AWS SDK credentialdiscovery.
Validation
Rule
secretRef and assumeRole are mutually exclusive
Documentation References (1)
Client ID of the user-assigned managed identity.
Object ID of the user-assigned managed identity.
Resource ID of the user-assigned managed identity.
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
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.
Azure authentication method. Use
credential discovery.
azure: {} for implicit Azurecredential discovery.
Validation
Rule
managedIdentity supports exactly one scope
Rule
at most one of the fields in [secretRef managedIdentity workloadIdentity] may be set
Token type:
Cloud Run.
AccessToken (default) for most GCP services, or IdToken, for example forCloud Run.
Validation
EnumAccessToken, IdToken
Documentation References (1)
Google authentication method. Use
credential discovery.
gcp: {} for default Googlecredential discovery.
Validation
Rule
audience is only valid with IdToken
Documentation References (1)
Inline key. This option is the least secure; usage of a
preferred.
Secret ispreferred.
Validation
Max length2048
Where keys are inserted. Defaults to the
Authorization header with theBearer prefix, or the Ocp-Apim-Subscription-Key header forazureContentSafety. Applies to key and secretRef.Validation
Rule
exactly one of the fields in [header queryParameter cookie] must be set
Name of the referenced credential
Validation
Min length1
Max length253
Credential source for the key, defaulting to a Kubernetes
default, the value is read from the
the default
Secret. Bydefault, 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
Settings for authenticating to the prompt guard provider.
Validation
Rule
location may only be set for key or secretRef auth
Rule
exactly one of the fields in [key secretRef aws gcp azure] must be set
Maximum retries per request, in addition to the initial attempt
Validation
Default1
Minimum0
Minimum duration to wait between retry attempts, in Gateway API Duration format. Implementations may add jitter or use exponential backoff, and must not exceed a configured request timeout. Support: Extended
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Codes defines the HTTP response status codes for which a backend request
should be retried.
should be retried.
Support: Extended
Validation
List typeset
condition is a CEL expression evaluated against each response to decidewhether to retry. A response is retried when its status code is in
codes orthis expression evaluates to
true.Validation
Min length1
Max length16384
CEL expression evaluated before the first attempt;
requests.
false disables retries, for examplerequest.method == "GET". Use it to skip buffering the request body for non-retriablerequests.
Validation
Min length1
Max length16384
Retry calls to the prompt guard provider. Each attempt has its own request
timeout (
timeout (
http.requestTimeout), so a provider that keeps timing out can take(attempts + 1) × timeout plus backoffs. Retries multiply with route retries.Policies for communicating with the prompt guard provider. Not supported
for
for
regex guards.Validation
Rule
at least one of the fields in [auth http retry tcp tls tunnel] must be set
On a match,
passes the content through. Masking is skipped for streamed responses.
Mask (default) redacts, Reject blocks, and Audit records the match andpasses the content through. Masking is skipped for streamed responses.
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.
Documentation References (3)
Regex patterns to match against the request or response.
Matches and built-ins are additive.
Matches and built-ins are additive.
Documentation References (2)
Regular expression (regex) matching for prompt guards and data masking.
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
Headers to include in the rejection response.
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
Documentation References (1)
Custom response message to return to the client. If not specified, defaults to
The request was rejected due to inappropriate content.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
Documentation References (2)
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
API group of the referent; empty selects 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 (1)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (2)
Name of the referent
Validation
Min length1
Max length253
Documentation References (2)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (2)
Webhook server to reach.
Supported types: Service and Backend.
Validation
Rule
Must have port for Service reference
Documentation References (2)
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
Header name, case-insensitive; for duplicate names only the first 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
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.
CEL-computed headers to include in webhook requests.
Validation
Max properties64
Documentation References (1)
Webhook that receives requests for prompt guarding.
Documentation References (2)
Prompt guards to apply to requests sent by the client.
Validation
Min items1
Max items8
Documentation References (9)
Checks content with the Detect Text Jailbreak API (Prompt Shields).
Only supported on request guards.
Only supported on request guards.
Azure AI Content Safety settings for response guarding. Only
analyzeText is supported for responses.Validation
Rule
at least one of analyzeText or detectJailbreak must be set
Documentation References (1)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
Credential source for the key, defaulting to a Kubernetes
default, the value is read from the
the default
Secret. Bydefault, 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 (1)
Settings for authenticating to the prompt guard provider.
Validation
Rule
location may only be set for key or secretRef auth
Rule
exactly one of the fields in [key secretRef aws gcp azure] must be set
Policies for communicating with the prompt guard provider. Not supported
for
for
regex guards.Validation
Rule
at least one of the fields in [auth http retry tcp tls tunnel] must be set
On a match,
passes the content through. Masking is skipped for streamed responses.
Mask (default) redacts, Reject blocks, and Audit records the match andpasses the content through. Masking is skipped for streamed responses.
Validation
EnumAudit, Mask, Reject
Documentation References (3)
Regex patterns to match against the request or response.
Matches and built-ins are additive.
Matches and built-ins are additive.
Regular expression (regex) matching for prompt guards and data masking.
Documentation References (3)
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
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
CEL-computed headers to include in webhook requests.
Validation
Max properties64
Webhook that receives responses for prompt guarding.
Documentation References (2)
Prompt guards to apply to responses returned by the LLM provider.
Validation
Min items1
Max items8
Documentation References (7)
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
Documentation References (1)
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
Documentation References (9)
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 (1)
CEL expression used to compute the field value.
Validation
Min length1
Max length16384
Documentation References (2)
Name of the field to set.
Validation
Min length1
Max length256
Documentation References (2)
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
Documentation References (2)
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 (16)
AWS IAM role ARN to assume.
Validation
Pattern^arn:aws[a-z-]*:iam::[0-9]{12}:role/.+$
Min length1
Documentation References (1)
CEL expression producing the session name per request, for example
yield an invalid name are rejected.
jwt.sub. Requests thatyield an invalid name are rejected.
Validation
Min length1
Max length16384
Documentation References (1)
CEL expression producing the tag value per request, for example
reject the request.
jwt.sub. Invalid valuesreject the request.
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)
STS session tags for AWS cost attribution; at most 50.
Validation
Max items50
List typemap
List map keyskey
Documentation References (1)
STS AssumeRole before signing requests, using ambient AWS credentials as the source.
Validation
Rule
at most one of the fields in [sessionName sessionNameExpression] may be set
Documentation References (1)
SigV4 signing region, for example
otherwise the ambient region is used.
us-east-1. If unset, typed AWS backends may set it;otherwise the ambient region is used.
Validation
Min length1
Max length256
Documentation References (1)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
AWS credentials (a
Secret by default) with accessKey, secretKey, and optionalsessionToken keys.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (1)
SigV4 signing service, for example
may set it.
bedrock or execute-api. If unset, typed AWS backendsmay set it.
Validation
Min length1
Max length256
Documentation References (1)
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
Documentation References (1)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
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
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)
Fetches a Google Cloud access or ID token and writes it to
location.Validation
Rule
audience is only valid with IdToken
HTTP header name; HTTP/2 pseudo-headers (
:name) are not supportedValidation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
Documentation References (1)
No description for this field.
Documentation References (1)
No description for this field.
Validation
Min length1
Max length256
Documentation References (1)
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 (1)
Key within the credential; the default depends on the field
Validation
Min length1
Max length253
Documentation References (1)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
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 (1)
Credentials is a list of additional credentials to inject on the backend
request. Each entry writes its value to the entry's location.
mechanism and may be set on its own or alongside it.
request. Each entry writes its value to the entry's location.
credentials is independent of the primary key/secretRef/passthroughmechanism and may be set on its own or alongside it.
Validation
Min items1
Max items8
List typeatomic
Documentation References (1)
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
Documentation References (1)
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
Response cache configuration.
API group of the referent; empty selects 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 (1)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (1)
Name of the referent
Validation
Min length1
Max length253
Documentation References (1)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (1)
Client ID sent to the token endpoint.
Validation
Min length1
Documentation References (1)
Client authentication method. Defaults to ClientSecretBasic.
Validation
EnumClientSecretBasic, ClientSecretPost, PrivateKeyJwt
Documentation References (1)
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
Client assertion settings. Required when method is PrivateKeyJwt.
Validation
Rule
certificateRef and certificateHeader must be set together
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
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
Documentation References (1)
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
Documentation References (1)
Token endpoint path; defaults to "/". Must start with "/".
Validation
Pattern^/
Documentation References (1)
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
Documentation References (1)
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
Documentation References (1)
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
Documentation References (1)
CEL expression that extracts the credential from the request.
Validation
Min length1
Max length16384
Documentation References (1)
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
Documentation References (1)
OAuth RFC 8693 subject token type. Defaults to IdToken
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
Documentation References (1)
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.
Documentation References (1)
Audience for an
Required for other targets.
IdToken. Defaults to https://<backend-hostname> for hostname targets.Required for other targets.
Validation
Min length1
Max length256
Documentation References (1)
Token type:
Cloud Run.
AccessToken (default) for most GCP services, or IdToken, for example forCloud Run.
Validation
EnumAccessToken, IdToken
Documentation References (1)
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
Documentation References (1)
JWS signing algorithm. Defaults to RS256.
Validation
EnumES256, ES384, PS256, RS256, RS384, RS512
Documentation References (1)
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.
Documentation References (1)
Optional JWS key ID header.
Documentation References (1)
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
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
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
Documentation References (1)
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
Documentation References (1)
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.
Documentation References (1)
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)
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
Documentation References (1)
may_act claim validation mode. When omitted, may_act is not enforced.
Validation
EnumRequired
CEL expression that extracts the credential from the request.
Validation
Min length1
Max length16384
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.
RFC 8693 delegation actor token. TokenExchange grant only.
Validation
Rule
mayAct Required requires tokenType Jwt
Extra form params; values are CEL expressions over the incoming request.
Parameters set by the gateway itself (for example
Parameters set by the gateway itself (for example
scope, audience, or client_id) may not be overridden.Validation
Max properties64
Rule
additionalParams may not override a reserved OAuth parameter
Documentation References (1)
Audiences sent to the token endpoint.
Validation
Min items1
Max items64
Documentation References (6)
API group of the referent; empty selects 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 referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Name of the referent
Validation
Min length1
Max length253
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Client ID sent to the token endpoint.
Validation
Min length1
Documentation References (5)
Client authentication method. Defaults to ClientSecretBasic.
Validation
EnumClientSecretBasic, ClientSecretPost, PrivateKeyJwt
Documentation References (5)
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (5)
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
Documentation References (5)
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
Documentation References (5)
RFC followed by the request. Defaults to TokenExchange (RFC 8693).
Validation
EnumJwtBearer, TokenExchange
Documentation References (6)
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
Token endpoint path; defaults to "/". Must start with "/".
Validation
Pattern^/
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
Documentation References (1)
Scopes sent to the token endpoint.
Validation
Min items1
Max items64
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.
Documentation References (1)
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.
Documentation References (1)
HTTP(S) endpoint for this policy; mutually exclusive with
backend TLS. The host is used as-is, so a Service hostname gets no Service policies or load
balancing.
backendRef. https enablesbackend TLS. The host is used as-is, so a Service hostname gets no Service policies or load
balancing.
Validation
Pattern^https?://[^/?#@]+(/[^?#]*)?$
Min length1
Max length1024
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
Documentation References (6)
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)
Name of the referenced credential
Validation
Min length1
Max length253
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
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 (14)
Action for the rule's expressions. Any matching
match. If any
Prefer
Deny rejects, and every Require mustmatch. If any
Allow expressions exist, at least one must match. Defaults to Allow.Prefer
Allow or Require because evaluation errors in Deny expressions fail to deny.Validation
EnumAllow, Deny, Require
Documentation References (1)
CEL expressions, each evaluated independently with this rule's
applies the action; for
action. For Allow and Deny, any single matching expressionapplies the action; for
Require, every expression must match.Validation
Min items1
Max items256
Documentation References (1)
CEL expressions evaluated for this authorization rule.
Documentation References (1)
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. It runs before backend
authentication and before request modifications from
backend policies, such as URL rewrites, header modifiers, and transformations.
Unlike traffic authorization, this policy is evaluated against the request
associated with the selected destination backend. It runs before backend
authentication and before request modifications from
backendRef filters andbackend policies, such as URL rewrites, header modifiers, and transformations.
Documentation References (1)
Name of the referent
Validation
Min length1
Max length253
Documentation References (1)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (1)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (1)
Ordered list of CEL expressions evaluated against the request
to construct the cache key.
to construct the cache key.
Validation
Min items1
Max items16
Documentation References (1)
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
Documentation References (1)
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
Documentation References (1)
Caches authorization results. Include every request property used in the authorization
decision in
errors or unsupported values, the gateway calls the authorization service and bypasses the cache.
decision in
key to prevent one request from reusing another's result. On key evaluationerrors or unsupported values, the gateway calls the authorization service and bypasses the cache.
Documentation References (1)
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
Documentation References (1)
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
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.
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 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.
Documentation References (1)
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
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.
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
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 (2)
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
Documentation References (2)
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
Documentation References (1)
Settings for evicting unhealthy backends.
Documentation References (2)
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
Documentation References (2)
Settings for passive and active health checking.
Documentation References (2)
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
Documentation References (7)
Settings for managing HTTP requests to the backend
Documentation References (7)
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
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
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
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 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
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.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.
Action for the rule's expressions. Any matching
match. If any
Prefer
Deny rejects, and every Require mustmatch. If any
Allow expressions exist, at least one must match. Defaults to Allow.Prefer
Allow or Require because evaluation errors in Deny expressions fail to deny.Validation
EnumAllow, Deny, Require
Documentation References (1)
CEL expressions, each evaluated independently with this rule's
applies the action; for
action. For Allow and Deny, any single matching expressionapplies the action; for
Require, every expression must match.Validation
Min items1
Max items256
Documentation References (1)
CEL expressions evaluated for this authorization rule.
Documentation References (1)
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.
Documentation References (1)
Condition gating the action; absent means always.
Validation
Min length1
Max length16384
Documentation References (2)
Reject with this message.
Validation
Min length1
Max length4096
Documentation References (2)
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
Documentation References (1)
In-process guardrail driven by CEL expressions.
Validation
Rule
exactly one of the fields in [reject transform] must be set
Documentation References (2)
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'
Documentation References (3)
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
Name of the referent
Validation
Min length1
Max length253
Documentation References (2)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (2)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (2)
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
Documentation References (2)
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
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
Documentation References (2)
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
Documentation References (3)
Remote and in-process CEL policy processors for MCP requests and responses.
Documentation References (3)
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
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)
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)
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
Documentation References (2)
Time between keepalive probes. 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
Documentation References (1)
Unanswered probes before the connection is dropped. Defaults to 9.
Validation
Formatint32
Minimum1
Maximum64
Documentation References (1)
Idle time before keepalive probes start. 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
Documentation References (1)
Settings for enabling TCP keepalives on the
connection.
connection.
Documentation References (1)
Settings for managing TCP connections to the backend
Documentation References (2)
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
Documentation References (1)
Kind of the referenced CA certificate source. Omitted defaults to ConfigMap.
Validation
EnumConfigMap, Secret
Documentation References (1)
Name of the referenced CA certificate source.
Validation
Min length1
Max length253
Documentation References (1)
Trust roots for
allowed with a
its workload trust bundle.
Inline TLS; they take precedence over the mTLS credential's ca.crt. Notallowed with a
File credential (use file.root). Defaults to system roots. SPIFFE usesits workload trust bundle.
Validation
Max items1
List typeatomic
Documentation References (1)
Path to the client certificate file.
Validation
Min length1
Max length1024
Documentation References (1)
Path to the client certificate's private key file.
Validation
Min length1
Max length1024
Documentation References (1)
CA bundle file used to verify the backend. Defaults to the system's trusted certificates.
Validation
Min length1
Max length1024
Documentation References (1)
Paths on the agentgateway pod, which must be allowed by
fileAccess. Required when kind isFile.Documentation References (1)
Kind of the referenced credential; empty defaults to
Secret. File reads from file.Documentation References (1)
Name of the referenced credential. Required unless
kind is File.Validation
Min length1
Max length253
Documentation References (1)
Client identity for
(a Secret by default), or use pod files with kind
Inline mutual TLS. Supply tls.crt and tls.key in the credential(a Secret by default), or use pod files with kind
File. Omitting this reference inInline mode sends no client certificate. SPIFFE supplies its own identity.Validation
Max items1
List typeatomic
Documentation References (2)
SNI for the TLS handshake. Defaults to the destination 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
SANs accepted for the server certificate; defaults to the destination hostname.
With SPIFFE, accepts DNS names or SPIFFE IDs; only SPIFFE IDs select federated bundles.
If omitted with SPIFFE, accepts any SVID in the local trust domain.
With SPIFFE, accepts DNS names or SPIFFE IDs; only SPIFFE IDs select federated bundles.
If omitted with SPIFFE, accepts any SVID in the local trust domain.
Validation
Min items1
Max items16
Documentation References (1)
Originates TLS to the backend. An empty object uses system trust roots and the destination
as SNI.
as SNI.
Validation
Rule
insecureSkipVerify All and caCertificateRefs may not be set together
Rule
insecureSkipVerify and verifySubjectAltNames may not be set together
Rule
caCertificateRefs may not be combined with a File mtlsCertificateRef; use file.root instead
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
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
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
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
Request transformation settings.
Validation
Rule
at least one of the fields in [add body metadata remove set] must be set
Response transformation settings.
Validation
Rule
at least one of the fields in [add body metadata remove set] must be set
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
API group of the referent; empty selects 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 (1)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (1)
Name of the referent
Validation
Min length1
Max length253
Documentation References (1)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (1)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (1)
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)
Connection policies for destination backends. For fields such as TLS, precedence from
highest to lowest is route rule, route, Service port or backend section (AI provider or MCP
target), Service or backend, listener, then gateway. Authorization rules accumulate and AI
settings have their own merge rules. Use
Service port, or AI provider or MCP target name.
highest to lowest is route rule, route, Service port or backend section (AI provider or MCP
target), Service or backend, listener, then gateway. Authorization rules accumulate and AI
settings have their own merge rules. Use
sectionName for a listener, route rule, numericService port, or AI provider or MCP target name.
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 (46)
A Common Expression Language (CEL) expression.
Validation
Min length1
Max length16384
No description for this field.
Validation
Min length1
Max length256
Additional key-value pairs to add to each entry.
The value is a CEL expression. If the CEL expression fails to evaluate,
the pair will be excluded.
The value is a CEL expression. If the CEL expression fails to evaluate,
the pair will be excluded.
Validation
Min items1
Default fields to remove. For example,
http.method.Validation
Min items1
Max items32
Customizations to the key-value pairs that are
logged.
logged.
Validation
Rule
at least one of the fields in [add remove] must be set
CEL expression used to filter logs. A log
will only be emitted if the expression evaluates to
will only be emitted if the expression evaluates to
true.Validation
Min length1
Max length16384
Documentation References (2)
A Common Expression Language (CEL) expression.
Validation
Min length1
Max length16384
Documentation References (2)
No description for this field.
Validation
Min length1
Max length256
Documentation References (2)
Additional key-value pairs to add to each entry.
The value is a CEL expression. If the CEL expression fails to evaluate,
the pair will be excluded.
The value is a CEL expression. If the CEL expression fails to evaluate,
the pair will be excluded.
Validation
Min items1
Documentation References (2)
Default fields to remove. For example,
http.method.Validation
Min items1
Max items32
Documentation References (1)
Customizations to the key-value pairs exported over OTLP.
If unset, the parent access log attributes are used.
If unset, the parent access log attributes are used.
Validation
Rule
at least one of the fields in [add remove] must be set
Documentation References (2)
API group of the referent; empty selects 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 (1)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (1)
Name of the referent
Validation
Min length1
Max length253
Namespace of the referent; defaults to the local namespace. Cross-namespace references require a ReferenceGrant in the target namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
CEL expression used to filter OTLP logs. A log
will only be exported if the expression evaluates to
If unset, the parent access log filter is used.
will only be exported if the expression evaluates to
true.If unset, the parent access log filter is used.
Validation
Min length1
Max length16384
Documentation References (1)
OTLP/HTTP path to use. This is only applicable
when
when
protocol is HTTP. If unset, this defaults to /v1/logs.Validation
Min length1
Max length1024
OTLP protocol variant to use. Defaults to
GRPC.Validation
EnumGRPC, HTTP
OTLP access log export to an
OpenTelemetry-compatible backend.
OpenTelemetry-compatible backend.
Validation
Rule
path is only valid with protocol HTTP
Rule
path must start with /
Rule
url path is only valid with protocol HTTP
Rule
exactly one of the fields in [backendRef url] must be set
Preset selects the built-in field set for standard output access logs.
When unset, legacy human-oriented fields are used.
When unset, legacy human-oriented fields are used.
Otel selects the OTel-aligned built-in HTTP field set.Validation
EnumOtel
Documentation References (1)
Access logging configuration.
Documentation References (9)
Whether downstream CONNECT requests are accepted.
Validation
EnumDeny, Route, Tunnel
Settings for downstream HTTP CONNECT handling.
If unset, CONNECT requests are rejected with Method Not Allowed.
Controls HTTP/1 request header name casing when encoding responses on the same connection.
This only applies to
HTTP/2 requests are always lower case.
This only applies to
HTTP/1. If a request is HTTP/2 in either the incoming or outgoing request, this will be ignored.HTTP/2 requests are always lower case.
Modifying the headers from other policies may result in the original case being lost.
Validation
EnumLowercase, Preserve
Timeout before an unused connection is
closed.
If unset, this defaults to 10 minutes.
closed.
If unset, this defaults to 10 minutes.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
http1IdleTimeout must be at least 1 second
Documentation References (1)
Maximum number of headers allowed
in
If unset, this defaults to 100.
in
HTTP/1.1 requests.If unset, this defaults to 100.
Validation
Formatint32
Minimum1
Maximum4096
Documentation References (1)
Initial window size for
connection-level flow control for received data.
connection-level flow control for received data.
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
Documentation References (1)
Maximum frame size to use.
If unset, this defaults to
If unset, this defaults to
16kb.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
http2FrameSize must be at least 16384 bytes
Rule
http2FrameSize must be at most 1677215 bytes
Rule
value must be at least 1 byte and fit within uint32
Documentation References (1)
Interval between
If unset, keepalive pings are not sent.
HTTP/2 keepalive pings.If unset, keepalive pings are not sent.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
http2KeepaliveInterval must be at least 1 second
Documentation References (1)
Time to wait for a response to an
Only applies when
HTTP/2 keepalive ping before the connection is closed.Only applies when
http2KeepaliveInterval is set.Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
http2KeepaliveTimeout must be at least 1 second
Documentation References (1)
Maximum aggregate size of decoded HTTP/2
request headers.
If unset, this defaults to
request headers.
If unset, this defaults to
16Ki.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
Initial window size for stream-level flow
control for received data.
control for received data.
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
Documentation References (1)
Maximum HTTP body size that will be buffered
into memory.
Bodies will only be buffered for policies which require buffering.
If unset, this defaults to
into memory.
Bodies will only be buffered for policies which require buffering.
If unset, this defaults to
2mb.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
Documentation References (1)
Maximum number of in-flight HTTP requests across this gateway/port.
This includes HTTP/1 requests and HTTP/2 streams. Requests over the limit
are rejected immediately with a 503 response. Unset means unlimited.
This includes HTTP/1 requests and HTTP/2 streams. Requests over the limit
are rejected immediately with a 503 response. Unset means unlimited.
Validation
Formatint32
Minimum1
Documentation References (1)
Maximum time a connection is allowed to remain open.
After this duration, the connection is gracefully closed after the current in-flight request completes.
Useful for ensuring even traffic distribution behind load balancers during scaling events.
After this duration, the connection is gracefully closed after the current in-flight request completes.
Useful for ensuring even traffic distribution behind load balancers during scaling events.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
maxConnectionDuration must be at least 1 second
normalize defines path normalization rules applied before route matching.The normalized path is used for routing, policies and the upstream request;
access logs keep the original path. Rules are applied in a fixed order
regardless of how they are listed: percent-decoding, then
MergeSlash,then
DotSegment.Malformed percent-encoding and
other than
%00 are rejected with 400 whenever any ruleother than
MergeSlash is set.MergeSlash collapses repeated slashes into one, treating \ as /.DotSegment resolves . and .. segments, treating %2E as ., \ as /,and ignoring parameters on dot segments (
..;x).DecodeUnreserved decodes percent-encoded unreserved characters (A-Z a-z 0-9 - . _ ~).RejectEscapedSlash rejects requests whose path contains %2F or %5C with 400.UnescapeSlash decodes %2F and %5C into /.Validation
Min items1
Max items5
List typeset
Rule
RejectEscapedSlash and UnescapeSlash are mutually exclusive
Documentation References (2)
Settings for managing incoming HTTP requests.
Validation
Rule
at least one of the fields in [http1HeaderCase http1IdleTimeout http1MaxHeaders http2ConnectionWindowSize http2FrameSize http2KeepaliveInterval http2KeepaliveTimeout http2MaxHeaderSize http2WindowSize maxBufferSize maxConcurrentRequests maxConnectionDuration normalize] must be set
A Common Expression Language (CEL) expression.
Validation
Min length1
Max length16384
Documentation References (1)
No description for this field.
Validation
Min length1
Max length256
Documentation References (1)
Additional key-value pairs to add as custom labels
to all Prometheus metrics. The value is a CEL expression evaluated
per-request. If the CEL expression fails to evaluate, the label value
is set to "unknown".
to all Prometheus metrics. The value is a CEL expression evaluated
per-request. If the CEL expression fails to evaluate, the label value
is set to "unknown".
WARNING: High-cardinality labels (e.g., per-user IDs) can significantly
increase Prometheus storage and memory usage. Prefer low-cardinality
dimensions like team or environment.
increase Prometheus storage and memory usage. Prefer low-cardinality
dimensions like team or environment.
Validation
Min items1
Max items16
List typemap
List map keysname
Documentation References (1)
Customizations to the labels that are
added to Prometheus metrics.
added to Prometheus metrics.
Validation
Rule
at least one of the fields in [add] must be set
Documentation References (1)
Custom Prometheus metric label configuration.
CEL expressions are evaluated per-request and added as labels to all
Prometheus metrics exposed by agentgateway.
CEL expressions are evaluated per-request and added as labels to all
Prometheus metrics exposed by agentgateway.
Documentation References (1)
CEL authorization on downstream network connections.
This runs before protocol handling and is intended for L4 access control,
for example using
for example using
source.address with cidr(...).containsIP(...).Documentation References (1)
Whether PROXY headers are required or optional.
If unset, this defaults to
Strict.Validation
EnumOptional, Strict
PROXY protocol version to accept.
If unset, this defaults to
V2.Validation
EnumAll, V1, V2
Settings for downstream PROXY protocol handling.
If configured, incoming connections may require a PROXY header before
normal protocol handling. This can also be configured to allow both
PROXY and non-PROXY traffic on the same listener.
normal protocol handling. This can also be configured to allow both
PROXY and non-PROXY traffic on the same listener.
Time between keepalive probes. 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
Documentation References (1)
Unanswered probes before the connection is dropped. Defaults to 9.
Validation
Formatint32
Minimum1
Maximum64
Documentation References (1)
Idle time before keepalive probes start. 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
Documentation References (1)
Settings for enabling TCP keepalives on the connection.
Documentation References (1)
Maximum number of active downstream connections on this gateway/port.
Connections over the limit are closed immediately. Unset means unlimited.
Connections over the limit are closed immediately. Unset means unlimited.
Validation
Formatint32
Minimum1
Documentation References (1)
Settings for managing incoming TCP connections.
Validation
Rule
at least one of the fields in [keepalive maxConnections] must be set
Documentation References (2)
ALPN protocols for the TLS handshake. Defaults to
["h2", "http/1.1"].Validation
Min items1
Max items16
Documentation References (1)
Cipher suites for a TLS listener.
The value is a comma-separated list of cipher suites, for example
Use this in the TLS options field of a TLS listener.
The value is a comma-separated list of cipher suites, for example
TLS13_AES_256_GCM_SHA384,TLS13_AES_128_GCM_SHA256.Use this in the TLS options field of a TLS listener.
Documentation References (1)
Deadline for a TLS handshake to
complete. If unset, this defaults to
complete. If unset, this defaults to
15s.Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
handshakeTimeout must be at least 100ms
Documentation References (1)
Ordered list of key exchange groups for a TLS listener.
For example:
For example:
X25519_MLKEM768,X25519.Maximum TLS version to support.
Validation
Enum1.2, 1.3
Documentation References (1)
Minimum TLS version to support.
Validation
Enum1.2, 1.3
Documentation References (1)
Settings for managing incoming TLS connections.
Validation
Rule
at least one of the fields in [alpnProtocols cipherSuites handshakeTimeout keyExchangeGroups maxProtocolVersion minProtocolVersion] must be set
Documentation References (1)
A Common Expression Language (CEL) expression.
Validation
Min length1
Max length16384
Documentation References (3)
No description for this field.
Validation
Min length1
Max length256
Documentation References (3)
Additional key-value pairs to add to each entry.
The value is a CEL expression. If the CEL expression fails to evaluate,
the pair will be excluded.
The value is a CEL expression. If the CEL expression fails to evaluate,
the pair will be excluded.
Validation
Min items1
Documentation References (3)
Default fields to remove. For example,
http.method.Validation
Min items1
Max items32
Documentation References (1)
Customizations to the key-value pairs that are
included in the trace.
included in the trace.
Validation
Rule
at least one of the fields in [add remove] must be set
Documentation References (3)
API group of the referent; empty selects 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 (2)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (2)
Name of the referent
Validation
Min length1
Max length253
Documentation References (9)
Namespace of the referent; defaults to the local namespace. Cross-namespace references require a ReferenceGrant in the target namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Documentation References (7)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (9)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (9)
Expression that determines the amount of client
sampling. Client sampling determines whether to initiate a new trace
span if the incoming request does have a trace already. This only
applies when that trace is sampled (
requests whose trace is not. This should
evaluate to a float between
sampling. Client sampling determines whether to initiate a new trace
span if the incoming request does have a trace already. This only
applies when that trace is sampled (
-01); use parentNotSampled forrequests whose trace is not. This should
evaluate to a float between
0.0 and 1.0, or a boolean (true orfalse). If unspecified, client sampling is 100% enabled.Validation
Min length1
Max length16384
Documentation References (3)
Expression that determines whether a sampled span is exported.
This uses keep semantics: spans are exported only when the expression
evaluates to
This uses keep semantics: spans are exported only when the expression
evaluates to
true. If unspecified, all sampled spans are exported.Validation
Min length1
Max length16384
Documentation References (2)
Expression that determines whether to trace a request that arrives with
a
asked for it not to be traced. When this is
anyway, and
This should evaluate to a float between
(
the request is not traced.
a
traceparent whose sampled flag is unset (-00), meaning the clientasked for it not to be traced. When this is
true the request is tracedanyway, and
-01 is sent upstream so downstream services trace it too.This should evaluate to a float between
0.0 and 1.0, or a boolean(
true or false). If unspecified, the client's choice is honored andthe request is not traced.
Only one of
applies to any given request; the incoming
randomSampling, clientSampling and parentNotSampledapplies to any given request; the incoming
traceparent decides which.Validation
Min length1
Max length16384
OTLP path to use. This is only applicable when
protocol is HTTP. If unset, this defaults to /v1/traces.Validation
Min length1
Max length1024
OTLP protocol variant to use. Defaults to
GRPC.Validation
EnumGRPC, HTTP
Documentation References (9)
Expression that determines the amount of random
sampling. Random sampling will initiate a new trace span if the incoming
request does not have a trace initiated already. This should evaluate to
a float between
unspecified, random sampling is disabled.
sampling. Random sampling will initiate a new trace span if the incoming
request does not have a trace initiated already. This should evaluate to
a float between
0.0 and 1.0, or a boolean (true or false). Ifunspecified, random sampling is disabled.
Validation
Min length1
Max length16384
Documentation References (8)
A Common Expression Language (CEL) expression.
Validation
Min length1
Max length16384
Documentation References (3)
No description for this field.
Validation
Min length1
Max length256
Documentation References (3)
Entity producing telemetry and resources
resources to be included in the trace.
resources to be included in the trace.
Documentation References (3)
OpenTelemetry tracing settings.
Validation
Rule
path is only valid with protocol HTTP
Rule
path must start with /
Rule
url path is only valid with protocol HTTP
Rule
exactly one of the fields in [backendRef url] must be set
Documentation References (9)
Settings for how to handle incoming traffic.
A frontend policy can only target a
Gateway. Listener andListenerSet are not valid targets.When multiple policies are selected for a given request, they are merged on a field-level basis, but not a deep
merge. For example, policy A sets
policy B.
merge. For example, policy A sets
tcp and tls, and policy B setstls; the effective policy would be tcp from policy A, and tls frompolicy B.
Validation
Rule
at least one of the fields in [accessLog connect http metrics networkAuthorization proxyProtocol tcp tls tracing] must be set
Documentation References (24)
Traffic policies only. With
these settings. With
still add other types.
Default (or unset), more-specific attachments can overridethese settings. With
Override, they cannot override the policy types set here, but canstill add other types.
Validation
EnumDefault, Override
Policy merge and conflict resolution strategy.
Strategy settings apply to the policy object as a whole. Individual strategy fields may
only be valid for specific policy kinds; for example, inheritance is only valid when this
policy contains traffic settings.
only be valid for specific policy kinds; for example, inheritance is only valid when this
policy contains traffic settings.
The API group of the target resource.
For Kubernetes Gateway API resources, the group is
For Kubernetes Gateway API resources, the group is
gateway.networking.k8s.io.Validation
Pattern^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Max length253
The API kind of the target resource, such as
Gateway or HTTPRoute.Validation
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
The name of the target resource.
Validation
Min length1
Max length253
The port of the target resource this policy applies to.
At most one of
Only valid on frontend policies targeting a
At most one of
sectionName or port may be set.Only valid on frontend policies targeting a
Gateway.Validation
Formatint32
Minimum1
Maximum65535
The named section of the target resource.
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
Target resources to attach the
policy to.
policy to.
Validation
Min items1
Max items16
List typeatomic
Rule
targetRefs may only reference Gateway, HTTPRoute, GRPCRoute, ListenerSet, Service, AgentgatewayBackend, or InferencePool resources
Rule
Only one Kind of targetRef can be set on one policy
Labels that must be present on each selected target resource.
The port of each selected target resource this policy applies to.
At most one of
Only valid on frontend policies targeting a
At most one of
sectionName or port may be set.Only valid on frontend policies targeting a
Gateway.Validation
Formatint32
Minimum1
Maximum65535
The named section of each selected target resource.
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
Target selectors used to select resources to attach the policy to.
Validation
Min items1
Max items16
Rule
targetRefs may only reference Gateway, HTTPRoute, GRPCRoute, ListenerSet, Service, AgentgatewayBackend, or InferencePool resources
Rule
Only one Kind of targetRef can be set on one policy
Labels that must be present on each selected ConfigMap.
Selects ConfigMaps holding API keys. Each entry requires a JSON object with
(
with conflicting metadata across the selected ConfigMaps.
keyHash(
sha256:<hex>) and optional metadata. Raw keys are rejected. Avoid duplicate digestswith conflicting metadata across the selected ConfigMaps.
No description for this field.
Validation
Min length1
Max length256
Documentation References (1)
No description for this field.
Documentation References (1)
CEL expression that extracts the credential from the request.
Validation
Min length1
Max length16384
Documentation References (1)
HTTP header name; HTTP/2 pseudo-headers (
:name) are not supportedValidation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
Documentation References (1)
Where API keys are read from.
If omitted, credentials are read from the
If omitted, credentials are read from the
Authorization header with the Bearer prefix.Validation
Rule
exactly one of the fields in [header queryParameter cookie expression] must be set
Documentation References (2)
Validation mode for API key authentication. Defaults to
Strict.Validation
EnumOptional, Permissive, Strict
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
Credential (a
Each value is the key itself, or a JSON object with
optional
Secret by default) holding API keys, one per entry with an arbitrary name.Each value is the key itself, or a JSON object with
key or keyHash (sha256:<hex>) andoptional
metadata usable by other policies, for example apiKey.group. For many keys, usesecretSelector or configMapSelector.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (1)
Labels that must be present on each selected Secret.
Documentation References (1)
Selects Secrets holding API keys in the same format as
credentials with conflicting metadata across the selected Secrets.
secretRef. Avoid duplicatecredentials with conflicting metadata across the selected Secrets.
Documentation References (1)
Authenticates users based on a configured API
key.
key.
Validation
Rule
exactly one of the fields in [secretRef secretSelector configMapSelector] must be set
Action for the rule's expressions. Any matching
match. If any
Prefer
Deny rejects, and every Require mustmatch. If any
Allow expressions exist, at least one must match. Defaults to Allow.Prefer
Allow or Require because evaluation errors in Deny expressions fail to deny.Validation
EnumAllow, Deny, Require
Documentation References (13)
CEL expressions, each evaluated independently with this rule's
applies the action; for
action. For Allow and Deny, any single matching expressionapplies the action; for
Require, every expression must match.Validation
Min items1
Max items256
Documentation References (13)
CEL expressions evaluated for this authorization rule.
Documentation References (13)
Access rules based on roles and
permissions.
If multiple authorization rules are applied across different policies, at the same or different attachment points,
all rules are merged.
permissions.
If multiple authorization rules are applied across different policies, at the same or different attachment points,
all rules are merged.
Documentation References (13)
Where Basic credentials are read from.
If omitted, credentials are read from the
If omitted, credentials are read from the
Authorization header with the Basic prefix.Validation
Rule
exactly one of the fields in [header queryParameter cookie expression] must be set
Validation mode for basic authentication. Defaults to
Strict.Validation
EnumOptional, Strict
realm value to return in the WWW-Authenticateheader for failed authentication requests. If unset,
Restricted willbe used.
Name of the referenced credential
Validation
Min length1
Max length253
Documentation References (1)
Credential (a
Secret by default) holding a complete .htaccess file under .htaccess, orsecretRef.key. Passwords must be hashed (MD5, bcrypt, crypt, or SHA-1), for example withhtpasswd.Validation
Map typeatomic
Rule
custom credential refs must set both group and kind
Documentation References (1)
Inline
crypt, or SHA-1), for example with
htpasswd lines (user:hash) to accept. Passwords must be hashed (MD5, bcrypt,crypt, or SHA-1), for example with
htpasswd.Validation
Min items1
Max items256
Authenticates users based on the
authentication scheme (RFC 7617), where a username and password are
encoded in the request.
Basicauthentication scheme (RFC 7617), where a username and password are
encoded in the request.
Validation
Rule
exactly one of the fields in [users secretRef] must be set
Documentation References (1)
Behavior when the request or response body exceeds the buffer limit.
If unset, defaults to FailClosed, returning 413 for oversized requests and 502 for oversized responses.
If unset, defaults to FailClosed, returning 413 for oversized requests and 502 for oversized responses.
Validation
EnumFailClosed, FailOpen
Maximum number of bytes to buffer from the request or response body.
If unset, defaults to the global proxy setting, which defaults to 2Mi.
If unset, defaults to the global proxy setting, which defaults to 2Mi.
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
Documentation References (1)
Request body buffering settings.
Documentation References (1)
Response body buffering settings.
Documentation References (1)
Buffers request and response bodies. Buffered bodies are accumulated in memory
by the proxy until completion before being forwarded. This changes the proxies default behavior, which streams bodies.
by the proxy until completion before being forwarded. This changes the proxies default behavior, which streams bodies.
Warning: large bodies can lead to excessive memory usage in the proxy. Utilize with care, or with strict limits.
Validation
Rule
at least one of the fields in [request response] must be set
Documentation References (1)
Algorithms decoded from request bodies. Bodies using any other (or more than one) encoding
are forwarded untouched.
If unset, defaults to Gzip.
are forwarded untouched.
If unset, defaults to Gzip.
Validation
Min items1
Max items4
List typeset
Decompresses request bodies before route-level body-aware policies (rate limiting,
ext_proc, transformations) run and before forwarding to the backend. Authentication,
authorization and gateway-phase policies run first and observe the encoded body.
ext_proc, transformations) run and before forwarding to the backend. Authentication,
authorization and gateway-phase policies run first and observe the encoded body.
Documentation References (1)
Compression applied to requests received from the client.
Validation
Rule
at least one of the fields in [decompress] must be set
Documentation References (1)
Algorithms that may be negotiated with the client's Accept-Encoding header.
When the client accepts several equally, the first listed wins.
If unset, defaults to Gzip.
When the client accepts several equally, the first listed wins.
If unset, defaults to Gzip.
Validation
Min items1
Max items4
List typeset
Documentation References (1)
Compresses response bodies when the client advertises support in Accept-Encoding.
Only textual content types (JSON, HTML, CSS, JavaScript, XML, plain text, SVG) with a known
length of at least 32 bytes are compressed, so streamed responses are sent as-is.
Responses that are already encoded, partial (
are never compressed.
Only textual content types (JSON, HTML, CSS, JavaScript, XML, plain text, SVG) with a known
length of at least 32 bytes are compressed, so streamed responses are sent as-is.
Responses that are already encoded, partial (
Content-Range), or marked no-transformare never compressed.
Documentation References (1)
Compression applied to responses sent to the client.
Validation
Rule
at least one of the fields in [compress] must be set
Documentation References (1)
Compresses responses sent to the client and decompresses request bodies before forwarding.
Validation
Rule
at least one of the fields in [request response] must be set
Documentation References (1)
Whether cross-origin requests may include credentials (
Access-Control-Allow-Credentials: true)Request headers allowed when accessing the resource, or
* for all. Sets Access-Control-Allow-Headers. Support: ExtendedValidation
Max items64
List typeset
Rule
AllowHeaders cannot contain '*' alongside other methods
Documentation References (1)
HTTP methods allowed for the resource, or
* for all. CORS-safelisted methods (GET, HEAD, POST) are always allowed. Sets Access-Control-Allow-Methods. Support: ExtendedValidation
Max items9
List typeset
Rule
AllowMethods cannot contain '*' alongside other methods
Documentation References (1)
Origins allowed to share the response, each as
<scheme>://<host>(:<port>); the host may use the * wildcard, and a bare * allows all origins. Sets Access-Control-Allow-Origin. When credentials are allowed, a specific origin is echoed instead of *. Support: ExtendedValidation
Max items64
List typeset
Rule
AllowOrigins cannot contain '*' alongside other origins
Documentation References (1)
Response headers exposed to client scripts, or
* for all. Sets Access-Control-Expose-Headers. Support: ExtendedValidation
Max items64
List typeset
Seconds a client may cache preflight results (
Access-Control-Max-Age). Defaults to 5Validation
Default5
Formatint32
Minimum1
Documentation References (1)
CORS configuration for the policy.
Validation
Preserve unknown fieldstrue
Documentation References (1)
Additional source origins that will be
allowed in addition to the destination origin. The
a scheme and a host, with an optional port, and takes the form
allowed in addition to the destination origin. The
Origin consists ofa scheme and a host, with an optional port, and takes the form
<scheme>://<host>(:<port>).Validation
Min items1
Max items16
Documentation References (1)
Cross-Site Request Forgery (CSRF) policy for this traffic policy.
The CSRF policy has the following behavior:
* Safe methods (
* Requests without
be same-origin or non-browser requests and are allowed.
* Otherwise, the
comparing the
* Safe methods (
GET, HEAD, OPTIONS) are automatically allowed.* Requests without
Sec-Fetch-Site or Origin headers are assumed tobe same-origin or non-browser requests and are allowed.
* Otherwise, the
Sec-Fetch-Site header is checked, with a fallback tocomparing the
Origin header to the Host header.Documentation References (1)
Latency to inject before forwarding the request to the backend. Either a duration string such
as
for probabilistic delay, or
no delay.
as
2s, or a CEL expression evaluated against the request that returns a duration (e.g.duration("500ms")) or a number interpreted as milliseconds (e.g. random() < 0.1 ? 500 : 0for probabilistic delay, or
int(random() * 500) for jitter). A non-positive result injectsno delay.
The injected delay counts against the request timeout.
Validation
Min length1
Max length16384
Documentation References (1)
Injects artificial latency before forwarding requests, for
fault-injection testing.
fault-injection testing.
Documentation References (1)
Content to return in the HTTP response body.
The maximum length of the body is restricted to prevent excessively large responses.
If this field is omitted, no body is included in the response.
The maximum length of the body is restricted to prevent excessively large responses.
If this field is omitted, no body is included in the response.
Validation
Min length1
Max length4096
Documentation References (1)
CEL expression that produces the HTTP response body.
Strings and bytes are written directly; other values are serialized as JSON.
If this field is omitted, no expression body is included in the response.
Strings and bytes are written directly; other values are serialized as JSON.
If this field is omitted, no expression body is included in the response.
Validation
Min length1
Max length16384
CEL expression that must evaluate to true for this policy to execute.
Validation
Min length1
Max length16384
Documentation References (1)
Content to return in the HTTP response body.
The maximum length of the body is restricted to prevent excessively large responses.
If this field is omitted, no body is included in the response.
The maximum length of the body is restricted to prevent excessively large responses.
If this field is omitted, no body is included in the response.
Validation
Min length1
Max length4096
Documentation References (1)
The name of the header to set.
Validation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
Response headers to set on the direct response.
Validation
Min items1
Max items16
List typemap
List map keysname
HTTP status code to return.
Validation
Formatint32
Minimum200
Maximum599
Documentation References (1)
Policy to apply when the condition matches.
Validation
Rule
status is required
Rule
body and bodyExpression may not both be set
Documentation References (1)
Conditional policy execution. Set this or the top-level directResponse fields.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
Validation
Min items1
Max items16
Rule
conditional entries without condition must be last
Documentation References (1)
HTTP status code to return.
Validation
Formatint32
Minimum200
Maximum599
Documentation References (1)
Sends a direct response to the
client.
client.
Validation
Rule
body and bodyExpression may not both be set
Rule
conditional cannot be set with any other field
Rule
status: Required value
Documentation References (2)
API group of the referent; empty selects 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 (1)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (1)
Name of the referent
Validation
Min length1
Max length253
Namespace of the referent; defaults to the local namespace. Cross-namespace references require a ReferenceGrant in the target namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Documentation References (2)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (2)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Name of the referent
Validation
Min length1
Max length253
Documentation References (1)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (1)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (1)
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
Caches authorization results. Include every request property used in the authorization
decision in
errors or unsupported values, the gateway calls the authorization service and bypasses the cache.
decision in
key to prevent one request from reusing another's result. On key evaluationerrors or unsupported values, the gateway calls the authorization service and bypasses the cache.
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
Documentation References (1)
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.
Documentation References (1)
Policy to apply when the condition matches.
Validation
Rule
exactly one of backendRef or url is required
Rule
exactly one of the fields in [grpc http] 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
Documentation References (1)
Conditional policy execution. Set this or the top-level extAuth fields.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
Validation
Min items1
Max items16
Rule
conditional entries without condition must be last
Documentation References (1)
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
Documentation References (1)
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
Documentation References (2)
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.
Documentation References (2)
External authentication configuration for the policy.
This selects the external server to send requests to for authentication.
This selects the external server to send requests to for authentication.
An extAuth policy can be conditionally set by nesting configuration under the
conditional field.Validation
Rule
exactly one of backendRef or url must be set unless conditional is set
Rule
exactly one of the fields in [grpc http] 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
Rule
conditional cannot be set with any other field
Name of the referent
Validation
Min length1
Max length253
Documentation References (1)
Namespace of the referent; defaults to the local namespace. Cross-namespace references require a ReferenceGrant in the target namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Documentation References (1)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (1)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (1)
CEL expression that must evaluate to true for this policy to execute.
Validation
Min length1
Max length16384
Documentation References (2)
Name of the referent
Validation
Min length1
Max length253
Documentation References (2)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (2)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (2)
Behavior when the external processor is unavailable or returns an error.
"FailOpen" allows the request to continue, as long as the request body has not
been sent (or started streaming) to the ext_proc. Once the request body has
started streaming to the ext_proc, the request will fail closed on error.
"FailClosed" (default) rejects the request on any failure.
"FailOpen" allows the request to continue, as long as the request body has not
been sent (or started streaming) to the ext_proc. Once the request body has
started streaming to the ext_proc, the request will fail closed on error.
"FailClosed" (default) rejects the request on any failure.
Validation
EnumFailClosed, FailOpen
Metadata to send to the external processor in the
Keyed by metadata namespace, then by key within that namespace; values are
CEL expressions evaluated per request.
metadata_context.filter_metadata field of the ProcessingRequest.Keyed by metadata namespace, then by key within that namespace; values are
CEL expressions evaluated per request.
Validation
Max properties64
Allows ext_proc
subsequent request/response processing phases for this exchange. Defaults to
mode_override values from matching header responses to updatesubsequent request/response processing phases for this exchange. Defaults to
false.How request bodies are sent to the external processor.
Defaults to
Defaults to
FullDuplexStreamed.Validation
EnumBuffered, BufferedPartial, FullDuplexStreamed, None
Documentation References (1)
Whether request headers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
Whether request trailers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
How response bodies are sent to the external processor.
Defaults to
Defaults to
FullDuplexStreamed.Validation
EnumBuffered, BufferedPartial, FullDuplexStreamed, None
Documentation References (1)
Whether response headers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
Whether response trailers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
How request and response phases are sent to ext_proc.
Documentation References (1)
Request attributes to send to the external processor in the request
evaluated per request.
attributes field of the ProcessingRequest. Values are CEL expressionsevaluated per request.
Validation
Max properties64
Response attributes to send to the external processor in the response
evaluated per response.
attributes field of the ProcessingRequest. Values are CEL expressionsevaluated per response.
Validation
Max properties64
Policy to apply when the condition matches.
Validation
Rule
exactly one of backendRef or url is required
Rule
url must not include a path
Documentation References (2)
Conditional policy execution. Set this or the top-level extProc fields.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
Validation
Min items1
Max items16
Rule
conditional entries without condition must be last
Documentation References (2)
Allows ext_proc
subsequent request/response processing phases for this exchange. Defaults to
mode_override values from matching header responses to updatesubsequent request/response processing phases for this exchange. Defaults to
false.Documentation References (1)
Whether request headers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
Documentation References (1)
Whether request trailers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
Documentation References (1)
Whether response headers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
Documentation References (1)
Whether response trailers are sent to the external processor.
Defaults to
Defaults to
Send.Validation
EnumSend, Skip
Documentation References (1)
External processing configuration for the policy.
Validation
Rule
exactly one of backendRef or url must be set unless conditional is set
Rule
url must not include a path
Rule
conditional cannot be set with any other field
Documentation References (2)
Headers to add; values are appended to any existing values of the same header
Validation
Max items16
List typemap
List map keysname
Header names to remove, case-insensitive
Validation
Max items16
List typeset
Headers to set, replacing any existing values
Validation
Max items16
List typemap
List map keysname
Header changes to apply before forwarding a request.
Header changes to apply before returning a response.
Request and response header modification policy.
Validation
Rule
at least one of the fields in [request response] must be set
Hostname rewrite mode.
The following may be specified:
*
*
will be passed through.
*
Auto: automatically set the Host header based on the destination.*
None: do not rewrite the Host header. The original Host headerwill be passed through.
This setting defaults to
backends.
Auto when connecting to hostname-basedBackend types, and None otherwise, for Service or IP-basedbackends.
Validation
EnumAuto, None
Documentation References (1)
How to rewrite the
Host header for requests.If the
this setting is ignored.
HTTPRoute urlRewrite filter already specifies a host rewrite,this setting is ignored.
Documentation References (1)
HTTP header name; HTTP/2 pseudo-headers (
:name) are not supportedValidation
Pattern^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$
Min length1
Max length256
Documentation References (1)
No description for this field.
Documentation References (1)
No description for this field.
Validation
Min length1
Max length256
Documentation References (1)
Where JWT credentials are read from.
If omitted, credentials are read from the
If omitted, credentials are read from the
Authorization header with the Bearer prefix.Validation
Rule
exactly one of the fields in [header queryParameter cookie expression] must be set
Documentation References (1)
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.
Identity provider to use for MCP authentication flows.
Validation
EnumAuth0, Authentik, Descope, Entra, Keycloak, Okta
Metadata to use for MCP resources,
served at the MCP OAuth metadata endpoints.
served at the MCP OAuth metadata endpoints.
Enables MCP OAuth metadata endpoint handling
and MCP-specific authentication behavior on top of standard JWT validation.
When set, the gateway will serve the MCP OAuth metadata discovery endpoints.
and MCP-specific authentication behavior on top of standard JWT validation.
When set, the gateway will serve the MCP OAuth metadata discovery endpoints.
Validation mode for JWT authentication. Defaults to
Strict.Validation
EnumOptional, Permissive, Strict
Documentation References (13)
Keeps a successfully validated JWT in its original location. By default, the gateway removes
the JWT after validation. When the token only needs to be forwarded to the selected backend,
prefer
the JWT after validation. When the token only needs to be forwarded to the selected backend,
prefer
backendAuth.passthrough so it is not exposed to other policies in the request path.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
Documentation References (10)
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
Documentation References (14)
Inline JSON Web Key Set used to validate the
signature of the JWT.
signature of the JWT.
Validation
Min length2
Max length65536
Documentation References (3)
API group of the referent; empty selects 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 (8)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (10)
Name of the referent
Validation
Min length1
Max length253
Documentation References (10)
Namespace of the referent; defaults to the local namespace. Cross-namespace references require a ReferenceGrant in the target namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Documentation References (10)
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Documentation References (10)
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
Documentation References (10)
HTTP(S) endpoint for this policy; mutually exclusive with
backend TLS. The host is used as-is, so a Service hostname gets no Service policies or load
balancing.
backendRef. https enablesbackend TLS. The host is used as-is, so a Service hostname gets no Service policies or load
balancing.
Validation
Pattern^https?://[^/?#@]+(/[^?#]*)?$
Min length1
Max length1024
Documentation References (1)
How to reach the JSON Web Key Set from a remote
address.
address.
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
Documentation References (11)
JSON Web Key Set used to validate the signature of the
JWT.
JWT.
Validation
Rule
exactly one of the fields in [remote inline] must be set
Documentation References (14)
No description for this field.
Validation
Min items1
Max items64
Documentation References (14)
Authenticates users based on JWT tokens.
Validation
Rule
jwtAuthentication.mcp requires exactly one provider
Rule
jwtAuthentication.mcp requires mode Strict
Documentation References (14)
When to apply traffic policies.
selection and requires a Gateway or ListenerSet target. Use
Rules merge independently within each phase.
PostRouting is the default. PreRouting runs before routeselection and requires a Gateway or ListenerSet target. Use
sectionName for one listener.Rules merge independently within each phase.
Validation
EnumPostRouting, PreRouting
CEL expression for the request's cost. Defaults to 1 for
for
unavailable for streaming requests.
Requests and the total token countfor
Tokens. Tokens costs are evaluated after the request completes; response isunavailable for streaming requests.
Validation
Min length1
Max length16384
Common Expression Language (
defines the value for the descriptor.
CEL) expression thatdefines the value for the descriptor.
For example, to rate limit based on the Client IP:
source.address.See https://agentgateway.dev/docs/standalone/latest/reference/cel/ for more info.
Validation
Min length1
Max length16384
Name of the descriptor.
Validation
Min length1
Max length64
Individual components that make up this descriptor.
Validation
Min items1
Max items16
Common Expression Language (
limit override for this descriptor. The expression must evaluate to an
object containing
CEL) expression that returns a dynamiclimit override for this descriptor. The expression must evaluate to an
object containing
unit and requestsPerUnit, for example{"unit":"minute","requestsPerUnit":5}.See https://agentgateway.dev/docs/standalone/latest/reference/cel/ for more info.
Validation
Min length1
Max length16384
Cost unit. If unspecified,
Requests is used.Validation
EnumRequests, Tokens
Dimensions for rate limiting. These values are
passed to the rate limit service which applies configured limits based
on them. Each descriptor represents a single rate limit rule with one or
more entries.
passed to the rate limit service which applies configured limits based
on them. Each descriptor represents a single rate limit rule with one or
more entries.
Validation
Min items1
Max items16
Domain under which this limit should apply.
This is an arbitrary string that enables a rate limit server to distinguish between different applications.
This is an arbitrary string that enables a rate limit server to distinguish between different applications.
Validation
Min length1
Max length256
Behavior when the remote rate limit service is
unavailable or returns an error.
unavailable or returns an error.
FailOpen allows the request to continue.FailClosed (default) denies the request.Validation
EnumFailClosed, FailOpen
Global rate limiting policy using an external service.
Validation
Rule
url must not include a path
Rule
exactly one of the fields in [backendRef url] must be set
Allowance of requests above the request-per-unit
that should be allowed within a short period of time.
that should be allowed within a short period of time.
Validation
Formatint32
Minimum0
CEL expression selecting the bucket the request counts against, for example
per-user limit or
the limit above. Requests without a value, or whose expression cannot be evaluated, share one
bucket. When unset, all requests share one bucket. Each proxy instance keeps a bounded number
of buckets per rule and drops the least used ones.
jwt.sub for aper-user limit or
jwt.team for a per-team limit. Each distinct value gets its own bucket withthe limit above. Requests without a value, or whose expression cannot be evaluated, share one
bucket. When unset, all requests share one bucket. Each proxy instance keeps a bounded number
of buckets per rule and drops the least used ones.
Validation
Min length1
Max length16384
Number of HTTP requests per unit of time that
are allowed. Requests exceeding this limit will fail with a
error.
are allowed. Requests exceeding this limit will fail with a
429error.
Validation
Formatint32
Minimum1
Documentation References (1)
Number of LLM tokens per unit of time that are
allowed. Requests exceeding this limit will fail with a
allowed. Requests exceeding this limit will fail with a
429 error.Both input and output tokens are counted. However, token counts are not known until the request completes. As a
result, token-based rate limits will apply to future requests only.
result, token-based rate limits will apply to future requests only.
Validation
Formatint32
Minimum1
Unit of time for the limit.
Validation
EnumHours, Minutes, Seconds
Documentation References (1)
Local rate limiting policy.
Validation
Min items1
Max items16
Documentation References (1)
Policy to apply when the condition matches.
Validation
Rule
at least one of the fields in [global local] must be set
Documentation References (1)
Conditional policy execution. Set this or the top-level rateLimit fields.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
Validation
Min items1
Max items16
Rule
conditional entries without condition must be last
Documentation References (1)
Kind of the referent. Defaults to
ServiceValidation
DefaultService
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Documentation References (2)
Name of the referent
Validation
Min length1
Max length253
Namespace of the referent; defaults to the local namespace. Cross-namespace references require a ReferenceGrant in the target namespace
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Documentation References (2)
Destination port; required when the referent is a
ServiceValidation
Formatint32
Minimum1
Maximum65535
Backend for this policy; mutually exclusive with
url.Validation
Rule
Must have port for Service reference
Common Expression Language (
defines the value for the descriptor.
CEL) expression thatdefines the value for the descriptor.
For example, to rate limit based on the Client IP:
source.address.See https://agentgateway.dev/docs/standalone/latest/reference/cel/ for more info.
Validation
Min length1
Max length16384
Name of the descriptor.
Validation
Min length1
Max length64
Individual components that make up this descriptor.
Validation
Min items1
Max items16
Common Expression Language (
limit override for this descriptor. The expression must evaluate to an
object containing
CEL) expression that returns a dynamiclimit override for this descriptor. The expression must evaluate to an
object containing
unit and requestsPerUnit, for example{"unit":"minute","requestsPerUnit":5}.See https://agentgateway.dev/docs/standalone/latest/reference/cel/ for more info.
Validation
Min length1
Max length16384
Documentation References (1)
Cost unit. If unspecified,
Requests is used.Validation
EnumRequests, Tokens
Documentation References (2)
Dimensions for rate limiting. These values are
passed to the rate limit service which applies configured limits based
on them. Each descriptor represents a single rate limit rule with one or
more entries.
passed to the rate limit service which applies configured limits based
on them. Each descriptor represents a single rate limit rule with one or
more entries.
Validation
Min items1
Max items16
Domain under which this limit should apply.
This is an arbitrary string that enables a rate limit server to distinguish between different applications.
This is an arbitrary string that enables a rate limit server to distinguish between different applications.
Validation
Min length1
Max length256
Global rate limiting policy using an external service.
Validation
Rule
url must not include a path
Rule
exactly one of the fields in [backendRef url] must be set
Allowance of requests above the request-per-unit
that should be allowed within a short period of time.
that should be allowed within a short period of time.
Validation
Formatint32
Minimum0
CEL expression selecting the bucket the request counts against, for example
per-user limit or
the limit above. Requests without a value, or whose expression cannot be evaluated, share one
bucket. When unset, all requests share one bucket. Each proxy instance keeps a bounded number
of buckets per rule and drops the least used ones.
jwt.sub for aper-user limit or
jwt.team for a per-team limit. Each distinct value gets its own bucket withthe limit above. Requests without a value, or whose expression cannot be evaluated, share one
bucket. When unset, all requests share one bucket. Each proxy instance keeps a bounded number
of buckets per rule and drops the least used ones.
Validation
Min length1
Max length16384
Documentation References (3)
Number of HTTP requests per unit of time that
are allowed. Requests exceeding this limit will fail with a
error.
are allowed. Requests exceeding this limit will fail with a
429error.
Validation
Formatint32
Minimum1
Number of LLM tokens per unit of time that are
allowed. Requests exceeding this limit will fail with a
allowed. Requests exceeding this limit will fail with a
429 error.Both input and output tokens are counted. However, token counts are not known until the request completes. As a
result, token-based rate limits will apply to future requests only.
result, token-based rate limits will apply to future requests only.
Validation
Formatint32
Minimum1
Unit of time for the limit.
Validation
EnumHours, Minutes, Seconds
Documentation References (9)
Local rate limiting policy.
Validation
Min items1
Max items16
Documentation References (9)
Rate limiting configuration for the policy.
This limits the rate at which requests are processed.
This limits the rate at which requests are processed.
Validation
Rule
at least one of the fields in [conditional global local] must be set
Rule
conditional cannot be set with any other field
Documentation References (10)
Maximum retries per request, in addition to the initial attempt
Validation
Default1
Minimum0
Documentation References (3)
Minimum duration to wait between retry attempts, in Gateway API Duration format. Implementations may add jitter or use exponential backoff, and must not exceed a configured request timeout. Support: Extended
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Documentation References (3)
Codes defines the HTTP response status codes for which a backend request
should be retried.
should be retried.
Support: Extended
Validation
List typeset
Documentation References (3)
Retry policy.
Documentation References (3)
Maximum time allowed from the start of downstream request processing until response headers
are received. The response body is not included; use
are received. The response body is not included; use
responseIdle to bound gaps between body frames.Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
request must be at least 1ms
Documentation References (1)
Maximum wait for the next frame of the upstream response body. Complements
stops at response headers. Does not apply to protocol upgrades such as WebSocket or CONNECT.
request, whichstops at response headers. Does not apply to protocol upgrades such as WebSocket or CONNECT.
Validation
Pattern^([0-9]{1,5}(h|m|s|ms)){1,4}$
Max length32
Rule
responseIdle must be at least 1ms
Documentation References (1)
Request timeouts.
It is applicable to
kinds.
It is applicable to
HTTPRoute resources and ignored for other targetedkinds.
Validation
Rule
at least one of the fields in [request responseIdle] must be set
Documentation References (2)
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
Documentation References (1)
CEL expression that generates the output value for
the header.
the header.
Validation
Min length1
Max length16384
Documentation References (1)
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
Documentation References (1)
Request transformation settings.
Validation
Rule
at least one of the fields in [add body metadata remove set] must be set
Documentation References (1)
Policy to apply when the condition matches.
Validation
Rule
at least one of the fields in [request response] must be set
Documentation References (1)
Conditional policy execution. Set this or the top-level transformation fields.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
The first matching policy will be executed.
A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback
in case no conditions are met.
Validation
Min items1
Max items16
Rule
conditional entries without condition must be last
Documentation References (1)
HTTP body transformation.
Validation
Min length1
Max length16384
Header names to remove from the request or
response.
response.
Validation
Min items1
Max items16
List typeset
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
Documentation References (11)
CEL expression that generates the output value for
the header.
the header.
Validation
Min length1
Max length16384
Documentation References (11)
Headers to set and the values to use.
Validation
Min items1
Max items16
List typemap
List map keysname
Documentation References (11)
Request transformation settings.
Validation
Rule
at least one of the fields in [add body metadata remove set] must be set
Documentation References (17)
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
Documentation References (1)
CEL expression that generates the output value for
the header.
the header.
Validation
Min length1
Max length16384
Documentation References (1)
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
Documentation References (1)
HTTP body transformation.
Validation
Min length1
Max length16384
Documentation References (1)
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
Documentation References (2)
Header names to remove from the request or
response.
response.
Validation
Min items1
Max items16
List typeset
Documentation References (1)
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
Documentation References (5)
CEL expression that generates the output value for
the header.
the header.
Validation
Min length1
Max length16384
Documentation References (5)
Headers to set and the values to use.
Validation
Min items1
Max items16
List typemap
List map keysname
Documentation References (5)
Response transformation settings.
Validation
Rule
at least one of the fields in [add body metadata remove set] must be set
Documentation References (6)
Mutates and transforms requests and responses
before forwarding them to the destination.
before forwarding them to the destination.
Validation
Rule
at least one of the fields in [conditional request response] must be set
Rule
conditional cannot be set with any other field
Documentation References (24)
Traffic processing settings. Can target a Gateway, ListenerSet, HTTPRoute, GRPCRoute, or
InferencePool. Use
take precedence over routes, routes over listeners, and listeners over gateways.
InferencePool. Use
sectionName to select a listener or route rule. By default, route rulestake precedence over routes, routes over listeners, and listeners over gateways.
Validation
Rule
phase PreRouting only supports extAuth, authorization, transformation, extProc, jwtAuthentication, basicAuthentication, apiKeyAuthentication and cors
Documentation References (65)
Desired policy configuration.
Validation
Rule
At least one of traffic, frontend, or backend must be provided.
Rule
strategy.inheritance may only be set on traffic policies
Rule
backend.mcp may not be used with a Service target
Rule
backend.mcp may not target an AgentgatewayBackend sectionName
Rule
backend.ai may not be used with a Service target
Rule
backend.sessionAffinity must target the whole AgentgatewayBackend, not an individual AI provider
Rule
traffic.jwtAuthentication may not be used with backend.mcp.authentication in the same policy
Rule
the 'frontend' field can only target a Gateway
Rule
the 'frontend' field can only target a Gateway
Rule
frontend tcp, networkAuthorization, tls, http, proxyProtocol, and connect policies may only target a Gateway or port, not a listener (sectionName)
Rule
frontend tcp, networkAuthorization, tls, http, proxyProtocol, and connect policies may only target a Gateway or port, not a listener (sectionName)
Rule
port may only be set on frontend-only policies (not traffic or backend)
Rule
port may only be set on frontend-only policies (not traffic or backend)
Rule
the 'traffic' field can only target a Gateway, ListenerSet, GRPCRoute, HTTPRoute, or InferencePool
Rule
the 'traffic' field can only target a Gateway, ListenerSet, GRPCRoute, HTTPRoute, or InferencePool
Rule
the 'traffic.phase=PreRouting' field can only target a Gateway or ListenerSet
Rule
the 'traffic.phase=PreRouting' field can only target a Gateway or ListenerSet
Rule
Service sectionName must be a numeric port from 1 to 65535
Rule
Service sectionName must be a numeric port from 1 to 65535
Rule
exactly one of the fields in [targetRefs targetSelectors] must be set
API group of the parent. Defaults to
gateway.networking.k8s.io; set to "" for the core groupValidation
Defaultgateway.networking.k8s.io
Pattern^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Max length253
Kind of the parent. Defaults to
GatewayValidation
DefaultGateway
Pattern^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$
Min length1
Max length63
Name is the name of the referent.
Support: Core
Validation
Min length1
Max length253
Namespace of the referent. Defaults to the Route's local namespace. Cross-namespace references must be explicitly allowed, for example by a Gateway listener's
allowedRoutes. Support: CoreValidation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Min length1
Max length63
Port this Route targets on the parent, interpreted per parent kind (for example a Gateway listener port or Service port). Support: Extended
Validation
Formatint32
Minimum1
Maximum65535
Name of a section within the target resource, for example a Gateway Listener name or Service port name. Empty references the entire resource. Support: Core
Validation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Min length1
Max length253
AncestorRef corresponds with a ParentRef in the spec that this
PolicyAncestorStatus struct describes the status of.
PolicyAncestorStatus struct describes the status of.
Last time the condition changed status
Validation
Formatdate-time
Human-readable details about the transition; may be empty
Validation
Max length32768
.metadata.generation the condition was set based onValidation
Formatint64
Minimum0
Programmatic CamelCase identifier for the reason of the last transition
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
Conditions describing the status of the policy for this ancestor
Validation
Min items1
Max items8
List typemap
List map keystype
Controller that wrote this status, as
DOMAIN/PATH; matches the GatewayClass controllerNameValidation
Pattern^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\/[A-Za-z0-9\/\-._~%!$&'()*+,;=:]+$
Min length1
Max length253
Ancestor resources (usually Gateways) associated with the policy, with the policy's status for each. At most 16 entries; an empty list means the policy is not relevant to any ancestor
Validation
Max items16
List typeatomic
Current policy status.
Was this page helpful?