Skip to content
Latest (currently 2026.10.2) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentgateway.

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

Solo Enterprise for agentgateway APIs

Page as Markdown

Review the Solo Enterprise for agentgateway API reference docs.

Packages

enterpriseagentgateway.solo.io/v1alpha1

Resource Types

AgentgatewayExtensions

Appears in:

FieldDescriptionDefaultValidation
extauth ExtensionDeploymentOptional: {}
ratelimiter ExtensionDeploymentOptional: {}
extCache ExtCacheConfigurationOptional: {}
waf WAFConfigurationOptional: {}

AgwGlobalRateLimit

Appears in:

FieldDescriptionDefaultValidation
domain ShortStringdomain for the limit; defaults to ‘solo.io’.MaxLength: 256
Optional: {}
backendRef BackendObjectReferenceBackendRef to the rate limit service (Service or Backend). Defaults to ‘rate-limit’ in the control-plane namespace.Optional: {}
rateLimitConfigRefs RateLimitConfigRef arrayRateLimitConfigRefs references RateLimitConfig resources.MaxItems: 16
MinItems: 1
Required: {}
failureMode FailureModeBehavior when the rate limit service is unavailable or returns an error.
FailOpen allows the request to continue. FailClosed (default) denies the request.
Optional: {}

AuthConfigRef

AuthConfigRef selects the AuthConfig resource with the external auth policy that you want to use. For more details, see the AuthConfig reference in the Gloo Edge docs.

Appears in:

FieldDescriptionDefaultValidation
name ObjectNameName is the name of the AuthConfig resource.Required: {}
namespace NamespaceNamespace is the namespace of the AuthConfig resource.
If not set, defaults to the namespace of the EnterpriseAgentgatewayPolicy.
MaxLength: 63
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}

AuthorizationRoles

AuthorizationRoles identifies subjects by the roles they hold.

Appears in:

FieldDescriptionDefaultValidation
anyOf string arrayanyOf requires the subject to hold at least one listed role, as granted by an EnterpriseAgentgatewayRoleBinding.MaxItems: 64
MinItems: 1
items:MaxLength: 253
items:MinLength: 1
Required: {}

BrokeredElicitation

BrokeredElicitation configures the OAuth issuer proxy to broker authorization for a protected MCP resource. This typically is a chained (or dual) auth flow, but can be configured to be downstream only.

Appears in:

FieldDescriptionDefaultValidation
mcpResourcePath stringMCPResourcePath is the path component of the RFC 9728 protected-resource
identifier for the MCP server (e.g. “/mcp/github”).
Provide only the path, not the full resource URL.
Pattern: ^/
Required: {}
chainedAuth ChainedAuthChainedAuth adds the upstream (chained / dual) auth leg. Omit for
“downstream only” flows.
Optional: {}

BudgetDiscoveryConfig

BudgetDiscoveryConfig defines how the controller discovers EnterpriseAgentgatewayBudget resources.

Appears in:

FieldDescriptionDefaultValidation
namespaces BudgetNamespaceDiscoverynamespaces controls which namespaces the controller watches for budget
resources.
Optional: {}

BudgetEnforcementConfig

BudgetEnforcementConfig controls how budget enforcement is active for the targets selected by the enclosing EnterpriseAgentgatewayPolicy, and how EnterpriseAgentgatewayBudget resources are discovered.

Appears in:

FieldDescriptionDefaultValidation
discovery BudgetDiscoveryConfigdiscovery controls which namespaces the controller searches for
EnterpriseAgentgatewayBudget resources. Defaults to Same-namespace
discovery when omitted.
Optional: {}

BudgetEntry

BudgetEntry is a single named budget with optional subject scoping, a spend limit, a time window, and an enforcement action.

Appears in:

FieldDescriptionDefaultValidation
name stringname uniquely identifies this entry within the containing Budget resource.
Allowed characters: letters (a-z, A-Z), digits (0-9), and hyphens (-).
MaxLength: 253
MinLength: 1
Required: {}
subject object (keys:string, values:BudgetSubjectValue)subject optionally scopes this budget entry to requests where every
key/value pair in the map matches the resolved value of the corresponding
budget dimension for that request. For example, a subject of
{“apiKey”: “my-key”} means this entry only applies when the “apiKey”
dimension of a request resolves to “my-key”. Values may be an exact
string or “*” to match any non-missing value for that dimension key.
Omitting subject means the entry applies to all requests for the gateway
enforcing the budget.
Dimension keys must not contain the RLS-reserved characters |, ^, or
`, and must not equal the reserved missing-value sentinel
<missing>. Dimension values must not contain |, ^, or `, and
must not equal <missing>. Values are limited to 256 characters.
MaxProperties: 16
Optional: {}
limit BudgetLimitlimit defines the maximum spend allowed within the window.Required: {}
window BudgetWindowwindow defines the fixed-duration period over which spending is
accumulated. This is a rolling window and does not align to calendar
boundaries.
Required: {}
onBudgetExceeded BudgetExceededActiononBudgetExceeded controls what happens when the limit is reached.
Audit logs the overage but allows the request through. Block rejects
the request with an HTTP 429 status.
Required: {}
notifications BudgetEntryNotification arraynotifications lists alert configs to send when this entry’s spend
crosses a threshold. No enforcement semantics of its own — that’s
controlled by limit/window/onBudgetExceeded above.
MaxItems: 10
Optional: {}

BudgetEntryNotification

BudgetEntryNotification configures alert channels for one warning threshold on the containing BudgetEntry.

Appears in:

FieldDescriptionDefaultValidation
thresholdPercent integerthresholdPercent is the percentage of the entry’s limit at which the
configured channels are notified. Defaults to 80.
Maximum: 100
Minimum: 1
Optional: {}
channels NotificationChannel arraychannels lists where to send alerts when thresholdPercent is crossed.MaxItems: 10
MinItems: 1
Required: {}

BudgetExceededAction

Underlying type: string

BudgetExceededAction defines what happens when a budget limit is reached.

Appears in:

FieldDescription
AuditBudgetExceededActionAudit logs the overage but allows the request through.
BlockBudgetExceededActionBlock rejects the request with HTTP 429.

BudgetLimit

BudgetLimit specifies the maximum allowed spend and its unit.

Appears in:

FieldDescriptionDefaultValidation
unit BudgetLimitUnitunit is the currency of the limit.Required: {}
amount integeramount is the maximum allowed spend in the given unit. Must be a positive
whole number (≥ 1). For USD, whole dollars only — fractional amounts are
not supported.
Minimum: 1
Required: {}

BudgetLimitUnit

Underlying type: string

BudgetLimitUnit identifies the currency of a budget limit.

Appears in:

FieldDescription
USDBudgetLimitUnitUSD counts spend in United States Dollars (whole dollars
only; no fractional amounts are permitted).
TokensBudgetLimitUnitTokens counts LLM tokens consumed.

BudgetNamespaceDiscovery

BudgetNamespaceDiscovery specifies which namespaces to search for budget resources.

Appears in:

FieldDescriptionDefaultValidation
from BudgetNamespacesFromModefrom controls the namespace scope for budget discovery.Required: {}
selector LabelSelectorselector is a label selector used to match namespaces when from is
Selector. Ignored for Same and All modes.
Optional: {}

BudgetNamespacesFromMode

Underlying type: string

BudgetNamespacesFromMode controls the namespace scope for budget discovery.

Appears in:

FieldDescription
SameBudgetNamespacesFromSame restricts discovery to the same namespace as
the policy.
SelectorBudgetNamespacesFromSelector discovers budgets from namespaces whose
labels match the provided selector.
AllBudgetNamespacesFromAll discovers budgets from all namespaces.

BudgetSubjectValue

Underlying type: string

BudgetSubjectValue is a dimension value in a budget subject map.

Validation:

  • MaxLength: 256

Appears in:

BudgetWindow

BudgetWindow defines the accumulation period for a budget entry.

Appears in:

FieldDescriptionDefaultValidation
unit BudgetWindowUnitunit is the duration unit for the budget window. The count is currently
always one because the rate-limit server does not yet support multipliers.
Required: {}

BudgetWindowUnit

Underlying type: string

BudgetWindowUnit identifies the duration unit for a budget window.

Appears in:

FieldDescription
DayBudgetWindowUnitDay resets the budget after a 24-hour rate-limit window.
WeekBudgetWindowUnitWeek resets the budget after a 7-day rate-limit window.
MonthBudgetWindowUnitMonth resets the budget after a 30-day rate-limit window.
YearBudgetWindowUnitYear resets the budget after a 365-day rate-limit window.

CA

CA is the certificate authority configuration for Istio integration.

Appears in:

FieldDescriptionDefaultValidation
address stringAddress is the discovery address of the certificate authority.
Default is https://istiod.istio-system.svc:15012
Optional: {}
trustDomain stringTrustDomain is the trust domain of the certificate authority.Optional: {}
additionalTrustDomains string arrayAdditionalTrustDomains lists extra SPIFFE trust domains whose client certificates
are accepted on inbound HBONE connections. The local TrustDomain is always implicitly
included. Use this in multi-cluster peering setups to allow clients from peer clusters
(which have a different trust domain) to traverse this waypoint.
Optional: {}

ChainedAuth

ChainedAuth is the upstream leg of the chained / dual / brokered flow.

Appears in:

FieldDescriptionDefaultValidation
oauth ChainedOAuthConfigOAuth configures the upstream per-user OAuth flow brokered by the issuer proxy.Required: {}

ChainedOAuthConfig

ChainedOAuthConfig is the upstream OAuth mechanism of the chained / dual auth flow. The gateway / issuer-proxy owns the OAuth callback (so there is no user-supplied redirect URI) and may discover endpoints and/or dynamically register a client.

Endpoint resolution — provide exactly one of:

  • baseUrl: discover from {baseUrl}/.well-known/oauth-authorization-server, OR
  • authorizeUrl + accessTokenUrl: explicit endpoints.

Appears in:

FieldDescriptionDefaultValidation
clientId stringClientID is the pre-registered OAuth client ID. Omit to use dynamic client
registration (requires baseUrl or registrationUrl).
Optional: {}
clientSecretRef LocalSecretKeyRefClientSecretRef references the same-namespace credential holding the OAuth
client secret. For a Kubernetes Secret (the default kind), set key to select
a specific entry. When omitted, client_secret is preferred, with
clientSecret as a fallback.
Only valid together with clientId.
Optional: {}
certificateKeyPairRef LocalSecretObjectRefCertificateKeyPairRef references a same-namespace credential containing a PEM key
pair under the conventional tls.key and tls.crt keys for certificate-based OAuth
client authentication. The current JWT client assertion profile is tailored to
Microsoft Entra.
Only valid together with clientId.
Optional: {}
scopes string arrayScopes requested during the OAuth flow.Optional: {}
baseUrl stringBaseURL is the OAuth server base URL used for metadata discovery.
Mutually exclusive with authorizeUrl/accessTokenUrl/registrationUrl.
Optional: {}
authorizeUrl stringAuthorizeURL is the OAuth authorization endpoint. Provide together with
accessTokenUrl as an alternative to baseUrl discovery.
Optional: {}
accessTokenUrl stringAccessTokenURL is the OAuth token endpoint. Provide together with
authorizeUrl as an alternative to baseUrl discovery.
Optional: {}
registrationUrl stringRegistrationURL is the dynamic client registration endpoint, used when
clientId is omitted and baseUrl discovery is not used.
Optional: {}
clientName stringClientName is a human-friendly display name sent as client_name during
dynamic client registration and shown on the consent screen.
MaxLength: 128
Optional: {}
pkce PKCEModePKCE controls upstream PKCE (RFC 7636). Public clients always use PKCE.
For clients with credentials:
- Auto (default): use PKCE when discovery metadata advertises S256.
- Always: use PKCE regardless of discovery metadata.
- PublicOnly: do not use PKCE.
With explicit authorizeUrl and accessTokenUrl, set Always if PKCE is required.
Optional: {}
consent ElicitationConsentConfigConsent overrides the consent-screen presentation for this protected resource.Optional: {}

ElicitationConsentConfig

ElicitationConsentConfig overrides the consent screen for a protected resource.

Appears in:

FieldDescriptionDefaultValidation
disabled booleanDisabled bypasses the consent screen when controller-level consent is enabled.Optional: {}
platformName stringPlatformName overrides the platform label shown on the consent screen.Optional: {}
logoUrl stringLogoURL overrides the logo shown on the consent screen.Optional: {}
legalText stringLegalText overrides the consent legal text.Optional: {}

EntAIPromptGuard

EntAIPromptGuard configures enterprise prompt guards for LLM requests and responses.

Appears in:

FieldDescriptionDefaultValidation
streaming PromptGuardStreamingModeApply prompt guards to streaming responses and realtime websocket messages.
Defaults to disabled to preserve streaming throughput unless explicitly enabled.
Optional: {}
request EntPromptguardRequest arrayRequest configures enterprise prompt guards to apply to LLM requests.ExactlyOneOf: [regex webhook openAIModeration bedrockGuardrails googleModelArmor purviewDlp]
MaxItems: 8
MinItems: 1
Optional: {}
response EntPromptguardResponse arrayResponse configures enterprise prompt guards to apply to LLM responses.ExactlyOneOf: [regex webhook bedrockGuardrails googleModelArmor purviewDlp]
MaxItems: 8
MinItems: 1
Optional: {}

EntAuthorization

EntAuthorization configures authorization using CEL expressions, role requirements, or both.

Appears in:

FieldDescriptionDefaultValidation
policy AuthorizationPolicyThe authorization rule to evaluate. When roles is also set, both must match.
* Allow: any matching allow rule allows the request.
* Require: every require rule must match for the request to be allowed.
* Deny: any matching deny rule denies the request.
Deny is not recommended because expression failures fail to deny; prefer
Allow or Require. If used, design expressions defensively against evaluation errors.
If at least one Allow rule is configured, requests are denied unless at
least one allow rule matches.
Optional: {}
action AuthorizationPolicyActionThe effect of this rule when it matches.
If unspecified, defaults to Allow.
Require rules are cumulative: all require rules must match.
Optional: {}
roles AuthorizationRolesroles restricts the rule by the roles the subject holds.Optional: {}

EntAwsAssumeRole

EntAwsAssumeRole configures AWS STS AssumeRole, either a single role (roleArn) or a chain of roles assumed in order, each with an optional external ID. Ambient AWS credentials assume the first role, whose credentials then assume the second role, and so on.

Validation:

  • AtMostOneOf: [sessionName sessionNameExpression]
  • ExactlyOneOf: [roleArn chain]

Appears in:

FieldDescriptionDefaultValidation
roleArn stringAWS IAM role ARN to assume. Mutually exclusive with chain; use chain to
assume a sequence of roles instead of a single role.
MinLength: 1
Pattern: ^arn:aws[a-z-]*:iam::[0-9]\{12\}:role/.+$
Optional: {}
chain EntAwsChainRole arrayChain of roles to assume in sequence before signing backend requests.
Mutually exclusive with roleArn.
MinItems: 1
Optional: {}
sessionName stringSessionName is a custom session name (RoleSessionName) for CloudTrail and
Cost & Usage Report attribution. If unset, AWS generates a random name.
Pattern: ^[\w+=,.@-]\{2,64\}$
Optional: {}
sessionNameExpression CELExpressionSessionNameExpression is a CEL expression evaluated against each request
to produce the session name (RoleSessionName), for example jwt.sub or
request.headers["x-team"]. If the expression does not produce a valid
session name at request time, the request is rejected.
MaxLength: 16384
MinLength: 1
Optional: {}
tags AwsSessionTag arraySession tags passed to STS AssumeRole for cost attribution in the AWS Cost
& Usage Report, once activated. STS allows at most 50 per role session.
MaxItems: 50
Optional: {}
externalId stringExternal ID to pass when assuming the role, for example to satisfy a
third-party role’s trust policy and protect against the confused deputy
problem. Only valid alongside roleArn; when using a chain, set externalId
on each EntAwsChainRole hop instead.
MaxLength: 1224
MinLength: 2
Pattern: ^[\w+=,.@:/-]*$
Optional: {}

EntAwsAuth

EntAwsAuth configures AWS backend authentication with enterprise-only STS AssumeRole chaining. This is a self-contained alternative to the OSS auth.aws policy (see AtMostOneOf on EnterpriseAgentgatewayPolicyBackend), not an extension of it: use auth.aws for implicit/explicit credentials or a single AssumeRole call, and entAws when the role needs to be assumed through a chain of one or more intermediate roles.

Appears in:

FieldDescriptionDefaultValidation
secretRef LocalSecretObjectRefCredential source for AWS credentials, defaulting to a Kubernetes Secret.
The default Secret resolver expects accessKey, secretKey, and optional
sessionToken keys.
Optional: {}
assumeRole EntAwsAssumeRoleAWS STS AssumeRole chain settings to use before signing backend requests.
Ambient AWS credentials are used as the source credentials for STS.
AtMostOneOf: [sessionName sessionNameExpression]
ExactlyOneOf: [roleArn chain]
Optional: {}
serviceName ShortStringAWS SigV4 signing service name, for example bedrock, bedrock-agentcore,
or execute-api. If unset, typed AWS backends may provide this automatically.
MaxLength: 256
MinLength: 1
Optional: {}
region ShortStringAWS SigV4 signing region, for example us-east-1. Set this when the
target AWS service is in a different region than the gateway. If unset,
typed AWS backends may provide this automatically; otherwise the ambient
AWS region is used.
MaxLength: 256
MinLength: 1
Optional: {}

EntAwsChainRole

EntAwsChainRole is a single hop in an AWS STS AssumeRole chain.

Appears in:

FieldDescriptionDefaultValidation
roleArn stringAWS IAM role ARN to assume.MinLength: 1
Pattern: ^arn:aws[a-z-]*:iam::[0-9]\{12\}:role/.+$
Required: {}
externalId stringExternal ID to pass when assuming this role, for example to satisfy a
third-party role’s trust policy and protect against the confused deputy
problem.
MaxLength: 1224
MinLength: 2
Pattern: ^[\w+=,.@:/-]*$
Optional: {}

EntBackendAI

EntBackendAI extends the upstream BackendAI with enterprise-specific settings.

Appears in:

FieldDescriptionDefaultValidation
prompt AIPromptEnrichmentEnrich requests sent to the LLM provider by appending and prepending system prompts.Optional: {}
promptGuard AIPromptGuardpromptGuard enables adding guardrails to LLM requests and responses.Optional: {}
defaults FieldDefault arrayProvide defaults to merge with user input fields.MaxItems: 64
MinItems: 1
Optional: {}
overrides FieldDefault arrayProvide overrides to merge with user input fields.MaxItems: 64
MinItems: 1
Optional: {}
transformations FieldTransformation arrayProvide CEL transformations to compute and set fields in the request body.MaxItems: 64
MinItems: 1
Optional: {}
finalTransformations FieldTransformation arrayProvide CEL transformations to compute and set fields in the request body.
Those transformations are applied after the request is converted to the provider’s format, so they can be used to set provider-specific fields.
MaxItems: 64
MinItems: 1
Optional: {}
modelAliases object (keys:string, values:string)ModelAliases maps friendly model names to actual provider model names.MaxProperties: 64
Optional: {}
promptCaching PromptCachingConfigpromptCaching enables automatic prompt caching for supported providers.Optional: {}
routes object (keys:string, values:EntRouteType)routes defines how to identify the type of traffic to handle.Optional: {}
entPromptGuard EntAIPromptGuardEntPromptGuard configures enterprise guardrails for LLM requests and responses,
such as Microsoft Purview DLP.
Optional: {}

EntBackendMCP

EntBackendMCP is the MCP backend block with role requirements on its authorization.

Appears in:

FieldDescriptionDefaultValidation
authorization AuthorizationMCP backend authorization. Unlike authorization at the HTTP level, which rejects
unauthorized requests with a 403 error, this policy works at the
MCPBackend level.
List operations, such as list_tools, will have each item evaluated.
Items that do not meet the rule will be filtered.
Get or call operations, such as call_tool, will evaluate the specific
item and reject requests that do not meet the rule.
Optional: {}
authentication MCPAuthenticationMCP backend-specific authentication rules.
This field is deprecated; prefer to use traffic policy jwtAuthentication.mcp, which ensures authentication runs before
other policies such as transformation and rate limiting.
Optional: {}
guardrails MCPGuardrailsRemote and in-process CEL policy processors for MCP requests and responses.Optional: {}
authorization EntAuthorizationOptional: {}

EntBackendPolicies

EntBackendPolicies extends the upstream BackendFull with enterprise-specific features.

Validation:

  • AtMostOneOf: [auth tokenExchange workloadIdentity entTokenExchange]

Appears in:

FieldDescriptionDefaultValidation
tcp BackendTCPSettings for managing TCP connections to the backendOptional: {}
tls BackendTLSSettings for managing TLS connections to the backend
When set, TLS is originated to the backend using the system trusted CA
certificates, and SNI is inferred from the destination.
AtMostOneOf: [verifySubjectAltNames insecureSkipVerify]
Optional: {}
http BackendHTTPSettings for managing HTTP requests to the backendOptional: {}
tunnel BackendTunnelSettings for managing tunnel connections to the backend, like HTTPS_PROXYExactlyOneOf: [backendRef url]
Optional: {}
auth BackendAuthSettings for managing authentication to the backendAtMostOneOf: [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign]
Optional: {}
authorization AuthorizationAuthorization 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.
Optional: {}
sessionAffinity SessionAffinityConfigures 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.
Optional: {}
ai BackendAISettings for AI workloads. This is only applicable when
connecting to a Backend of type ai.
Optional: {}
mcp BackendMCPSettings for MCP workloads. This is only applicable when
connecting to a Backend of type mcp.
Optional: {}
transformation TransformationMutates and transforms requests and responses sent to and from the backend.Optional: {}
health HealthSettings for passive and active health checking.Optional: {}
extAuth ExtAuthExternal authentication configuration for requests
sent to this backend.
Optional: {}
tokenExchange TokenExchangeCfgPerform token exchange before sending requests to the backend.
For this to work, token exchange settings need to be pre-configured for the dataplane.
AtMostOneOf: [elicitation entra]
Optional: {}
entElicitation EntElicitationCfgentElicitation configures how the solo STS elicits and stores an upstream user
credential for this backend. It replaces the deprecated
tokenExchange.elicitation secret-as-config approach; setting both is rejected.
ExactlyOneOf: [interactive brokered]
Optional: {}
entTokenExchange EntTokenExchangeEntTokenExchange configures proxy-side OAuth-family token exchange using
enterprise provider presets.
ExactlyOneOf: [okta google solo entra]
Optional: {}
workloadIdentity WorkloadIdentityConfigworkloadIdentity selects how the gateway presents workload identity to the
upstream. Mutually exclusive with the other auth/tokenExchange variants.
Optional: {}
entHealthCheck EntHealthCheckentHealthCheck periodically probes this backend and reports its health in the
agentgateway_ent_backend_health metric and in logs. It only reports health:
traffic is still sent to an unhealthy backend. Only supported on static
and a2a backends; for entMcp, set it on each static target instead.
Optional: {}

EntBatch

Appears in:

FieldDescriptionDefaultValidation
bedrock EntBedrockBatchbedrock serves the OpenAI batch APIs using Bedrock batch inference.
All Bedrock providers must use the same region.
Optional: {}

EntBedrockBatch

Appears in:

FieldDescriptionDefaultValidation
bucket TinyStringbucket is the S3 bucket in the provider’s region.
Objects pushed by agentgateway use the agentgateway-batch/ prefix.
MaxLength: 64
MinLength: 1
Required: {}
roleArn LongStringroleArn is the IAM role Bedrock assumes to read input from and write output to the bucket.MaxLength: 1024
MinLength: 1
Required: {}

EntCrossAppAccess

EntCrossAppAccess configures Cross App Access (Identity Assertion / ID-JAG) with enterprise-only subject token support. In addition to the OSS OIDC ID token subject, the enterprise build accepts a base64-encoded SAML 2.0 assertion, running the ID-JAG draft’s SAML flow: the assertion is first exchanged for a refresh token at the identity provider (with bootstrapScopes), which then becomes the subject of the ID-JAG exchange.

Appears in:

FieldDescriptionDefaultValidation
identityProvider CrossAppAccessEndpointUser identity provider authorization server, used for the RFC 8693 ID-JAG exchange.ExactlyOneOf: [backendRef url]
Required: {}
resourceAuthorizationServer CrossAppAccessEndpointResource authorization server, used for the RFC 7523 jwt-bearer exchange.ExactlyOneOf: [backendRef url]
Required: {}
audience ShortStringIdentifier of the resource authorization server. The issued ID-JAG is bound to this audience.MaxLength: 256
MinLength: 1
Required: {}
resources string arrayResources sent to the token endpoint.MaxItems: 64
MinItems: 1
Optional: {}
scopes string arrayScopes sent to the token endpoint.MaxItems: 64
MinItems: 1
Optional: {}
subjectToken EntCrossAppAccessSubjectTokenSubject token sent to the identity provider. Defaults to an OpenID Connect
ID token read from the Authorization Bearer header.
Optional: {}
bootstrapScopes string arrayScopes for the bootstrap SAML-assertion-to-refresh-token exchange
(e.g. openid, offline_access, email). Only valid with a Saml2 subject token.
MaxItems: 64
MinItems: 1
Optional: {}
cache OAuthTokenCacheResponse cache configuration.Optional: {}

EntCrossAppAccessSubjectToken

Appears in:

FieldDescriptionDefaultValidation
source AuthorizationExtractionLocationWhere to read the subject token. Defaults to the Authorization Bearer header.ExactlyOneOf: [header queryParameter cookie expression]
Optional: {}
tokenType EntCrossAppAccessTokenTypeType of the subject token. Defaults to IdToken. Saml2 expects a
base64-encoded SAML 2.0 assertion, forwarded to the identity provider
exactly as received.
Enum: [IdToken Saml2]
Optional: {}

EntCrossAppAccessTokenType

Underlying type: string

Appears in:

FieldDescription
IdTokenEntCrossAppAccessTokenTypeIDToken exchanges an OpenID Connect ID token (OSS behavior).
Saml2EntCrossAppAccessTokenTypeSaml2 exchanges a base64-encoded SAML 2.0 assertion.

EntElicitationCfg

EntElicitationCfg configures how the solo STS elicits and stores an upstream user credential for a backend.

  • interactive: enterprise UI-driven elicitation. Its only mechanism today is oauth: the UI performs an upstream OAuth authorization-code flow
  • brokered: the OAuth issuer proxy brokers OAuth authorization flows for a protected MCP resource; optionally chains an upstream per-user OAuth leg.

Validation:

  • ExactlyOneOf: [interactive brokered]

Appears in:

FieldDescriptionDefaultValidation
interactive InteractiveElicitationInteractive configures an enterprise UI-driven elicitation.Optional: {}
brokered BrokeredElicitationBrokered configures the OAuth issuer proxy to broker authorization for a protected
MCP resource. This typically is a chained (or dual) auth flow, but can also be configured
to be downstream only.
Optional: {}

EntHealthCheck

EntHealthCheck configures active health checking of a static backend. A probe is an unauthenticated GET request with the User-Agent agentgateway-health-check. Any response other than a 5xx counts as healthy; connection errors and timeouts count as unhealthy.

Appears in:

FieldDescriptionDefaultValidation
path LongStringPath to request. Defaults to the agent card for A2A backends, and to the
target path for MCP targets.
MaxLength: 1024
MinLength: 1
Optional: {}
interval DurationTime between probes. Defaults to 10s.Format: duration
Optional: {}
timeout DurationTimeout for a single probe. Defaults to 2s.Format: duration
Optional: {}
unhealthyThreshold integerConsecutive failed probes before the backend is reported unhealthy. Defaults to 3.Minimum: 1
Optional: {}
healthyThreshold integerConsecutive successful probes before the backend is reported healthy again. Defaults to 1.Minimum: 1
Optional: {}

EntMCPBackend

EntMCPBackend configures enterprise mcp backends. This is a superset of the open source MCP backend with additional enterprise features.

Appears in:

FieldDescriptionDefaultValidation
targets EntMcpTargetSelector arrayTargets is a list of entMcp targets to use for this backend.
Policies targeting static targets must use targetRefs[].sectionName
to select the target by name.
ExactlyOneOf: [selector static custom]
MaxItems: 128
MinItems: 1
Required: {}
toolMode EntMCPToolModeToolMode controls how MCP tools are exposed to the client.
“Standard” exposes tools as-is from the server (with filtering).
“Search” exposes get_tool and invoke_tool to enable progressive
disclosure and reduced context.
“Code” exposes a single run_code tool that executes JavaScript
against the allowed tool API.
“CodeSearch” exposes get_tool and run_code.
Optional: {}
codeMode EntMCPCodeModeCodeMode configures settings specific to toolMode: Code and toolMode: CodeSearch.Optional: {}
sessionRouting SessionRoutingSessionRouting configures MCP session behavior for requests.
Defaults to Stateful if not set.
Optional: {}
failureMode FailureModeFailureMode controls behavior when MCP targets fail to initialize or
become unavailable at runtime. “FailOpen” skips failed targets and
continues serving from healthy ones. “FailClosed” (default) fails the
entire session if any target fails.
Optional: {}
prefixMode PrefixModePrefixMode controls how tool and prompt names are prefixed with the
target name. Resource URIs always retain target routing information
when multiplexing and are unaffected. “Conditional” (default) prefixes
only when there are multiple targets. “Always” prefixes even with a
single target. “Never” exposes unprefixed names and routes calls by
looking up which target serves the name; names must be unique across
targets.
Optional: {}

EntMCPCodeMode

Appears in:

FieldDescriptionDefaultValidation
timeout DurationTimeout is the maximum duration allowed for a single run_code execution.
Defaults to 60s when unset.
Format: duration
Optional: {}
cpuTimeout DurationCPUTimeout is the maximum CPU time allowed for a single run_code execution.
Defaults to 1s when unset.
Format: duration
Optional: {}

EntMCPOpenAPI

Appears in:

FieldDescriptionDefaultValidation
schemaRef LocalObjectReferenceschemaRef is a reference to a ConfigMap containing the JSON OpenAPI 3.0 JSON schema.Required: {}

EntMCPProtocol

Underlying type: string

EntMCPProtocol defines the protocol to use for the MCPBackend target

Appears in:

FieldDescription
StreamableHTTPMCPProtocolStreamableHTTP specifies Streamable HTTP must be used as the protocol
SSEMCPProtocolSSE specifies Server-Sent Events (SSE) must be used as the protocol
OpenAPIMCPProtocolOpenAPI specifies OpenAPI will be used as the protocol.

EntMCPToolMode

Underlying type: string

EntMCPToolMode defines how MCP tools are exposed to the client.

Appears in:

FieldDescription
StandardEntMCPToolModeStandard exposes tools as-is from the server, subject to filtering.
SearchEntMCPToolModeSearch exposes get_tool and invoke_tool for progressive disclosure.
CodeEntMCPToolModeCode exposes a single run_code tool backed by the allowed MCP tool set.
CodeSearchEntMCPToolModeCodeSearch exposes get_tool for progressive disclosure and run_code for execution.

EntMcpCustomHTTPBackendRef

Appears in:

FieldDescriptionDefaultValidation
group Groupgroup is the API group of the referenced resource. Use "" for the core
Service kind, “agentgateway.dev” for AgentgatewayBackend, or
“enterpriseagentgateway.solo.io” for EnterpriseAgentgatewayBackend.
Enum: [ agentgateway.dev enterpriseagentgateway.solo.io]
MaxLength: 253
Pattern: ^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Required: {}
kind StepBackendRefKindkind selects the referenced resource type.Required: {}
name ShortStringMaxLength: 256
Required: {}
port integerport is the destination port. Required when kind is Service. Must not be
set otherwise (the port is resolved from the referenced backend).
Maximum: 65535
Minimum: 1
Optional: {}

EntMcpCustomHTTPStep

Appears in:

FieldDescriptionDefaultValidation
backendRef EntMcpCustomHTTPBackendRefbackendRef points at a Kubernetes Service, an AgentgatewayBackend, or
an EnterpriseAgentgatewayBackend whose spec is static or aws. Inline
policies on a referenced backend apply to the request.
Optional: {}
method stringHTTP method for the request. Defaults to GET.Enum: [GET POST PUT PATCH DELETE HEAD OPTIONS]
Optional: {}
path CELExpressionCEL expression returning the request path (e.g. "/users/" + input.id).
Defaults to “/” if unset.
MaxLength: 16384
MinLength: 1
Optional: {}
body CELExpressionCEL expression evaluated to JSON and sent as the request body.MaxLength: 16384
MinLength: 1
Optional: {}
headers HeaderTransformation arrayHeaders to set on the request. Each value is a CEL expression.MaxItems: 32
Optional: {}

EntMcpCustomMCPBackendRef

Appears in:

FieldDescriptionDefaultValidation
group Groupgroup is the API group of the referenced resource. Use
“agentgateway.dev” for AgentgatewayBackend, or
“enterpriseagentgateway.solo.io” for EnterpriseAgentgatewayBackend.
Enum: [agentgateway.dev enterpriseagentgateway.solo.io]
MaxLength: 253
Pattern: ^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Required: {}
kind StepBackendRefKindkind selects the referenced resource type. Must be an MCP-typed backend
(the (group, kind) rule below excludes Service).
Required: {}
name ShortStringMaxLength: 256
Required: {}
target ShortStringtarget picks a target inside the referenced MCP-typed backend.MaxLength: 256
Optional: {}

EntMcpCustomMCPStep

Validation:

  • ExactlyOneOf: [backendRef]

Appears in:

FieldDescriptionDefaultValidation
backendRef EntMcpCustomMCPBackendRefbackendRef references an MCP-typed AgentgatewayBackend or
EnterpriseAgentgatewayBackend in the same namespace. Set target to
pick a specific target inside the referenced backend. To reach an MCP
server fronted by a Kubernetes Service, create a separate backend that
points at it and reference that here. Note: this differs from
EntMcpCustomHTTPStep.backendRef, which can also reference a Service.
Optional: {}
tool ShortStringMCP tool name to call on the upstream server.MaxLength: 256
MinLength: 1
Required: {}
arguments CELExpressionCEL expression evaluated to a JSON object passed as arguments to the
upstream tool call. Must evaluate to an object or null.
MaxLength: 16384
MinLength: 1
Optional: {}

EntMcpCustomStep

EntMcpCustomStep is a single named step in a custom MCP target.

Validation:

  • ExactlyOneOf: [http mcp]

Appears in:

FieldDescriptionDefaultValidation
name ShortStringMaxLength: 256
Required: {}
http EntMcpCustomHTTPStephttp issues an HTTP request and parses its JSON body as the step output.Optional: {}
mcp EntMcpCustomMCPStepmcp issues an MCP tools/call to an upstream MCP server and uses the
result as the step output.
ExactlyOneOf: [backendRef]
Optional: {}

EntMcpCustomTarget

EntMcpCustomTarget describes a synthesized MCP tool composed of one or more HTTP and/or upstream-MCP steps.

Appears in:

FieldDescriptionDefaultValidation
description LongStringTool description surfaced to MCP clients.MaxLength: 1024
MinLength: 1
Required: {}
inputSchema JSONJSON Schema describing the tool’s input arguments. Surfaced to MCP
clients. Steps and outputs can reference fields described here in CEL
expressions via input.<path>.
Schemaless: {}
Type: object
Required: {}
steps EntMcpCustomStep arraySteps that compose the tool. Each step’s JSON output is bound to
output.<step.name> for use in later step expressions and in output.
ExactlyOneOf: [http mcp]
MaxItems: 64
MinItems: 1
Required: {}
output CELExpressionCEL expression evaluated after all steps complete. Its result becomes the
tool’s response payload.
MaxLength: 16384
MinLength: 1
Required: {}

EntMcpTarget

McpTarget defines a single MCPBackend target configuration.

Validation:

  • ExactlyOneOf: [host backendRef]

Appears in:

FieldDescriptionDefaultValidation
host ShortStringHost is the hostname or IP address of the MCPBackend target.MaxLength: 256
Optional: {}
backendRef LocalObjectReferencebackendRef references a namespace-local Service resource by name.
When set, this replaces host only; port, path, and protocol
remain configured on this target.
Optional: {}
port integerPort is the port number of the MCPBackend target.Maximum: 65535
Minimum: 1
Required: {}
path LongStringPath is the URL path of the MCPBackend target endpoint.
Defaults to “/sse” for SSE protocol or “/mcp” for StreamableHTTP protocol if not specified.
MaxLength: 1024
MinLength: 1
Optional: {}
protocol EntMCPProtocolProtocol is the protocol to use for the connection to the MCPBackend target.Optional: {}
policies EntTargetPoliciespolicies controls policies for communicating with this backend. Policies may also be set in AgentgatewayPolicy, or
in the top level AgentgatewayBackend. Policies are merged on a field-level basis, with order: AgentgatewayPolicy «br />AgentgatewayBackend < AgentgatewayBackend MCP (this field).
This field may only be used with host-based static targets, not
backendRef.
AtMostOneOf: [auth tokenExchange workloadIdentity]
Optional: {}
entHealthCheck EntHealthCheckentHealthCheck periodically probes this target and reports its health in the
agentgateway_ent_backend_health metric and in logs. It only reports health:
traffic is still sent to an unhealthy target. Requires host and the
StreamableHTTP protocol. Probes only use connection settings (such as tls)
set on this target, not those set on the parent backend.
Optional: {}
openAPI EntMCPOpenAPIOpenAPI specifies options for OpenAPI change. This is required if protocol is OpenAPI.Optional: {}

EntMcpTargetSelector

McpTargetSelector defines the MCPBackend target to use for this backend.

Validation:

  • ExactlyOneOf: [selector static custom]

Appears in:

FieldDescriptionDefaultValidation
name SectionNameName of the MCPBackend target.Required: {}
selector McpSelectorselector is a label selector is the selector to use to select Services.
If policies are needed on a per-service basis, AgentgatewayPolicy can target the desired Service.
Optional: {}
static EntMcpTargetstatic configures a static MCP destination. When connecting to in-cluster Services, it is recommended to use
‘selector’ instead.
ExactlyOneOf: [host backendRef]
Optional: {}
condition CELExpressionCEL expression evaluated per request; when it evaluates to false, the
target is excluded from the virtual MCP. mcp.target.name is available.
With selector, the condition applies to each selected target.
MaxLength: 16384
MinLength: 1
Optional: {}
custom EntMcpCustomTargetcustom configures a synthesized MCP target backed by an ordered list of
HTTP and upstream-MCP steps. Each step’s JSON response is exposed as
outputs.<step_name> to subsequent steps, and the final outputs
expression becomes the tool result.
Optional: {}

EntPromptguardRequest

EntPromptguardRequest defines enterprise prompt guards to apply to LLM requests.

Validation:

  • ExactlyOneOf: [regex webhook openAIModeration bedrockGuardrails googleModelArmor purviewDlp]

Appears in:

FieldDescriptionDefaultValidation
condition CELExpressionCondition is a CEL expression that determines whether this guard runs.
When omitted, the guard always runs. Otherwise, only a boolean true result
runs the guard; false, non-boolean results, and evaluation errors skip it.
Expressions can reference the original request context and llmRequest body.
MaxLength: 16384
MinLength: 1
Optional: {}
masking PromptGuardMaskingMasking controls restoration of masked request values in the response.
Requires regex action Mask. When omitted, masks are not restored.
Original values are restored after response guards for buffered responses only.
Streaming responses retain the masked values.
Enum: [Reversible]
Optional: {}
response CustomResponseCustomResponse is a custom response message to return to the client when the guard is triggered.
If not specified, defaults to “The request was rejected due to inappropriate content”.
Optional: {}
scope ContentScope arrayWhich parts of the request this guard inspects. When unset, defaults to
SystemPrompt, Messages, and ToolOutput. Tool call inputs are not
inspected unless ToolInput is listed explicitly. Webhook guards do not
support scope and always inspect SystemPrompt and Messages.
MaxItems: 4
MinItems: 1
Optional: {}
regex RegexRegular expression (regex) matching for prompt guards and data masking.Optional: {}
webhook WebhookConfigure a webhook to forward requests to for prompt guarding.Optional: {}
openAIModeration OpenAIModerationopenAIModeration passes prompt data through the OpenAI Moderations endpoint.Optional: {}
bedrockGuardrails BedrockGuardrailsbedrockGuardrails configures AWS Bedrock Guardrails for prompt guarding.Optional: {}
googleModelArmor GoogleModelArmorgoogleModelArmor configures Google Model Armor for prompt guarding.Optional: {}
purviewDlp PurviewDlppurviewDlp configures Microsoft Purview DLP for request prompt guarding.Optional: {}

EntPromptguardResponse

EntPromptguardResponse defines enterprise prompt guards to apply to LLM responses.

Validation:

  • ExactlyOneOf: [regex webhook bedrockGuardrails googleModelArmor purviewDlp]

Appears in:

FieldDescriptionDefaultValidation
condition CELExpressionCondition is a CEL expression that determines whether this guard runs.
When omitted, the guard always runs. Otherwise, only a boolean true result
runs the guard; false, non-boolean results, and evaluation errors skip it.
Expressions can reference the original request context.
MaxLength: 16384
MinLength: 1
Optional: {}
response CustomResponseCustomResponse is a custom response message to return to the client when the guard is triggered.
If not specified, defaults to “The response was rejected due to inappropriate content”.
Optional: {}
scope ContentScope arrayWhich parts of the response this guard inspects. When unset, defaults to
Messages. Tool calls generated by the model are not inspected unless
ToolInput is listed explicitly; ToolOutput covers results of
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.
MaxItems: 4
MinItems: 1
Optional: {}
regex RegexRegular expression (regex) matching for prompt guards and data masking.Optional: {}
webhook WebhookConfigure a webhook to forward responses to for prompt guarding.Optional: {}
bedrockGuardrails BedrockGuardrailsbedrockGuardrails configures AWS Bedrock Guardrails for prompt guarding.Optional: {}
googleModelArmor GoogleModelArmorgoogleModelArmor configures Google Model Armor for prompt guarding.Optional: {}
purviewDlp PurviewDlppurviewDlp configures Microsoft Purview DLP for response prompt guarding.Optional: {}

EntRouteType

Underlying type: string

EntRouteType extends the upstream RouteType with enterprise route types. It must include every upstream RouteType value.

Appears in:

FieldDescription
CompletionsEntRouteTypeCompletions processes OpenAI /v1/chat/completions format requests.
MessagesEntRouteTypeMessages processes Anthropic /v1/messages format requests.
ModelsEntRouteTypeModels handles the /v1/models endpoint.
PassthroughEntRouteTypePassthrough sends requests upstream as-is without LLM processing.
DetectEntRouteTypeDetect sends requests as-is but attempts to extract
request/response metadata for telemetry and rate limiting.
ResponsesEntRouteTypeResponses processes OpenAI /v1/responses format requests.
AnthropicTokenCountEntRouteTypeAnthropicTokenCount processes Anthropic
/v1/messages/count_tokens format requests.
EmbeddingsEntRouteTypeEmbeddings processes OpenAI /v1/embeddings format requests.
RealtimeEntRouteTypeRealtime processes OpenAI /v1/realtime requests.
RerankEntRouteTypeRerank processes Cohere /v2/rerank format requests.
GenerateContentEntRouteTypeGenerateContent processes Gemini models/\{model\}:generateContent
and models/\{model\}:streamGenerateContent format requests.
GeminiCountTokensEntRouteTypeGeminiCountTokens processes Gemini models/\{model\}:countTokens
format requests.
DecisionsEntRouteTypeDecisions processes OpenAI /v1/decisions format requests.
SystemOneEntRouteTypeSystemOne processes TypeSafe /v1/systemone format requests.
OpenAIFilesEntRouteTypeOpenAIFiles processes OpenAI /v1/files requests and their subpaths.
OpenAIBatchesEntRouteTypeOpenAIBatches processes OpenAI /v1/batches requests and their subpaths.
AnthropicBatchesEntRouteTypeAnthropicBatches processes Anthropic /v1/messages/batches
requests and their subpaths.

EntTargetPolicies

EntTargetPolicies defines policies for individual MCP targets. Unlike EntBackendPolicies, this only includes transport-level policies (no ai/mcp).

Validation:

  • AtMostOneOf: [auth tokenExchange workloadIdentity]

Appears in:

FieldDescriptionDefaultValidation
tcp BackendTCPSettings for managing TCP connections to the backendOptional: {}
tls BackendTLSSettings for managing TLS connections to the backend
When set, TLS is originated to the backend using the system trusted CA
certificates, and SNI is inferred from the destination.
AtMostOneOf: [verifySubjectAltNames insecureSkipVerify]
Optional: {}
http BackendHTTPSettings for managing HTTP requests to the backendOptional: {}
tunnel BackendTunnelSettings for managing tunnel connections to the backend, like HTTPS_PROXYExactlyOneOf: [backendRef url]
Optional: {}
auth BackendAuthSettings for managing authentication to the backendAtMostOneOf: [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign]
Optional: {}
tokenExchange TokenExchangeCfgPerform token exchange before sending requests to the backend.
For this to work, token exchange settings need to be pre-configured for the dataplane.
AtMostOneOf: [elicitation entra]
Optional: {}
workloadIdentity WorkloadIdentityConfigworkloadIdentity selects how the gateway presents workload identity to the
upstream. Mutually exclusive with the other auth/tokenExchange variants.
Optional: {}

EntTokenExchange

Validation:

  • ExactlyOneOf: [okta google solo entra]

Appears in:

FieldDescriptionDefaultValidation
solo SoloTokenExchangeCfgSolo configures token exchange against the Solo Enterprise STS.Optional: {}
okta OktaTokenExchangeCfgOkta configures Okta OAuth token exchange.Optional: {}
google GoogleTokenExchangeCfgGoogle configures Google Security Token Service token exchange.Optional: {}
entra EntraTokenExchangeCfgEntra configures Microsoft Entra ID on-behalf-of token exchange.Optional: {}

EnterpriseAgentgatewayBackend

EnterpriseAgentgatewayBackend is a Solo Enterprise for agentgateway backend.

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayBackend
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec EnterpriseAgentgatewayBackendSpecSpec defines the desired state of the agentgateway backend.ExactlyOneOf: [ai static dynamicForwardProxy mcp aws a2a entMcp]
Required: {}
status AgentgatewayBackendStatusStatus defines the current state of the agentgateway backend.Optional: {}

EnterpriseAgentgatewayBackendSpec

Validation:

  • ExactlyOneOf: [ai static dynamicForwardProxy mcp aws a2a entMcp]

Appears in:

FieldDescriptionDefaultValidation
static StaticBackendstatic represents a static hostname.Optional: {}
a2a A2ABackenda2a represents an A2A backend.Optional: {}
ai AIBackendai represents a LLM backend.Optional: {}
mcp MCPBackendmcp represents an MCP backendOptional: {}
dynamicForwardProxy DynamicForwardProxyBackenddynamicForwardProxy configures the proxy to dynamically send requests to the destination based on the incoming
request HTTP host header, or TLS SNI for TLS traffic.
Note: this Backend type enables users to send trigger the proxy to send requests to arbitrary destinations. Proper
access controls must be put in place when using this backend type.
Optional: {}
aws AwsBackendaws represents an AWS service backend (AgentCore, etc.).Optional: {}
entMcp EntMCPBackendentMcp represents an enterprise EntMCP backendOptional: {}
policies EntBackendPoliciespolicies controls policies for communicating with this backend. Policies may also be set in AgentgatewayPolicy;
policies are merged on a field-level basis, with policies on the Backend (this field) taking precedence.
AtMostOneOf: [auth tokenExchange workloadIdentity entTokenExchange]
Optional: {}
entBatch EntBatchentBatch configures how this AI backend serves batch APIs.Optional: {}

EnterpriseAgentgatewayBudget

EnterpriseAgentgatewayBudget defines spending limits for AI workloads. Each resource holds a list of independent budget entries; the controller maps each accepted entry independently into rate-limit configuration for the matching subject dimensions.

Deleting a budget resource removes its entries from the generated configuration on the next controller reconcile.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayBudget
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec EnterpriseAgentgatewayBudgetSpecSpec defines the desired state of the budget.Required: {}
status EnterpriseAgentgatewayBudgetStatusStatus defines the observed state of the budget.Optional: {}

EnterpriseAgentgatewayBudgetList

EnterpriseAgentgatewayBudgetList is a list of EnterpriseAgentgatewayBudget resources.

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayBudgetList
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items EnterpriseAgentgatewayBudget array

EnterpriseAgentgatewayBudgetSpec

EnterpriseAgentgatewayBudgetSpec defines the desired state of EnterpriseAgentgatewayBudget.

Appears in:

FieldDescriptionDefaultValidation
budgets BudgetEntry arraybudgets is a list of independent budget entries. Each entry is enforced
separately; a request is blocked when the first matching entry with
onBudgetExceeded=Block has its limit exceeded.
MaxItems: 64
MinItems: 1
Required: {}

EnterpriseAgentgatewayBudgetStatus

EnterpriseAgentgatewayBudgetStatus defines the observed state of EnterpriseAgentgatewayBudget.

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions describe the current state of the budget resource.Optional: {}

EnterpriseAgentgatewayExtAuth

Appears in:

FieldDescriptionDefaultValidation
authConfigRef AuthConfigRefAuthConfigRef used by the external-auth server.Optional: {}
backendRef BackendObjectReferenceBackendRef to the external authorization service (Service or Backend). Defaults to the provisioned ext-auth-service; cross-namespace grants not required.Optional: {}

EnterpriseAgentgatewayExternalSecret

EnterpriseAgentgatewayExternalSecret maps external provider data into in-memory credential material consumed by agentgateway translators.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayExternalSecret
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec EnterpriseAgentgatewayExternalSecretSpecRequired: {}
status EnterpriseAgentgatewayExternalSecretStatusOptional: {}

EnterpriseAgentgatewayExternalSecretList

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayExternalSecretList
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items EnterpriseAgentgatewayExternalSecret array

EnterpriseAgentgatewayExternalSecretSpec

Appears in:

FieldDescriptionDefaultValidation
storeRef ExternalSecretStoreRefStoreRef names an installation-global external secret store.Required: {}
refreshInterval DurationRefreshInterval controls periodic refresh. Defaults to 1h. File stores
update ahead of it: fsnotify handles store-root mount changes, and a
short internal backstop poll catches nested changes or missed events. This
interval effectively governs network providers only.
Optional: {}
data ExternalSecretData arrayData maps remote provider values into materialized credential keys.MaxItems: 64
MinItems: 1
Required: {}

EnterpriseAgentgatewayExternalSecretStatus

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayConditions reports the deterministic outcomes of materialization that
every replica agrees on. Accepted=True means the spec resolved against
the configured store and the referenced provider object(s); Accepted=False
carries StoreValidationFailed or ReferencedObjectNotFound. Transient
provider failures are deliberately not reported here: materialization is
process-local per replica, so per-replica refresh health belongs to
metrics, not a single leader-written status.
Optional: {}
observedGeneration integerObservedGeneration is the most recent generation processed by the materializer.Optional: {}

EnterpriseAgentgatewayParameters

EnterpriseAgentgatewayParameters contains configuration that is used to dynamically provision the agentgateway data plane with enterprise extensions like ExtAuth and RateLimiter.

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayParameters
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec EnterpriseAgentgatewayParametersSpecRequired: {}
status EnterpriseAgentgatewayParametersStatusOptional: {}

EnterpriseAgentgatewayParametersSpec

Appears in:

FieldDescriptionDefaultValidation
workload AgentgatewayParametersWorkloadworkload selects the Kubernetes workload kind for the managed Gateway
data plane. If unset, Deployment is used.
Optional: {}
logging AgentgatewayParametersLoggingLogging configuration. By default, all logs are set to
info level.
Optional: {}
rawConfig JSONRaw agentgateway configuration to merge into the generated config file.
This is merged with
configuration derived from typed fields like logging.format, and those
typed fields will take precedence.
Example:
rawConfig:
binds:
- port: 3000
listeners:
- routes:
- policies:
cors:
allowOrigins:
- “*"
allowHeaders:
- mcp-protocol-version
- content-type
- cache-control
backends:
- mcp:
targets:
- name: everything
stdio:
cmd: npx
args: ["@modelcontextprotocol/server-everything”]
Type: object
Optional: {}
image ImageThe agentgateway container image. See
https://kubernetes.io/docs/concepts/containers/images
for details.
Default values, which may be overridden individually:
registry: cr.agentgateway.dev
repository: agentgateway
tag:
pullPolicy: <omitted, relying on Kubernetes defaults which depend on the tag>
Optional: {}
env EnvVar arrayContainer environment variables. These override any existing
values. If you want to delete an environment variable entirely, use
$patch: delete with an overlay instead. Note that
variable
expansion

does apply, but is highly discouraged – to set dependent environment
variables, you can use $(VAR_NAME), but it’s highly discouraged.
$$(VAR_NAME) avoids expansion and results in a literal
$(VAR_NAME).
If SESSION_KEY is specified, it takes precedence over the
controller-managed per-Gateway session key Secret.
Optional: {}
resources ResourceRequirementsCompute resources required by this container. See
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
for details.
Optional: {}
shutdown ShutdownSpecShutdown delay configuration. How graceful planned or unplanned data
plane changes happen is in tension with how quickly rollouts of the data
plane complete. How long a data plane pod must wait for shutdown to be
perfectly graceful depends on how you have configured your Gateway
resources.
Optional: {}
istio IstioSpecIstio integration settings. If enabled, agentgateway can natively connect to Istio-enabled pods with mTLS.Optional: {}
spiffe SpiffeSpecSPIFFE integration settings. When set, the gateway sources its TLS identity (X.509-SVID)
and trust bundle from the local SPIFFE Workload API, and the controller
mounts the Workload API socket into the pod. Listeners and backends opt in to SPIFFE individually
(via the agentgateway.dev/tls-certificate-source: SPIFFE listener option and the
AgentgatewayPolicy backend.tls.certificateSource: SPIFFE field respectively).
Optional: {}
modelCatalog ModelCatalogSpecModel cost catalog sources. Only effective when set on a Gateway-level
AgentgatewayParameters (via Gateway.spec.infrastructure.parametersRef);
ignored on GatewayClass-level parameters because ConfigMap references
are resolved from the Gateway’s deployment namespace.
Optional: {}
deployment KubernetesResourceOverlayOverrides for the generated
Deployment resource.
Optional: {}
daemonSet KubernetesResourceOverlayOverrides for the generated
DaemonSet resource.
Optional: {}
service KubernetesResourceOverlayOverrides for the generated Service
resource.
Optional: {}
serviceAccount KubernetesResourceOverlayOverrides for the generated
ServiceAccount resource.
Optional: {}
podDisruptionBudget KubernetesResourceOverlayCreates a PodDisruptionBudget for the
agentgateway proxy. If absent, no PDB is created. If present, a PDB is
created with its selector automatically configured to target the selected
generated workload. The metadata and spec fields from this overlay are
applied to the generated PDB.
Optional: {}
horizontalPodAutoscaler KubernetesResourceOverlayCreates a HorizontalPodAutoscaler
for Deployment-backed agentgateway proxies. If absent, no HPA is created.
If present, an HPA is created with its scaleTargetRef automatically
configured to target the generated Deployment. The metadata and spec
fields from this overlay are applied to the generated HPA.
Optional: {}
sharedExtensions AgentgatewayExtensionsSharedExtensions defines extensions that are shared across all Gateways of the same GatewayClassOptional: {}
ca CACA is the certificate authority configuration for Istio integration.
Deprecated: use configure at install time with the controller chart, or use spec.istio.caAddress.
Optional: {}
istioClusterId stringIstioClusterId is the ID of the cluster that this Istiod instance resides (default Kubernetes).
Deprecated: use configure at install time with the controller chart, or use spec.istio.clusterId.
Optional: {}
istioNetwork stringIstioNetwork is the Istio network name for this cluster (e.g. the meshId).
This is used to set the NETWORK environment variable on waypoint proxy deployments,
which is required for HBONE inbound VIP routing in ambient mesh mode.
Deprecated: use configure at install time with the controller chart, or use spec.istio.network.
Optional: {}
workloadClaims WorkloadClaimsSpecWorkloadClaims configures WIMSE workload identity claim processing on the proxy.Optional: {}
trustDomainValidation TrustDomainValidationSpecTrustDomainValidation configures SPIFFE trust-domain chain verification on the proxy.Optional: {}
plugins EnterpriseAgentgatewayPluginSource arrayplugins configures native plugins mounted into the agentgateway
pod. Each plugin is mounted read-only under a stable directory derived
from its name. EnterpriseAgentgatewayPolicy references the plugin by
traffic.entPlugin.plugin (defaulting to traffic.entPlugin.name); if that mounted directory contains exactly one
shared library, agentgateway loads it.
Optional: {}

EnterpriseAgentgatewayParametersStatus

The current conditions of the EnterpriseAgentgatewayParameters. This is not currently implemented.

Appears in:

EnterpriseAgentgatewayPlugin

Appears in:

FieldDescriptionDefaultValidation
name stringname identifies this plugin instance. Plugins are keyed by name: a more
specific policy with the same name overrides a less specific one, while
plugins with different names all run (in name order within the same
order). The name is also the plugin’s metadata key.
MaxLength: 48
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
plugin stringplugin selects the plugin library to run, matching an
EnterpriseAgentgatewayParameters.spec.plugins[].name. Defaults to name.
MaxLength: 48
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}
order EnterpriseAgentgatewayPluginOrderorder controls where this plugin runs in the request policy chain.
If unset, this defaults to Late.
Optional: {}
config JSONconfig is an opaque JSON object provided when the named plugin is instantiated.Type: object
Optional: {}

EnterpriseAgentgatewayPluginConditional

Appears in:

FieldDescriptionDefaultValidation
condition CELExpressioncondition must evaluate to true for this policy to execute.MaxLength: 16384
MinLength: 1
Optional: {}
policy EnterpriseAgentgatewayPluginpolicy definition.Required: {}

EnterpriseAgentgatewayPluginOrConditional

Appears in:

FieldDescriptionDefaultValidation
name stringname identifies this plugin instance. Plugins are keyed by name: a more
specific policy with the same name overrides a less specific one, while
plugins with different names all run (in name order within the same
order). The name is also the plugin’s metadata key.
MaxLength: 48
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
plugin stringplugin selects the plugin library to run, matching an
EnterpriseAgentgatewayParameters.spec.plugins[].name. Defaults to name.
MaxLength: 48
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}
order EnterpriseAgentgatewayPluginOrderorder controls where this plugin runs in the request policy chain.
If unset, this defaults to Late.
Optional: {}
config JSONconfig is an opaque JSON object provided when the named plugin is instantiated.Type: object
Optional: {}
conditional EnterpriseAgentgatewayPluginConditional arrayconditional, if set, will enable conditional policy execution. You must either set this, or set the top level plugin 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.
MaxItems: 16
MinItems: 1
Optional: {}

EnterpriseAgentgatewayPluginOrder

Underlying type: string

EnterpriseAgentgatewayPluginOrder controls where a plugin runs within the request policy chain. The policy’s phase (PreRouting or the default route phase) picks which chain; order picks the position inside it. Plugins with the same order run in name order.

Appears in:

FieldDescription
EarlyEnterpriseAgentgatewayPluginOrderEarly runs the plugin before any other request policy, including CORS.
PostAuthenticationEnterpriseAgentgatewayPluginOrderPostAuthentication runs the plugin after authentication (JWT, API key, basic auth)
and before authorization. The caller’s identity is known but has not been checked yet.
PostAuthorizationEnterpriseAgentgatewayPluginOrderPostAuthorization runs the plugin after authorization and before
rate limiting, external processing, and transformations. The request has been allowed.
LateEnterpriseAgentgatewayPluginOrderLate runs the plugin after all other request policies.

EnterpriseAgentgatewayPluginSecretReference

Appears in:

FieldDescriptionDefaultValidation
name stringName is the Secret name in the same namespace as the generated
Agentgateway pod.
MinLength: 1
Required: {}
items KeyToPath arrayItems optionally restricts which Secret keys are mounted and their
filenames. If unset, Kubernetes mounts all keys from the Secret.
Optional: {}

EnterpriseAgentgatewayPluginSource

EnterpriseAgentgatewayPluginSource is a native plugin source. OCI image plugins are mounted as Kubernetes image volumes. Secret plugins are mounted as Kubernetes Secret volumes and are intended only for small plugins.

Appears in:

FieldDescriptionDefaultValidation
name stringName identifies this mounted plugin artifact. It is used to derive the
mount path and must be stable across rollouts. Policies reference this
name; it does not need to match the shared library filename inside the
mounted image or Secret.
MaxLength: 48
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Required: {}
image stringImage is the OCI image or artifact reference to mount as an image volume.MinLength: 1
Optional: {}
pullPolicy PullPolicyPullPolicy controls when Kubernetes pulls the OCI artifact. If unset,
Kubernetes applies the same defaults used for container images.
Optional: {}
secretRef EnterpriseAgentgatewayPluginSecretReferenceSecretRef is a Secret containing one or more native plugin library files.
It is mounted read-only into the plugin search path. This is intended
for small plugins; Kubernetes Secrets have a practical object size
limit.
Optional: {}

EnterpriseAgentgatewayPolicy

EnterpriseAgentgatewayPolicy is a Solo Enterprise for agentgateway policy

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayPolicy
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec EnterpriseAgentgatewayPolicySpecSpec defines the desired state of the agentgateway policyExactlyOneOf: [targetRefs targetSelectors]
Required: {}
status PolicyStatusStatus is the status of the agentgateway policyOptional: {}

EnterpriseAgentgatewayPolicyBackend

Validation:

  • AtMostOneOf: [auth workloadIdentity tokenExchange entTokenExchange entCrossAppAccess entAws]

Appears in:

FieldDescriptionDefaultValidation
tcp BackendTCPSettings for managing TCP connections to the backendOptional: {}
tls BackendTLSSettings for managing TLS connections to the backend
When set, TLS is originated to the backend using the system trusted CA
certificates, and SNI is inferred from the destination.
AtMostOneOf: [verifySubjectAltNames insecureSkipVerify]
Optional: {}
http BackendHTTPSettings for managing HTTP requests to the backendOptional: {}
tunnel BackendTunnelSettings for managing tunnel connections to the backend, like HTTPS_PROXYExactlyOneOf: [backendRef url]
Optional: {}
auth BackendAuthSettings for managing authentication to the backendAtMostOneOf: [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign]
Optional: {}
authorization EntAuthorizationauthorization specifies 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.
Optional: {}
sessionAffinity SessionAffinitysessionAffinity 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.
Optional: {}
ai EntBackendAIai specifies settings for AI workloads. This is only applicable when connecting to a Backend of type ‘ai’.Optional: {}
mcp EntBackendMCPmcp specifies settings for MCP workloads. This is only applicable when connecting to a Backend of type ‘mcp’.Optional: {}
transformation Transformationtransformation is used to mutate and transform requests and responses sent to and from the backend.Optional: {}
health Healthhealth defines settings for passive and active health checking.Optional: {}
extAuth ExtAuthextAuth specifies the external authentication configuration for requests
sent to this backend.
Optional: {}
tokenExchange TokenExchangeCfgPerform token exchange before sending requests to the backend.
For this to work, token exchange settings need to be pre-configured for the dataplane.
AtMostOneOf: [elicitation entra]
Optional: {}
entElicitation EntElicitationCfgentElicitation configures how the solo STS elicits and stores an upstream user
credential for this backend. It replaces the deprecated
tokenExchange.elicitation secret-as-config approach; setting both is rejected.
ExactlyOneOf: [interactive brokered]
Optional: {}
entTokenExchange EntTokenExchangeEntTokenExchange configures proxy-side OAuth-family token exchange using
enterprise provider presets.
ExactlyOneOf: [okta google solo entra]
Optional: {}
entCrossAppAccess EntCrossAppAccessEntCrossAppAccess configures Cross App Access (Identity Assertion / ID-JAG)
with enterprise-only subject token support, such as SAML 2.0 assertions.
Use the OSS auth.crossAppAccess policy for plain OIDC ID token subjects.
Optional: {}
entAws EntAwsAuthEntAws configures AWS backend authentication with enterprise-only STS
AssumeRole chaining (a sequence of roles, each with an optional external
ID). Use the OSS auth.aws policy for implicit/explicit credentials or a
single AssumeRole call without chaining.
Optional: {}
workloadIdentity WorkloadIdentityConfigworkloadIdentity selects how the gateway presents workload identity to the
upstream. Mutually exclusive with the other auth/tokenExchange variants.
Optional: {}

EnterpriseAgentgatewayPolicyFrontend

Appears in:

FieldDescriptionDefaultValidation
tcp FrontendTCPSettings for managing incoming TCP connections.Optional: {}
networkAuthorization AuthorizationCEL authorization on downstream network connections.
This runs before protocol handling and is intended for L4 access control,
for example using source.address with cidr(...).containsIP(...).
Optional: {}
tls FrontendTLSSettings for managing incoming TLS connections.Optional: {}
http FrontendHTTPSettings for managing incoming HTTP requests.Optional: {}
proxyProtocol FrontendProxyProtocolSettings 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.
Optional: {}
connect FrontendConnectSettings for downstream HTTP CONNECT handling.
If unset, CONNECT requests are rejected with Method Not Allowed.
Optional: {}
accessLog AccessLogAccess logging configuration.Optional: {}
tracing TracingOpenTelemetry tracing settings.ExactlyOneOf: [backendRef url]
Optional: {}
metrics MetricLabelsCustom Prometheus metric label configuration.
CEL expressions are evaluated per-request and added as labels to all
Prometheus metrics exposed by agentgateway.
Optional: {}

EnterpriseAgentgatewayPolicySpec

EnterpriseAgentgatewayPolicySpec defines the desired state of EnterpriseAgentgatewayPolicy

Validation:

  • ExactlyOneOf: [targetRefs targetSelectors]

Appears in:

FieldDescriptionDefaultValidation
targetRefs LocalPolicyTargetReferenceWithSectionName arraytargetRefs specifies the target resources by reference to attach the policy to.MaxItems: 16
MinItems: 1
Optional: {}
targetSelectors LocalPolicyTargetSelectorWithSectionName arraytargetSelectors specifies the target selectors to select resources to attach the policy to.MaxItems: 16
MinItems: 1
Optional: {}
strategy PolicyStrategystrategy defines how this policy participates in policy merging and conflict resolution.
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.
Optional: {}
description stringdescription is an optional human-readable summary of what the policy does.MaxLength: 1024
Optional: {}
imports Import arrayKubernetes resources whose data is exposed to CEL expressions as the
top-level imports object. Each import is exposed as imports.<alias>,
with the resource’s data keys as fields. Values that parse as JSON are
exposed as structured values; anything else is exposed as a string.
Secret values are redacted; call imports.<alias>.unredacted() to use
the actual data.
Imports are visible only to this policy’s expressions, except for ImportScope: Global imports,
which are visible to all policies on a Gateway and cannot be declared alongside policy.
The controller watches referenced resources and sends changes to the
gateway. After the gateway applies the update, already-compiled expressions
observe the new value on their next evaluation; the policy does not need to
be recreated.
Referenced resources must be in this policy’s namespace.
MaxItems: 16
MinItems: 1
Optional: {}
importScope ImportScopeimportScope controls where imports are visible. By default, imports are visible only
on the policy that declares them.
Enum: [Policy Global]
Optional: {}
frontend EnterpriseAgentgatewayPolicyFrontendfrontend settings for incoming traffic. Targets Gateways only. Field-level merge.Optional: {}
traffic EnterpriseAgentgatewayPolicyTraffictraffic settings for request processing. Targets Gateway/Listener(ListenerSet)/Route/RouteRule. Field-level merge; precedence: Gateway < Listener < Route < RouteRule.AtMostOneOf: [extProc entWAF]
Optional: {}
backend EnterpriseAgentgatewayPolicyBackendbackend settings for connecting to destinations. Targets Gateway/Listener(ListenerSet)/Route/RouteRule/Service/Backend. Applies per backend; precedence: Gateway < Listener < Route < RouteRule < Backend/Service.AtMostOneOf: [auth workloadIdentity tokenExchange entTokenExchange entCrossAppAccess entAws]
Optional: {}

EnterpriseAgentgatewayPolicyTraffic

EnterpriseAgentgatewayPolicyTraffic defines the desired state of EnterpriseAgentgatewayPolicyTraffic

Validation:

  • AtMostOneOf: [extProc entWAF]

Appears in:

FieldDescriptionDefaultValidation
phase PolicyPhaseThe phase to apply the traffic policy to. If the phase is PreRouting,
the targetRef must be a Gateway or a Listener. PreRouting is
typically used only when a policy needs to influence the routing
decision.
Even when using PostRouting mode, the policy can target the
Gateway or Listener. This is a helper for applying the policy to all
routes under that Gateway or Listener, and follows the merging logic
described above.
Note: PreRouting and PostRouting rules do not merge together. These
are independent execution phases. That is, all PreRouting rules will
merge and execute, then all PostRouting rules will merge and execute.
If unset, this defaults to PostRouting.
Optional: {}
transformation TransformationOrConditionalMutates and transforms requests and responses
before forwarding them to the destination.
Optional: {}
extProc ExtProcOrConditionalExternal processing configuration for the policy.Optional: {}
extAuth ExtAuthOrConditionalExternal authentication configuration for the policy.
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.
Optional: {}
rateLimit RateLimitsOrConditionalRate limiting configuration for the policy.
This limits the rate at which requests are processed.
Optional: {}
cors CORSCORS configuration for the policy.Optional: {}
csrf CSRFCross-Site Request Forgery (CSRF) policy for this traffic policy.
The CSRF policy has the following behavior:
* Safe methods (GET, HEAD, OPTIONS) are automatically allowed.
* Requests without Sec-Fetch-Site or Origin headers are assumed to
be same-origin or non-browser requests and are allowed.
* Otherwise, the Sec-Fetch-Site header is checked, with a fallback to
comparing the Origin header to the Host header.
Optional: {}
headerModifiers HeaderModifiersRequest and response header modification policy.Optional: {}
hostRewrite HostnameRewriteHow to rewrite the Host header for requests.
If the HTTPRoute urlRewrite filter already specifies a host rewrite,
this setting is ignored.
Optional: {}
timeouts TimeoutsRequest timeouts.
It is applicable to HTTPRoute resources and ignored for other targeted
kinds.
Optional: {}
retry RetryRetry policy.Optional: {}
authorization AuthorizationAccess 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.
Optional: {}
jwtAuthentication JWTAuthenticationAuthenticates users based on JWT tokens.Optional: {}
basicAuthentication BasicAuthenticationAuthenticates users based on the Basic
authentication scheme (RFC 7617), where a username and password are
encoded in the request.
ExactlyOneOf: [users secretRef]
Optional: {}
apiKeyAuthentication APIKeyAuthenticationAuthenticates users based on a configured API
key.
ExactlyOneOf: [secretRef secretSelector configMapSelector]
Optional: {}
directResponse DirectResponseOrConditionalSends a direct response to the
client.
Optional: {}
buffer BufferBuffers 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.
Warning: large bodies can lead to excessive memory usage in the proxy. Utilize with care, or with strict limits.
Optional: {}
compression CompressionCompresses responses sent to the client and decompresses request bodies before forwarding.Optional: {}
delay DelayInjects artificial latency before forwarding requests, for
fault-injection testing.
Optional: {}
authorization EntAuthorizationOptional: {}
entRateLimit EnterpriseAgentgatewayRateLimitRateLimit defines the Enterprise rate limit configuration for the traffic policyOptional: {}
entExtAuth EnterpriseAgentgatewayExtAuthExtAuth defines the Enterprise external authorization configuration for the traffic policyOptional: {}
entWAF EnterpriseAgentgatewayWAFWAF defines the Enterprise web application firewall configuration for the traffic policyAtMostOneOf: [wafServerRef disable]
ExactlyOneOf: [wafPolicyRef disable]
Optional: {}
entBudgetEnforcement BudgetEnforcementConfigentBudgetEnforcement configures budget enforcement for AI workloads targeted
by this policy. When set, the controller discovers
EnterpriseAgentgatewayBudget resources and applies their limits to
matching traffic.
Omit this field on a more-specific policy to explicitly disable budget
enforcement for the selected routes or targets (overriding a broader
policy that has entBudgetEnforcement set).
Optional: {}
entWptEnforcement WptEnforcementConfigentWptEnforcement configures receive-side enforcement of WIMSE Workload
Proof Tokens. Target it at a Gateway (enforced at that listener) or at a
Service (enforced at the Service’s waypoint).
Optional: {}
entPlugin EnterpriseAgentgatewayPluginOrConditionalentPlugin specifies a native plugin to execute. The plugin
should already be loaded into the proxy, typically through
EnterpriseAgentgatewayParameters.spec.plugins.
A plugin policy can be conditionally set by nesting configuration under the conditional field.
Optional: {}

EnterpriseAgentgatewayRateLimit

Appears in:

FieldDescriptionDefaultValidation
global AgwGlobalRateLimitGlobal rate limit configurationRequired: {}

EnterpriseAgentgatewayRoleBinding

EnterpriseAgentgatewayRoleBinding grants a set of roles to a set of subjects. A role is a name; EnterpriseAgentgatewayPolicy authorization rules require it by the same name. Subjects are defined in terms of dimensions, named CEL expressions from the dimensions ConfigMap.

Appears in:

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayRoleBinding
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.Optional: {}
spec EnterpriseAgentgatewayRoleBindingSpecDesired configuration.Required: {}
status EnterpriseAgentgatewayRoleBindingStatusCurrent status.Optional: {}

EnterpriseAgentgatewayRoleBindingList

EnterpriseAgentgatewayRoleBindingList is a list of EnterpriseAgentgatewayRoleBinding resources.

FieldDescriptionDefaultValidation
apiVersion stringenterpriseagentgateway.solo.io/v1alpha1
kind stringEnterpriseAgentgatewayRoleBindingList
kind stringKind 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
Optional: {}
apiVersion stringAPIVersion 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
Optional: {}
metadata ListMetaRefer to Kubernetes API documentation for fields of metadata.
items EnterpriseAgentgatewayRoleBinding array

EnterpriseAgentgatewayRoleBindingSpec

EnterpriseAgentgatewayRoleBindingSpec defines the desired state of EnterpriseAgentgatewayRoleBinding.

Appears in:

FieldDescriptionDefaultValidation
roles string arrayroles names the roles every subject of this binding holds.MaxItems: 64
MinItems: 1
items:MaxLength: 253
items:MinLength: 1
items:Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Required: {}
subjects RoleBindingSubject arraysubjects identify request identities granted the referenced roles. Any matching subject grants the roles.MaxItems: 256
MinItems: 1
Required: {}

EnterpriseAgentgatewayRoleBindingStatus

EnterpriseAgentgatewayRoleBindingStatus defines the observed state of EnterpriseAgentgatewayRoleBinding.

Appears in:

FieldDescriptionDefaultValidation
conditions Condition arrayconditions describe the current state of the role binding resource.Optional: {}

EnterpriseAgentgatewayWAF

Validation:

  • AtMostOneOf: [wafServerRef disable]
  • ExactlyOneOf: [wafPolicyRef disable]

Appears in:

FieldDescriptionDefaultValidation
wafPolicyRef WAFPolicyRefWAFPolicyRef references the WAFPolicy used by the WAF server.Optional: {}
wafServerRef BackendObjectReferenceWAFServerRef references the extproc gRPC backend to use for WAF.
If not set, defaults to the provisioned waf-server for the GatewayClass of the parent Gateway.
Optional: {}
disable PolicyDisableDisable WAF. This is intended for inheritance/override behavior.Optional: {}

EntraClientAuth

Appears in:

FieldDescriptionDefaultValidation
clientId stringClientID is the Microsoft Entra application client ID.Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Required: {}
clientSecretRef LocalSecretKeyRefClientSecretRef references a same-namespace credential containing the Entra
client secret. The key defaults to clientSecret.
Mutually exclusive with certificateKeyPairRef; exactly one must be set.
Optional: {}
certificateKeyPairRef LocalSecretObjectRefCertificateKeyPairRef references a same-namespace credential containing a
PEM private key and X.509 certificate under the conventional tls.key and
tls.crt keys. The key signs the client assertion and the certificate
supplies its x5t#S256 thumbprint.
Mutually exclusive with clientSecretRef; exactly one must be set.
Optional: {}

EntraTokenExchangeCfg

EntraTokenExchangeCfg configures Microsoft Entra ID on-behalf-of token exchange against the public Entra cloud.

Appears in:

FieldDescriptionDefaultValidation
tenantId stringTenantID is the Microsoft Entra tenant ID used in the v2 token endpoint.Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Required: {}
scopes string arrayScopes are sent to the token endpoint as a space-delimited scope parameter.
Typically the downstream API’s application ID URI with a delegated permission
(e.g. “api://downstream-app/access_as_user”), or “/.default” to request every
permission already consented for the app.
MaxItems: 64
MinItems: 1
Required: {}
clientAuth EntraClientAuthClientAuth authenticates the gateway to Microsoft Entra.Required: {}
backendRef BackendObjectReferenceBackendRef references the backend for login.microsoftonline.com.Required: {}

EntraTokenExchangeConfig

EntraTokenExchangeConfig holds configuration for Microsoft Entra ID (Azure AD) token exchange using the OBO (On-Behalf-Of) flow with JWT bearer assertion (grant_type: urn:ietf:params:oauth:grant-type:jwt-bearer).

The token endpoint is derived as: https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token

The following parameters are sent automatically:

  • grant_type: urn:ietf:params:oauth:grant-type:jwt-bearer
  • assertion: the incoming access token (subject_token from the token exchange request)
  • requested_token_use: on_behalf_of

Deprecated: use EntraTokenExchangeCfg under entTokenExchange.entra, which translates to the same proxy implementation with a richer API.

Appears in:

FieldDescriptionDefaultValidation
tenantId stringTenantID is the Azure AD tenant ID used to construct the token endpoint URL.
The token endpoint is: https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Required: {}
clientId stringClientID is the application (client) ID that the Microsoft Entra admin center assigned
to your app in the App registrations page. This identifies the middle-tier API application
that is requesting a token on behalf of the user.
Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Required: {}
scope stringScope is a space-separated list of scopes for the token request.
For downstream API access, this is typically the application ID URI of the target API
with the desired permissions (e.g., “api://downstream-app/.default” or “api://downstream-app/access_as_user”).
MinLength: 1
Required: {}
clientSecretRef SecretKeyRefClientSecretRef references a key in a Kubernetes Secret containing the client secret.
The Secret must exist in the same namespace as the policy that references it.
The client secret is generated for your app in the Microsoft Entra admin center
App registrations page. This is used together with ClientID to authenticate
the middle-tier application to Entra ID.
Required: {}

ExtCacheConfiguration

ExtCacheConfiguration configures the shared cache backend used by rateLimiter (and, in the future, other extensions that need a redis-compatible cache).

Appears in:

FieldDescriptionDefaultValidation
enabled booleanEnabled indicates whether the extension is enabled.Optional: {}
image ImageImage is the container image configuration.Optional: {}
resources ResourceRequirementsResources are the compute resources required by this container.
See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Optional: {}
env EnvVar arrayEnv are additional environment variables for the container.
An entry replaces any variable of the same name set by default. The
Deployment overlay is applied afterwards as a strategic merge patch, which
merges fields within a matching entry rather than replacing it; to switch
an entry between value and valueFrom there, set the other field to null.
Optional: {}
deployment KubernetesResourceOverlayDeployment allows specifying overrides for the generated Deployment resource.
Use this for advanced customization not covered by the typed config fields,
such as adding initContainers, sidecars, or removing security contexts for OpenShift.
Optional: {}
service KubernetesResourceOverlayService allows specifying overrides for the generated Service resource.Optional: {}
serviceAccount KubernetesResourceOverlayServiceAccount allows specifying overrides for the generated ServiceAccount resource.Optional: {}
podDisruptionBudget KubernetesResourceOverlayPodDisruptionBudget allows creating a PodDisruptionBudget for this extension.
If absent, no PDB is created. If present, a PDB is created with its selector
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated PDB.
Optional: {}
horizontalPodAutoscaler KubernetesResourceOverlayHorizontalPodAutoscaler allows creating a HorizontalPodAutoscaler for this extension.
If absent, no HPA is created. If present, an HPA is created with its scaleTargetRef
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated HPA.
Optional: {}
verticalPodAutoscaler KubernetesResourceOverlayVerticalPodAutoscaler allows creating a VerticalPodAutoscaler for this extension.
If absent, no VPA is created. If present, a VPA is created with its targetRef
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated VPA.
Optional: {}
redis ExtCacheRedisConfigurationRedis points the rate-limiter at a durable, externally managed redis
instance (for example a cloud provider’s managed cache, such as GCP
Memorystore or AWS ElastiCache) instead of the in-cluster instance this
chart otherwise auto-provisions. When set, no in-cluster ext-cache
Deployment/Service is created; the rate-limiter connects to Redis.URL
directly.
Optional: {}
auth ExtCacheRedisAuthConfigurationAuth configures username/password authentication against the ext-cache
redis instance. Applies whether that instance is the in-cluster
default or an external one configured via Redis - most managed redis
offerings (including GCP Memorystore and AWS ElastiCache) support or
require AUTH. When unset, the rate-limiter connects without
authentication.
Optional: {}

ExtCacheRedisAuthConfiguration

ExtCacheRedisAuthConfiguration sources redis AUTH credentials from a Kubernetes Secret. The Secret must exist in the same namespace the rate-limiter extension is deployed into.

Appears in:

FieldDescriptionDefaultValidation
secretName stringSecretName is the name of the Secret holding the redis credentials.MinLength: 1
Required: {}
passwordKey stringPasswordKey is the key within SecretName holding the redis password.
Defaults to “password”.
Optional: {}
usernameKey stringUsernameKey is the key within SecretName holding the redis username.
Omit for password-only AUTH (for example redis’s legacy requirepass,
or a managed instance - such as Memorystore - that doesn’t support
ACL-based usernames): no REDIS_USER is set and the password alone is
used to authenticate.
Optional: {}

ExtCacheRedisConfiguration

ExtCacheRedisConfiguration points at an externally managed redis instance.

Appears in:

FieldDescriptionDefaultValidation
url stringURL is the durable host:port of the externally managed redis instance,
for example the private IP of a GCP Memorystore or AWS ElastiCache
instance. Setting this opts out of the in-cluster ext-cache instance
this chart would otherwise auto-provision.
MinLength: 1
Required: {}
db stringDB selects the redis logical database index. Defaults to “0”.Optional: {}

ExtensionDeployment

ExtensionDeployment configures an extension deployment (extauth, ratelimiter, extcache). extCache is a requirement of extauth and rateLimiter, so if either of those extensions are enabled, extCache will be auto-provisioned with default settings unless the user explicitly disables it.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanEnabled indicates whether the extension is enabled.Optional: {}
image ImageImage is the container image configuration.Optional: {}
resources ResourceRequirementsResources are the compute resources required by this container.
See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Optional: {}
env EnvVar arrayEnv are additional environment variables for the container.
An entry replaces any variable of the same name set by default. The
Deployment overlay is applied afterwards as a strategic merge patch, which
merges fields within a matching entry rather than replacing it; to switch
an entry between value and valueFrom there, set the other field to null.
Optional: {}
deployment KubernetesResourceOverlayDeployment allows specifying overrides for the generated Deployment resource.
Use this for advanced customization not covered by the typed config fields,
such as adding initContainers, sidecars, or removing security contexts for OpenShift.
Optional: {}
service KubernetesResourceOverlayService allows specifying overrides for the generated Service resource.Optional: {}
serviceAccount KubernetesResourceOverlayServiceAccount allows specifying overrides for the generated ServiceAccount resource.Optional: {}
podDisruptionBudget KubernetesResourceOverlayPodDisruptionBudget allows creating a PodDisruptionBudget for this extension.
If absent, no PDB is created. If present, a PDB is created with its selector
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated PDB.
Optional: {}
horizontalPodAutoscaler KubernetesResourceOverlayHorizontalPodAutoscaler allows creating a HorizontalPodAutoscaler for this extension.
If absent, no HPA is created. If present, an HPA is created with its scaleTargetRef
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated HPA.
Optional: {}
verticalPodAutoscaler KubernetesResourceOverlayVerticalPodAutoscaler allows creating a VerticalPodAutoscaler for this extension.
If absent, no VPA is created. If present, a VPA is created with its targetRef
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated VPA.
Optional: {}

ExternalSecretData

Appears in:

FieldDescriptionDefaultValidation
materializedKey stringMaterializedKey is the data key of the in-memory materialized credential.
No Kubernetes Secret is involved; translators read the material directly.
MaxLength: 253
MinLength: 1
Required: {}
remoteRef ExternalSecretRemoteRefRemoteRef identifies the provider object and property to read.Required: {}

ExternalSecretRemoteRef

Appears in:

FieldDescriptionDefaultValidation
key stringKey is the provider object key, interpreted relative to the referenced
store. Keeping store config separate from this ref lets a store move to a
compatible backend without changing every ExternalSecret.
For file stores, key names either a single file or a directory. A single
file is materialized as raw bytes when property is omitted; if it parses as
a YAML/JSON map, its top-level keys are also selectable by property. A
directory exposes its files as properties.
MaxLength: 1024
MinLength: 1
Required: {}
property stringProperty selects one value inside the provider object. For file stores, it
is either a top-level key in a map file or a file name in a directory.
When omitted, scalar objects are materialized as raw bytes and map objects
as a JSON map of all properties.
MaxLength: 253
Optional: {}
version stringVersion pins a provider-specific version where the store supports it.
Stores without versioning reject it.
MaxLength: 64
Optional: {}

ExternalSecretStoreRef

Appears in:

FieldDescriptionDefaultValidation
name stringName is the referenced external secret store. Must be an RFC 1123 DNS
subdomain (Kubernetes object name rules) so storeRef can become a
reference to a namespaced store object without breaking existing refs.
MaxLength: 253
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
Required: {}

GoogleTokenExchangeCfg

Appears in:

FieldDescriptionDefaultValidation
audience stringAudience is sent as the RFC 8693 audience parameter.MinLength: 1
Required: {}
scopes string arrayScopes are sent to the token endpoint as a space-delimited scope parameter.MaxItems: 64
MinItems: 1
Optional: {}
subjectTokenType OAuthTokenTypeSubjectTokenType is the token type of the incoming subject token. Defaults to Jwt.Optional: {}
backendRef BackendObjectReferenceBackendRef references the backend for the Google STS token endpoint. This
typically points to a backend whose host is sts.googleapis.com.
Required: {}

Import

Import references one Kubernetes resource whose data is exposed to CEL.

Appears in:

FieldDescriptionDefaultValidation
kind ImportKindKind of the referenced resource.Enum: [ConfigMap Secret]
Required: {}
name stringName of the referenced resource, in this policy’s namespace.MaxLength: 253
MinLength: 1
Required: {}
alias stringField name under the imports object. Defaults to the resource name.MaxLength: 253
MinLength: 1
Optional: {}

ImportKind

Underlying type: string

ImportKind is the kind of resource an Import references.

Validation:

  • Enum: [ConfigMap Secret]

Appears in:

FieldDescription
ConfigMap
Secret

ImportScope

Underlying type: string

ImportScope controls where imported data is visible.

Validation:

  • Enum: [Policy Global]

Appears in:

FieldDescription
PolicyImportScopePolicy will make the import and aliases available only on this policy’s expressions.
Aliases set at the policy scope override those set at the global scope.
GlobalImportScopeGlobal make the data and aliases available to expressions in all policies on the Gateway.
Global imports cannot be declared alongside policy settings.
If the same alias is used for multiple global imports on the same gateway, the alias will reference
the data imported by the oldest importing policy.

InteractiveElicitation

InteractiveElicitation is an enterprise UI-driven elicitation.

Appears in:

FieldDescriptionDefaultValidation
oauth InteractiveOAuthConfigoauth configures the OAuth client configuration the UI will use to perform an
OAuth 2.0 authorization-code flow. After the user completes the flow, the tokens
will be stored and used for requests to the backend.
Required: {}

InteractiveOAuthConfig

InteractiveOAuthConfig configures the OAuth client used by the enterprise UI, specifically for performing an OAuth 2.0 authorization-code flow to retrieve tokens which will be stored for requests going to the backend.

Appears in:

FieldDescriptionDefaultValidation
clientId stringClientID is the pre-registered OAuth client ID.Required: {}
clientSecretRef LocalSecretKeyRefClientSecretRef references the same-namespace credential holding the OAuth
client secret. For a Kubernetes Secret (the default kind), set key to select
a specific entry. When omitted, client_secret is preferred, with
clientSecret as a fallback.
Optional: {}
certificateKeyPairRef LocalSecretObjectRefCertificateKeyPairRef references a same-namespace credential containing a PEM key
pair under the conventional tls.key and tls.crt keys for certificate-based OAuth
client authentication. The current JWT client assertion profile is tailored to
Microsoft Entra.
Optional: {}
scopes string arrayScopes requested during the OAuth flow.Optional: {}
redirectUri stringRedirectURI is the OAuth redirect URI registered with the provider.Required: {}
authorizeUrl stringAuthorizeURL is the OAuth authorization endpoint.Required: {}
accessTokenUrl stringAccessTokenURL is the OAuth token endpoint.Required: {}

NotificationChannel

NotificationChannel is a single alert destination for a budget notification.

Appears in:

FieldDescriptionDefaultValidation
type NotificationChannelTypetype selects the payload format posted to url.Required: {}
url stringurl is the http or https endpoint to send the alert to (POST, unless
headers sets :method).
MaxLength: 2048
MinLength: 1
Pattern: ^https?://
Required: {}
secretRef LocalSecretKeyRefsecretRef optionally references a same-namespace credential holding a
bearer token or Slack signing secret to send with requests to url. It is
sent as Authorization: Bearer <secret> unless headers declares
Authorization.
Optional: {}
headers HeaderTransformation arrayheaders are additional HTTP headers whose values are CEL expressions
(evaluated against the notification context; must resolve to a string). The
context exposes budget (id, warningThresholdPercent, currentUsage,
currentLimit, remaining, unit, window), dimensions (every dimension
resolved for the request whose usage crossed the threshold, e.g.
dimensions.user or dimensions.model, even ones the budget isn’t keyed on;
a missing value is absent), and imports. For a
credential other than a bearer token, use a sensitive import, e.g.
'MagicKey ' + imports.magickey.unredacted().
A name of :path / :method rewrites the request verb or the path and
query (:path replaces any query on url, so carry a query token in it).
A header whose expression fails is not sent.
MaxItems: 20
Optional: {}
body CELExpressionbody is a CEL expression for the request body, evaluated against the same
context as headers. It replaces the default payload: a string or bytes
value is sent verbatim (with no default Content-Type), anything else
JSON-encoded as application/json. On compile/eval failure the
notification is skipped (recorded as a failed delivery), not defaulted.
MaxLength: 16384
MinLength: 1
Optional: {}

NotificationChannelType

Underlying type: string

NotificationChannelType identifies the transport used to deliver a budget notification.

Appears in:

FieldDescription
WebhookNotificationChannelTypeWebhook posts a generic JSON payload to url.
SlackNotificationChannelTypeSlack posts a Slack-formatted payload to url (a
Slack incoming webhook URL).

OktaClientAuth

Appears in:

FieldDescriptionDefaultValidation
clientId stringClientID is the Okta OAuth client ID.MinLength: 1
Required: {}
secretRef LocalSecretObjectRefSecretRef references a same-namespace Secret containing the clientSecret key.Required: {}
authMethod OktaClientAuthMethodAuthMethod selects how the client secret is sent to Okta. Defaults to ClientSecretBasic.Enum: [ClientSecretBasic ClientSecretPost]
Optional: {}

OktaClientAuthMethod

Underlying type: string

Appears in:

OktaTokenExchangeCfg

Appears in:

FieldDescriptionDefaultValidation
audience stringAudience is sent as the RFC 8693 audience parameter.MinLength: 1
Optional: {}
scopes string arrayScopes are sent to the token endpoint as a space-delimited scope parameter.MaxItems: 64
MinItems: 1
Optional: {}
authServerId stringAuthServerID selects a custom Okta authorization server. When omitted,
the org authorization server endpoint is used.
MinLength: 1
Optional: {}
clientAuth OktaClientAuthClientAuth authenticates the gateway to Okta using a client secret.Required: {}
backendRef BackendObjectReferenceBackendRef references the Okta token endpoint target.Required: {}

PKCEMode

Underlying type: string

PKCEMode controls how upstream PKCE is selected.

Appears in:

FieldDescription
AutoPKCEModeAuto uses discovery metadata to select PKCE.
AlwaysPKCEModeAlways always uses PKCE.
PublicOnlyPKCEModePublicOnly uses PKCE only for public clients.

PolicyDisable

PolicyDisable is used to disable a policy.

Appears in:

PromptGuardMasking

Underlying type: string

PromptGuardMasking controls how request masks are handled in the response.

Validation:

  • Enum: [Reversible]

Appears in:

FieldDescription
ReversiblePromptGuardMaskingReversible restores masked request values in the response.

PurviewDlp

PurviewDlp configures Microsoft Purview DLP integration via the Microsoft Graph processContent API. Policies can provide Graph auth credentials directly or enable token exchange for the guardrail call path.

Appears in:

FieldDescriptionDefaultValidation
tenantId stringTenantID is the Microsoft Entra (Azure AD) tenant ID.Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Required: {}
clientId stringClientID is the OAuth2 client ID (app registration client ID).Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Required: {}
purviewAppName stringPurviewAppName is the application name registered in Microsoft Purview.MinLength: 1
Required: {}
guardrailName stringGuardrailName is the name of the DLP policy to evaluate content against.MinLength: 1
Required: {}
userId stringUserID is the Entra Object ID of the user for DLP evaluation. It is required
for the legacy app-credential path, which addresses the user explicitly via
the Graph /users/{userId} endpoint. It is NOT needed when
policies.tokenExchange.entra enables per-user OBO: the delegated token
identifies the signed-in user, so the call uses /me and this field is ignored.
Pattern: ^[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}$
Optional: {}
apiVersion stringApiVersion is the Microsoft Graph API version to use. Defaults to “v1.0”.
Set to “beta” to access preview features not yet in the stable API.
Optional: {}
activity PurviewDlpActivityActivity optionally overrides the Microsoft Graph activityMetadata.activity
value used for Purview DLP evaluation.
For text-based LLM traffic, request guards usually use “uploadText” and
response guards usually use “downloadText”.
“both” is an Agentgateway convenience value that evaluates the content as
both “uploadText” and “downloadText”; it is not a raw Graph enum value.
File activities such as “uploadFile” and “downloadFile” are not exposed by
this text-only integration.
Defaults to “uploadText” on request guards and “downloadText” on response guards.
Enum: [downloadText uploadText both]
Optional: {}
policies EntTargetPoliciespolicies controls policies for communicating with Microsoft Purview.
Use auth.azure to provide Graph auth credentials directly, or tokenExchange
to use the token exchange path for guardrail calls.
AtMostOneOf: [auth tokenExchange workloadIdentity]
Optional: {}

PurviewDlpActivity

Underlying type: string

PurviewDlpActivity defines which activityMetadata.activity value Agentgateway uses for Purview DLP evaluation of text content.

Appears in:

FieldDescription
downloadText
uploadText
both

RateLimitConfigRef

RateLimitConfigRef selects the RateLimitConfig resource with the rate limit policy that you want to use. For more details, see the RateLimitConfig reference in the Gloo Edge docs.

Appears in:

FieldDescriptionDefaultValidation
name ObjectNameName is the name of the RateLimitConfig resource.Required: {}
namespace NamespaceNamespace is the namespace of the RateLimitConfig resource.
If not set, defaults to the namespace of the EnterpriseAgentgatewayPolicy.
MaxLength: 63
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}

RoleBindingSubject

RoleBindingSubject identifies request identities by dimension values.

Appears in:

FieldDescriptionDefaultValidation
dimensions object (keys:string, values:RoleSubjectValue)Dimensions map ids from the dimensions ConfigMap to accepted per-request
values. Values within a dimension are ORed; all dimensions must match.
"*" matches any present and non-empty value. If a request value resolves
to a list, any element may match any accepted value.
MaxProperties: 16
MinProperties: 1
Required: {}

RoleSubjectValue

Underlying type: string

RoleSubjectValue is a dimension value in a role binding subject map.

Validation:

  • MaxLength: 256
  • MinLength: 1

Appears in:

SecretKeyRef

SecretKeyRef references a specific key within a Kubernetes Secret. The Secret must exist in the same namespace as the policy that references it.

Appears in:

FieldDescriptionDefaultValidation
name stringName is the name of the Kubernetes Secret containing the sensitive value.MinLength: 1
Required: {}
key stringKey is the key within the Secret’s data map that contains the value.
For example, if the Secret has data.client_secret, set this to “client_secret”.
MinLength: 1
Required: {}

SoloElicitationConfig

SoloElicitationConfig, when present on a SoloTokenExchangeCfg, selects the elicitation STS token endpoint. It is intentionally empty today; its presence is the signal. Fields may be added later to configure elicitation behavior.

Appears in:

SoloTokenExchangeCfg

SoloTokenExchangeCfg configures token exchange against the Solo enterprise STS. Currently only Backend targets are supported.

Appears in:

FieldDescriptionDefaultValidation
elicitation SoloElicitationConfigElicitation signals that the token exchange is for a resource that uses
some type of elicitation to either retrieve the token that should be swapped
or otherwise controls the authorization of performing this exchange.
Optional: {}
backendRef BackendObjectReferenceBackendRef references the Solo enterprise STS token endpoint. When omitted,
it defaults to the provisioned enterprise-agentgateway token-exchange
Service in the control-plane namespace.
Optional: {}

StepBackendRefKind

Underlying type: string

StepBackendRefKind selects the resource type referenced by a custom MCP step backendRef.

Appears in:

FieldDescription
Service
AgentgatewayBackend
EnterpriseAgentgatewayBackend

TokenExchangeCfg

Validation:

  • AtMostOneOf: [elicitation entra]

Appears in:

FieldDescriptionDefaultValidation
mode TokenExchangeModeMode indicates the token exchange mode to use.
Defaults to empty, which allows for both Elicitation and Exchange
Enum: [ElicitationOnly ExchangeOnly]
Optional: {}
elicitation TokenExchangeElicitationConfigElicitation configures which OAuth client Secret should be used for elicitations and token storage
associated with this backend. Elicitation is the OAuth flow where the proxy redirects users to
authenticate and obtain credentials.
The token exchange server keys provider selection by the “resource” value used in elicitation APIs.
When this policy targets an AgentgatewayBackend, the backend name (and also “namespace/name”) is
used as the resource key for mapping to this SecretName.
Deprecated: use the typed top-level entElicitation field instead.
Optional: {}
entra EntraTokenExchangeConfigEntra configures Microsoft Entra ID (Azure AD) token exchange
using the OBO (On-Behalf-Of) flow with JWT bearer assertion.
Use this when the backend service requires an Entra-issued token and
the incoming request has a user token that needs to be exchanged.
Mutually exclusive with elicitation.
Deprecated: use the proxy-native entTokenExchange.entra field instead.
Optional: {}

TokenExchangeElicitationConfig

TokenExchangeElicitationConfig configures the OAuth elicitation flow for obtaining user credentials. Elicitation is the OAuth flow where the proxy redirects users to authenticate.

Deprecated: use the typed top-level entElicitation field instead.

Appears in:

FieldDescriptionDefaultValidation
secretName stringSecretName is the name of the Kubernetes Secret in the same namespace as the policy
containing the OAuth client configuration (authorize_url, access_token_url, client_id, etc.).
This field is required unless Mode is set to ExchangeOnly.
Deprecated: use the typed top-level entElicitation field instead.
Required: {}
clientName stringClientName overrides the generated client name used during Dynamic Client Registration.
When set, it also overrides the client_name key in the referenced Secret.
Deprecated: use the typed top-level entElicitation field instead; its
brokered.chainedAuth.oauth.clientName is the canonical field. This
override is honored only with the legacy secretName path.
MaxLength: 128
Optional: {}

TokenExchangeMode

Underlying type: string

Appears in:

FieldDescription
ElicitationOnlyTokenExchangeModeElicitationOnly indicates that token exchange should not be performed, just eliciting the user to do the auth flow.
ExchangeOnlyTokenExchangeModeExchangeOnly indicates that elicitation errors should not be returned to the user.

TrustDomainValidationSpec

TrustDomainValidationSpec controls SPIFFE trust-domain chain verification on the proxy.

Appears in:

FieldDescriptionDefaultValidation
mode stringMode sets the VALIDATE_SPIFFE_TRUST_DOMAIN_NAMES environment variable on the proxy.
In STRICT mode, after standard certificate chain validation succeeds, the proxy walks
the verified peer cert chain (intermediates + trust anchor) and requires at least one
ancestor cert’s SAN to attest the leaf SPIFFE URI’s trust domain, blocking
trust-domain spoofing by compromised intermediates that share a common root.
Defaults to OFF.
Enum: [OFF STRICT]
Optional: {}

WAFAdminConfiguration

Appears in:

FieldDescriptionDefaultValidation
enabled booleanEnabled indicates whether the admin server is enabled. Defaults to false.Optional: {}

WAFConfiguration

Appears in:

FieldDescriptionDefaultValidation
enabled booleanEnabled indicates whether the extension is enabled.Optional: {}
image ImageImage is the container image configuration.Optional: {}
resources ResourceRequirementsResources are the compute resources required by this container.
See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Optional: {}
env EnvVar arrayEnv are additional environment variables for the container.
An entry replaces any variable of the same name set by default. The
Deployment overlay is applied afterwards as a strategic merge patch, which
merges fields within a matching entry rather than replacing it; to switch
an entry between value and valueFrom there, set the other field to null.
Optional: {}
deployment KubernetesResourceOverlayDeployment allows specifying overrides for the generated Deployment resource.
Use this for advanced customization not covered by the typed config fields,
such as adding initContainers, sidecars, or removing security contexts for OpenShift.
Optional: {}
service KubernetesResourceOverlayService allows specifying overrides for the generated Service resource.Optional: {}
serviceAccount KubernetesResourceOverlayServiceAccount allows specifying overrides for the generated ServiceAccount resource.Optional: {}
podDisruptionBudget KubernetesResourceOverlayPodDisruptionBudget allows creating a PodDisruptionBudget for this extension.
If absent, no PDB is created. If present, a PDB is created with its selector
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated PDB.
Optional: {}
horizontalPodAutoscaler KubernetesResourceOverlayHorizontalPodAutoscaler allows creating a HorizontalPodAutoscaler for this extension.
If absent, no HPA is created. If present, an HPA is created with its scaleTargetRef
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated HPA.
Optional: {}
verticalPodAutoscaler KubernetesResourceOverlayVerticalPodAutoscaler allows creating a VerticalPodAutoscaler for this extension.
If absent, no VPA is created. If present, a VPA is created with its targetRef
automatically configured to target the extension Deployment.
The metadata and spec fields from this overlay are applied to the generated VPA.
Optional: {}
logLevel WAFLogLevelLogLevel is the log level for the WAF extproc server. If not set, defaults to “info”.Enum: [error warn info debug trace]
Optional: {}
admin WAFAdminConfigurationAdmin configures the WAF admin server.Optional: {}
metrics WAFMetricsConfigurationMetrics configures the WAF metrics endpoint.Optional: {}

WAFLogLevel

Underlying type: string

Appears in:

FieldDescription
error
warn
info
debug
trace

WAFMetricsConfiguration

Appears in:

FieldDescriptionDefaultValidation
enabled booleanEnabled indicates whether the metrics endpoint is enabled. Defaults to true.Optional: {}

WAFPolicyRef

WAFPolicyRef selects the WAFPolicy resource with the WAF rules to use.

Appears in:

FieldDescriptionDefaultValidation
name ObjectNameName is the name of the WAFPolicy resource.Required: {}
namespace NamespaceNamespace is the namespace of the WAFPolicy resource.
If not set, defaults to the namespace of the EnterpriseAgentgatewayPolicy.
MaxLength: 63
MinLength: 1
Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
Optional: {}

WorkloadClaimsSpec

WorkloadClaimsSpec controls WIMSE workload identity claim processing on the proxy.

Appears in:

FieldDescriptionDefaultValidation
enabled booleanEnabled turns on workload identity claims. When true, the proxy is configured with
ENABLE_WORKLOAD_CLAIMS=true and a POD_UID downward-API environment variable so it
extracts peer-certificate claims on inbound HBONE (exposed via source.claims) and
requests its own Workload Identity Token from istiod for outbound HBONE / self
identification. Mirrors ztunnel’s workloadClaims.enabled. Defaults to false.
Optional: {}

WorkloadIdentityConfig

WorkloadIdentityConfig configures how the gateway presents workload identity to the upstream.

Appears in:

FieldDescriptionDefaultValidation
mode WorkloadIdentityModemode selects how the gateway presents workload identity.Enum: [SourceDelegation SelfIdentification]
Required: {}
emitProof booleanemitProof mints a WIMSE Workload Proof Token (WPT) alongside the WIT,
proving possession of the gateway’s key per request. Independent of
receive-side enforcement. Defaults to false.
When the upstream is off-mesh, proof emission is suppressed and no WIT
is sent; to present a plain WIT off-mesh, set mode without emitProof.
Optional: {}
proofLifetime DurationproofLifetime sets the validity window of each minted WPT. WPT lifetimes
must be short; receivers cap the accepted lifetime at 2 minutes, and a
larger value here is clamped down to stay within that bound. Defaults to
60s.
Optional: {}
bindAccessToken booleanbindAccessToken binds the request’s OAuth access token (Authorization:
Bearer) into the minted WPT’s ath claim (RFC 9449), so a receiver can
verify the proof and access token were presented together. Defaults to false.
Optional: {}
bindTransactionToken booleanbindTransactionToken binds the request’s transaction token (Txn-Token)
into the minted WPT’s tth claim. Defaults to false.
Optional: {}

WorkloadIdentityMode

Underlying type: string

WorkloadIdentityMode selects how the gateway presents workload identity to the upstream.

Validation:

  • Enum: [SourceDelegation SelfIdentification]

Appears in:

FieldDescription
SourceDelegationWorkloadIdentityModeSourceDelegation forwards the inbound source’s WIMSE
Workload-Identity-Token (WIT) header to the upstream unchanged.
SelfIdentificationWorkloadIdentityModeSelfIdentification has the gateway present its own
workload identity to the upstream.

WptEnforcementConfig

WptEnforcementConfig configures receive-side enforcement of WIMSE Workload Proof Tokens; when unset, no enforcement is applied. Attach the policy to a Gateway (enforced at that listener) or a Service (enforced at the Service’s waypoint). Enforcement is independent of emission (the backend-scoped workloadIdentity.emitProof flag).

Appears in:

FieldDescriptionDefaultValidation
mode WptEnforcementModemode selects the enforcement behavior.Enum: [Permissive RequireProof PeerBound]
Required: {}
audiences string arrayaudiences are the host patterns this enforcement point accepts in a received
WPT aud claim (the host of the aud authority), e.g. an ingress Service FQDN or
a “*.svc.cluster.local” wildcard. When set, they replace the audience derived
from the policy’s attachment (a Service hostname, or a Gateway listener
hostname). Rarely needed: on the supported mesh paths the derived audience
already aligns with what senders mint. This is an escape hatch for topologies
that decouple them — a non-empty HBONE listener hostname, a BackendTLS SNI
override, or an external peer-bound WPT client targeting a concrete virtual host.
MaxItems: 64
items:MinLength: 1
Optional: {}

WptEnforcementMode

Underlying type: string

WptEnforcementMode selects how received WIMSE Workload Proof Tokens are enforced. RequireProof suits hops downstream of an emitting gateway; PeerBound suits the edge workloads connect to directly.

Validation:

  • Enum: [Permissive RequireProof PeerBound]

Appears in:

FieldDescription
PermissiveWptEnforcementModePermissive validates a WPT when present. Invalid WPTs
are rejected. Requests missing WPTs are allowed and counted in metrics.
Intended for migration.
RequireProofWptEnforcementModeRequireProof requires a valid WPT. Missing or invalid
rejects the request.
PeerBoundWptEnforcementModePeerBound requires a valid WPT when one is present. A
request with no WPT is allowed only when its WIT is bound to the
authenticated mTLS peer; the proof chain starts here.

Shared Types

The following types are defined in the shared package and used across multiple APIs.

A2ABackend

A2A backend endpoint.

FieldTypeDescription
hostShortStringHostname or IP address of the A2A backend. Required.
portint32Port number of the A2A backend. Required.

AIBackend

AI backend configuration.

Validation:

  • ExactlyOneOf=provider;groups
FieldTypeDescription
provider*LLMProviderConfiguration for how to reach the configured LLM provider.
groups[]PriorityGroupGroups in priority order, where each group defines a set of LLM providers. The priority determines the priority of the backend endpoints chosen. Note: provider names must be unique across all providers in all priority groups. Backend policies may target a specific provider by name using targetRefs[].sectionName. Example configuration with two priority groups: groups: - providers: - azureopenai: deploymentName: gpt-4o-mini apiVersion: 2024-02-15-preview endpoint: ai-gateway.openai.azure.com - providers: - azureopenai: deploymentName: gpt-4o-mini-2 apiVersion: 2024-02-15-preview endpoint: ai-gateway-2.openai.azure.com policies: auth: secretRef: name: azure-secret TODO: enable this rule when we don’t need to support older k8s versions where this rule breaks // +kubebuilder:validation:XValidation:message=“provider names must be unique across groups”,rule=“self.map(pg, pg.providers.map(pp, pp.name)).map(p, self.map(pg, pg.providers.map(pp, pp.name)).filter(cp, cp != p).exists(cp, p.exists(pn, pn in cp))).exists(p, !p)”

AIPromptEnrichment

Enriches requests sent to the LLM provider by appending and prepending system prompts. Prompt enrichment allows you to add additional context to the prompt before sending it to the model. Unlike RAG or other dynamic context methods, prompt enrichment is static and is applied to every request. Note: Some providers, including Anthropic, do not support SYSTEM role messages, and instead have a dedicated system field in the input JSON. In this case, use the defaults setting to set the system field. The following example prepends a system prompt of Answer all questions in French. and appends Describe the painting as if you were a famous art critic from the 17th century. to each request that is sent to the openai HTTPRoute. name: openai-opt namespace: agentgateway-system spec: targetRefs: - group: gateway.networking.k8s.io kind: HTTPRoute name: openai ai: promptEnrichment: prepend: - role: SYSTEM content: “Answer all questions in French.” append: - role: USER content: “Describe the painting as if you were a famous art critic from the 17th century.”

FieldTypeDescription
prepend[]MessageMessages to prepend to the prompt sent by the client.
append[]MessageMessages to append to the prompt sent by the client.

AIPromptGuard

Prompt guards that block unwanted requests to the LLM provider and mask sensitive data. Prompt guards can be used to reject requests based on the content of the prompt, as well as mask responses based on the content of the response. This example rejects any request prompts that contain the string “credit card”, and masks any credit card numbers in the response. promptGuard: request: - response: message: “Rejected due to inappropriate content” regex: action: REJECT matches: - pattern: “credit card” name: “CC” response: - regex: builtins: - CREDIT_CARD action: MASK

Validation:

  • AtLeastOneFieldSet:fields=request;response
  • XValidation:rule="!has(self.streaming) || self.streaming != 'Enabled' || !has(self.response) || self.response.all(g, !has(g.scope) || g.scope.all(s, s == 'Messages'))",message="streaming response guards only support the Messages scope"
FieldTypeDescription
streamingPromptGuardStreamingModeApply prompt guards to streaming responses and realtime websocket messages. Defaults to disabled to preserve streaming throughput unless explicitly enabled.
request[]PromptguardRequestPrompt guards to apply to requests sent by the client.
response[]PromptguardResponsePrompt guards to apply to responses returned by the LLM provider.

APIKeyAuthentication

Validation:

  • ExactlyOneOf=secretRef;secretSelector;configMapSelector
FieldTypeDescription
modeAPIKeyAuthenticationModeValidation mode for API key authentication. Defaults to Strict.
secretRef*LocalSecretObjectRefCredential source, defaulting to a Kubernetes Secret, storing a set of API keys. If many keys are needed, secretSelector or configMapSelector can be used instead. Note that ConfigMap-backed API keys only support keyHash. Each entry in the credential data represents one API key. The key is an arbitrary identifier. The value can either be: * A string representing the API key. * A JSON object with key or keyHash, plus optional metadata. key contains the API key. keyHash contains a hashed API key in sha256:<hex> format. metadata contains arbitrary JSON metadata associated with the key, which may be used by other policies. For example, you may write an authorization policy allowing apiKey.group == 'sales'. Example: apiVersion: v1 kind: Secret metadata: name: api-key stringData: client1: | { “key”: “k-123”, “metadata”: { “group”: “sales”, “created_at”: “2024-10-01T12:00:00Z” } } client2: “k-456” client3: | { “keyHash”: “sha256:efa299afb8c12a36e47a790cbbf929caa06d13285950410463fb759af17d0dad”, “metadata”: { “group”: “engineering” } }
secretSelector*SecretSelectorSelects multiple Kubernetes Secret resources containing API keys. It is Secret-only; use secretRef for other credential kinds. If the same key is defined in multiple secrets, the behavior is undefined. Each entry in the Secret data represents one API key. The key is an arbitrary identifier. The value can either be: * A string representing the API key. * A JSON object with key or keyHash, plus optional metadata. key contains the API key. keyHash contains a hashed API key in sha256:<hex> format. metadata contains arbitrary JSON metadata associated with the key, which may be used by other policies. For example, you may write an authorization policy allowing apiKey.group == 'sales'. Example: apiVersion: v1 kind: Secret metadata: name: api-key stringData: client1: | { “key”: “k-123”, “metadata”: { “group”: “sales”, “created_at”: “2024-10-01T12:00:00Z” } } client2: “k-456”
configMapSelector*ConfigMapSelectorSelects multiple Kubernetes ConfigMap resources containing API keys. It is ConfigMap-only; use secretRef or secretSelector for Secret-backed credentials. If the same key is defined in multiple ConfigMaps, the behavior is undefined. Because ConfigMaps are not confidential, every entry sourced from a ConfigMap must use keyHash; a raw key value is rejected. Each entry in the ConfigMap data represents one API key. The key is an arbitrary identifier. The value must be a JSON object with keyHash, plus optional metadata. keyHash contains a hashed API key in sha256:<hex> format. metadata contains arbitrary JSON metadata associated with the key, which may be used by other policies. For example, you may write an authorization policy allowing apiKey.group == 'sales'. Example: apiVersion: v1 kind: ConfigMap metadata: name: api-key data: client1: | { “keyHash”: “sha256:efa299afb8c12a36e47a790cbbf929caa06d13285950410463fb759af17d0dad”, “metadata”: { “group”: “sales” } }
location*AuthorizationExtractionLocationWhere API keys are read from. If omitted, credentials are read from the Authorization header with the Bearer prefix.

APIKeyAuthenticationMode

Underlying type: string

AccessLog

Per-request access log settings.

FieldTypeDescription
preset*AccessLogPresetPreset selects the built-in field set for standard output access logs. When unset, legacy human-oriented fields are used. Otel selects the OTel-aligned built-in HTTP field set.
filter*CELExpressionCEL expression used to filter logs. A log will only be emitted if the expression evaluates to true.
attributes*LogTracingAttributesCustomizations to the key-value pairs that are logged.
otlp*OtlpAccessLogOTLP access log export to an OpenTelemetry-compatible backend.

AccessLogPreset

Underlying type: string

Action

Underlying type: string

Action to take if a regex pattern is matched in a request or response. The action applies to request and response matches alike. Note that Mask is not applied to streamed responses: matched content in a streamed response is passed through unmodified.

AgentExtAuthGRPC

FieldTypeDescription
contextExtensionsmap[string]stringAdditional arbitrary key-value pairs to send to the authorization server in the context_extensions field.
requestMetadatamap[string]CELExpressionMetadata to send to the authorization server. This maps to the metadata_context.filter_metadata field of the request, and allows dynamic CEL expressions. If unset, by default the envoy.filters.http.jwt_authn key is set if the JWT policy is used as well, for compatibility.

AgentExtAuthHTTP

FieldTypeDescription
path*CELExpressionPath 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 "/prefix/" + request.path.
redirect*CELExpressionOptional expression that determines a path to redirect to on authorization failure. This is useful to redirect to a sign-in page.
body*CELExpressionBody is a CEL expression that produces the HTTP authorization request body. Strings and bytes are used directly; other values are JSON-encoded.
allowedRequestHeaders[]ShortStringAdditional headers from the client request that will be sent to the authorization server. If unset, the following headers are sent by default: Authorization.
addRequestHeadersmap[string]CELExpressionAdditional headers to add to the request to the authorization server. While allowedRequestHeaders just passes the original headers through, addRequestHeaders allows defining custom headers based on CEL expressions.
allowedResponseHeaders[]ShortStringHeaders from the authorization response that will be copied into the request to the backend.
responseMetadatamap[string]CELExpressionMetadata fields to construct from the authorization response. These will be included under the extauthz variable in future CEL expressions. Setting this is useful for things like logging usernames, without needing to include them as headers to the backend, as allowedResponseHeaders would.

AgentgatewayBackendStatus

Current backend status.

FieldTypeDescription
conditions[]metav1.ConditionCurrent condition state for the backend.

AgentgatewayParametersLogging

FieldTypeDescription
levelstringLogging level in standard RUST_LOG syntax, for example info (the default), or a comma-separated per-module setting such as rmcp=warn,hickory_server::server::server_future=off,typespec_client_core::http::policies::logging=warn.
formatAgentgatewayParametersLoggingFormatLogging output format.

AgentgatewayParametersLoggingFormat

Underlying type: string

The default logging format is text.

AgentgatewayParametersWorkload

AgentgatewayParametersWorkload selects the Kubernetes workload kind used for a managed Gateway data plane.

FieldTypeDescription
kindAgentgatewayParametersWorkloadKindKind selects the Kubernetes workload kind. When unset, Deployment is used.

AgentgatewayParametersWorkloadKind

Underlying type: string

AgentgatewayParametersWorkloadKind selects the Kubernetes workload kind used for a managed Gateway data plane.

AnthropicConfig

Settings for the Anthropic LLM provider.

FieldTypeDescription
model*ShortStringModel name override, such as gpt-4o-mini. If unset, the model name is taken from the request.

AttributeAdd

FieldTypeDescription
nameShortStringRequired.
expressionCELExpressionRequired.

Authorization

Configures CEL-based authorization.

FieldTypeDescription
policyAuthorizationPolicyThe authorization rule to evaluate. * Allow: any matching allow rule allows the request. * Require: every require rule must match for the request to be allowed. * Deny: any matching deny rule denies the request. Deny is not recommended because expression failures fail to deny; prefer Allow or Require. If used, design expressions defensively against evaluation errors. If at least one Allow rule is configured, requests are denied unless at least one allow rule matches. Required.
actionAuthorizationPolicyActionThe effect of this rule when it matches. If unspecified, defaults to Allow. Require rules are cumulative: all require rules must match.

AuthorizationExtractionLocation

Validation:

  • ExactlyOneOf=header;queryParameter;cookie;expression
FieldTypeDescription
expression*CELExpressionCEL expression that extracts the credential from the request.

AuthorizationLocation

Validation:

  • ExactlyOneOf=header;queryParameter;cookie

AuthorizationPolicy

Defines CEL expressions for a single authorization rule.

FieldTypeDescription
matchExpressions[]CELExpressionCEL expressions that must all evaluate to true for the rule to match. Required.

AuthorizationPolicyAction

Underlying type: string

AuthorizationPolicyAction defines the action to take when the RBACPolicies matches.

AwsAgentCoreBackend

Configures Amazon Bedrock AgentCore.

FieldTypeDescription
agentRuntimeArnstringARN of the AgentCore runtime. Required.
qualifier*stringAlias or version qualifier.

AwsAssumeRole

AWS STS AssumeRole settings for backend authentication.

Validation:

  • AtMostOneOf=sessionName;sessionNameExpression
FieldTypeDescription
roleArnstringAWS IAM role ARN to assume. Required.
sessionName*stringSessionName is a custom session name (RoleSessionName) for CloudTrail and Cost & Usage Report attribution. If unset, AWS generates a random name.
sessionNameExpression*CELExpressionSessionNameExpression is a CEL expression evaluated against each request to produce the session name (RoleSessionName), for example jwt.sub or request.headers["x-team"]. If the expression does not produce a valid session name at request time, the request is rejected.
tags[]AwsSessionTagSession tags passed to STS AssumeRole for cost attribution in the AWS Cost & Usage Report, once activated. STS allows at most 50 per role session.
externalId*stringExternalID is set when the role’s trust policy requires sts:ExternalId.

AwsAuth

AWS authentication settings for the backend.

Validation:

  • XValidation:rule="!(has(self.secretRef) && has(self.assumeRole))",message="secretRef and assumeRole are mutually exclusive"
FieldTypeDescription
secretRef*LocalSecretObjectRefCredential source for AWS credentials, defaulting to a Kubernetes Secret. The default Secret resolver expects accessKey, secretKey, and optional sessionToken keys.
assumeRole*AwsAssumeRoleAWS STS AssumeRole settings to use before signing backend requests. Ambient AWS credentials are used as the source credentials for STS.
serviceName*ShortStringAWS SigV4 signing service name, for example bedrock, bedrock-agentcore, or execute-api). If unset, typed AWS backends may provide this automatically.
region*ShortStringAWS SigV4 signing region, for example us-east-1. Set this when the target AWS service is in a different region than the gateway. If unset, typed AWS backends may provide this automatically; otherwise the ambient AWS region is used.

AwsBackend

Configures an AWS service backend.

Validation:

  • ExactlyOneOf=agentCore
FieldTypeDescription
agentCore*AwsAgentCoreBackendAmazon Bedrock AgentCore backend settings.

AwsSessionTag

AwsSessionTag is an AWS STS session tag passed to AssumeRole for cost attribution. Exactly one of value and expression must be set.

Validation:

  • XValidation:rule="has(self.value) != has(self.expression)",message="exactly one of value or expression must be set"
FieldTypeDescription
keystringKey is the tag key. Required.
value*stringValue is a static tag value.
expression*CELExpressionCEL expression evaluated against each request to produce the tag value, for example jwt.sub or request.headers["x-app"]. Requests with invalid tag values are rejected.

AzureAuth

AzureAuth configures authentication to Azure services. At most one explicit credential source may be set. When none is set, authentication is implicit: the method is automatically detected from the environment, which resolves to Workload Identity when running on Kubernetes.

Validation:

  • AtMostOneOf=secretRef;managedIdentity;workloadIdentity
  • XValidation:rule="!has(self.managedIdentity) || !has(self.scopes) || self.scopes.size() == 1",message="managedIdentity supports exactly one scope"
FieldTypeDescription
scopes[]stringScopes requested for the Azure access token. When omitted, the scope is inferred from the backend hostname. Managed Identity supports exactly one scope.
secretRef*LocalSecretObjectRefCredential source for Azure credentials, defaulting to a Kubernetes Secret. The default Secret resolver expects clientID, tenantID, and clientSecret keys.
managedIdentity*AzureManagedIdentityManaged identity authentication settings. Leave this object empty to use the system-assigned identity. To use a user-assigned identity, set one of clientId, objectId, or resourceId.
workloadIdentity*AzureWorkloadIdentityWorkload identity authentication settings. Uses the federated token and Azure env vars projected into the data plane pod. Recommended on AKS with Workload Identity enabled.

AzureConfig

FieldTypeDescription
model*ShortStringModel name override, such as gpt-4o-mini. If unset, the model name is taken from the request.

AzureManagedIdentity

AzureManagedIdentity configures authentication with an Azure managed identity. Leave all identifiers unset to use the system-assigned identity. To use a user-assigned identity, set one identifier.

Validation:

  • AtMostOneOf=clientId;objectId;resourceId
FieldTypeDescription
clientIdstringClient ID of the user-assigned managed identity.
objectIdstringObject ID of the user-assigned managed identity.
resourceIdstringResource ID of the user-assigned managed identity.

AzureOpenAIConfig

Settings for the Azure OpenAI LLM provider.

Validation:

  • XValidation:message="deploymentName is required for this apiVersion",rule="!has(self.apiVersion) || self.apiVersion == 'v1' ? true : has(self.deploymentName)"
FieldTypeDescription
endpointShortStringThe endpoint for the Azure OpenAI API to use, such as my-endpoint.openai.azure.com. If the scheme is included, it is stripped. Required.
deploymentName*ShortStringThe name of the Azure OpenAI model deployment to use. For more information, see the Azure OpenAI model docs. This is required if apiVersion is not v1. For v1, the model can be set in the request.
apiVersion*TinyStringThe version of the Azure OpenAI API to use. For more information, see the Azure OpenAI API version reference. If unset, defaults to v1.

AzureWorkloadIdentity

AzureWorkloadIdentity configures Azure Workload Identity authentication.

BackendAI

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
prompt*AIPromptEnrichmentEnriches requests sent to the LLM provider by appending and prepending system prompts. This can be configured only for LLM providers that use the CHAT or CHAT_STREAMING API route type.
promptGuard*AIPromptGuardGuardrails for LLM requests and responses.
defaults[]FieldDefaultDefaults to merge with user input fields. If the field is already set, the field in the request is used.
overrides[]FieldDefaultOverrides to merge with user input fields. If the field is already set, the field is overwritten.
transformations[]FieldTransformationCEL 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 overrides if both are set for the same key.
finalTransformations[]FieldTransformationCEL 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 overrides if both are set for the same 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.
modelAliasesmap[string]stringMaps friendly model names to actual provider model names. Example: {"fast": "gpt-3.5-turbo", "smart": "gpt-4-turbo"}. Note: This field is only applicable when using the agentgateway data plane.
promptCaching*PromptCachingConfigAutomatic 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.
routesmap[string]RouteTypeRules for identifying the type of traffic to handle. 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.

BackendAuth

Validation:

  • AtMostOneOf=key;secretRef;passthrough;aws;azure;gcp;oauthTokenExchange;crossAppAccess;jwtSign
  • XValidation:rule="has(self.credentials) || has(self.key) || has(self.secretRef) || has(self.passthrough) || has(self.aws) || has(self.azure) || has(self.gcp) || has(self.oauthTokenExchange) || has(self.crossAppAccess) || has(self.jwtSign)",message="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)"
  • XValidation:rule="has(self.location) ? has(self.key) || has(self.secretRef) || has(self.passthrough) : true",message="location may only be set for key, secretRef, or passthrough auth"
FieldTypeDescription
key*stringInline key to use as the value of the Authorization header. This option is the least secure; usage of a Secret is preferred.
secretRef*LocalSecretKeyRefCredential source for the authorization value, defaulting to a Kubernetes Secret. By default, the value is read from the Authorization key; set secretRef.key to override it. A Bearer prefix is stripped only from the default Authorization key.
passthrough*BackendAuthPassthroughReuses 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.
aws*AwsAuthExplicit AWS authentication method for the backend. When omitted, default AWS SDK credential discovery is used.
azure*AzureAuthAzure authentication method for the backend.
gcp*GcpAuthGoogle authentication method for the backend. When omitted, default Google credential discovery is used.
oauthTokenExchange*OAuthTokenExchangeOAuth 2.0 token exchange (RFC 8693) / jwt-bearer (RFC 7523) authentication. If this configuration is invalid, requests using it are rejected.
crossAppAccess*CrossAppAccessAuthCross App Access (Identity Assertion / ID-JAG) authentication. If this configuration is invalid, requests using it are rejected.
jwtSign*JwtSignAuthSigns 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.
location*AuthorizationLocationWhere backend credentials are inserted. 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.
credentials[]BackendAuthCredentialCredentials is a list of additional credentials to inject on the backend request. Each entry writes its value to the entry’s location. credentials is independent of the primary key/secretRef/passthrough mechanism and may be set on its own or alongside it.

BackendAuthCredential

BackendAuthCredential specifies one additional credential to inject on the backend request.

Validation:

  • ExactlyOneOf=secretRef;gcp
FieldTypeDescription
locationAuthorizationLocationWhere the credential is inserted on the backend request. Required.
secretRef*LocalSecretKeyRefSecretRef references a Kubernetes Secret holding the credential value, and optionally overrides the key read from it. Defaults to Authorization, matching the key convention used by the top-level secretRef.
gcp*GcpAuthFetches a Google Cloud access or ID token and writes it to location.

BackendAuthPassthrough

BackendEviction

Settings for evicting unhealthy backends.

FieldTypeDescription
duration*DurationBase 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 3s.
restoreHealth*int32Health 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.
consecutiveFailures*int32Number 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.
healthThreshold*int32EWMA 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.

BackendHTTP

FieldTypeDescription
version*HTTPVersionHTTP protocol version for backend connections. If unset, it is inferred: Service appProtocol, HTTP2 for gRPC, the original protocol for plaintext HTTP, or HTTP1 for HTTPS because clients often upgrade HTTPS to HTTP/2 even when the backend does not support it.
requestTimeout*DurationDeadline for receiving a response from the backend.

BackendMCP

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
authorization*AuthorizationMCP backend authorization. Unlike authorization at the HTTP level, which rejects unauthorized requests with a 403 error, this policy works at the MCPBackend level. List operations, such as list_tools, will have each item evaluated. Items that do not meet the rule will be filtered. Get or call operations, such as call_tool, will evaluate the specific item and reject requests that do not meet the rule.
authentication*MCPAuthenticationMCP backend-specific authentication rules. This field is deprecated; prefer to use traffic policy jwtAuthentication.mcp, which ensures authentication runs before other policies such as transformation and rate limiting.
guardrails*MCPGuardrailsRemote and in-process CEL policy processors for MCP requests and responses.

BackendSimple

FieldTypeDescription
tcp*BackendTCPSettings for managing TCP connections to the backend
tls*BackendTLSSettings for managing TLS connections to the backend When set, TLS is originated to the backend using the system trusted CA certificates, and SNI is inferred from the destination.
http*BackendHTTPSettings for managing HTTP requests to the backend
tunnel*BackendTunnelSettings for managing tunnel connections to the backend, like HTTPS_PROXY
auth*BackendAuthSettings for managing authentication to the backend

BackendTCP

FieldTypeDescription
keepalive*KeepaliveSettings for enabling TCP keepalives on the connection.
connectTimeout*DurationDeadline for establishing a connection to the destination.

BackendTLS

Validation:

  • AtMostOneOf=verifySubjectAltNames;insecureSkipVerify
  • XValidation:rule="has(self.insecureSkipVerify) && self.insecureSkipVerify == 'All' ? !has(self.caCertificateRefs) : true",message="insecureSkipVerify All and caCertificateRefs may not be set together"
  • XValidation:rule="has(self.insecureSkipVerify) ? !has(self.verifySubjectAltNames) : true",message="insecureSkipVerify and verifySubjectAltNames may not be set together"
  • XValidation:rule="!has(self.certificateSource) || self.certificateSource != 'SPIFFE' || (!has(self.mtlsCertificateRef) && !has(self.caCertificateRefs) && !has(self.insecureSkipVerify))",message="certificateSource SPIFFE may not be combined with mtlsCertificateRef, caCertificateRefs, or insecureSkipVerify"
FieldTypeDescription
certificateSource*BackendTLSCertificateSourceSource for the gateway’s client identity and trust roots (Inline default, or SPIFFE).
mtlsCertificateRef[]LocalSecretObjectRefEnables mutual TLS to the backend using tls.key and tls.crt from the referenced credential source (defaulting to a Kubernetes Secret). An optional ca.cert, if present, verifies the server certificate, but caCertificateRefs takes priority. If unspecified, no client certificate is used.
caCertificateRefs[]LocalCACertificateRefCA certificate source to use to verify the server certificate. Omitted kind and ConfigMap select a ConfigMap; Secret selects a Secret. The bundle is read from the ca.crt key unless key names a different one. If unset, the system’s trusted certificates are used.
insecureSkipVerify*InsecureTLSModeOriginates TLS but skips verification of the backend’s certificate WARNING: insecure; only use if the risks are understood Modes: * All disables all TLS verification * Hostname trusts the CA certificate but ignores hostname/SAN mismatches. Still insecure; prefer verifySubjectAltNames where possible.
sni*SNIServer Name Indicator (SNI) to use in the TLS handshake. If unset, the SNI is automatically set based on the destination hostname.
verifySubjectAltNames[]ShortStringSubject Alternative Names (SAN) to verify in the server certificate. If not present, the destination hostname is automatically used.
alpnProtocols*[]TinyStringApplication-Layer Protocol Negotiation (ALPN) value to use in the TLS handshake. If not present, defaults to ["h2", "http/1.1"].
keyExchangeGroups[]KeyExchangeGroupOrdered list of key exchange groups for a TLS connection. For example: X25519_MLKEM768,X25519.

BackendTLSCertificateSource

Underlying type: string

BackendTLSCertificateSource selects where the gateway’s client identity and trust roots come from when originating TLS to a backend.

BackendTunnel

Validation:

  • ExactlyOneOf=backendRef;url
FieldTypeDescription
modeBackendTunnelModeHow requests are sent through the proxy. Defaults to Auto.

BackendTunnelMode

Underlying type: string

BackendWithAI

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
authorization*AuthorizationAuthorization rules that clients must satisfy after this AI provider is selected.
ai*BackendAISettings for AI workloads. This is only applicable when connecting to a Backend of type ai.
transformation*TransformationMutates and transforms requests and responses sent to and from the backend.
health*HealthSettings for passive and active health checking.

BasicAuthentication

Validation:

  • ExactlyOneOf=users;secretRef
FieldTypeDescription
modeBasicAuthenticationModeValidation mode for basic authentication. Defaults to Strict.
realm*stringrealm value to return in the WWW-Authenticate header for failed authentication requests. If unset, Restricted will be used.
users[]stringInline list of username and password pairs that will be accepted. Each entry represents one line of the htpasswd format: https://httpd.apache.org/docs/2.4/programs/htpasswd.html. Note: passwords should be the hash of the password, not the raw password. Use the htpasswd or similar commands to generate a hash. MD5, bcrypt, crypt, and SHA-1 are supported. Example: users: - “user1:$apr1$ivPt0D4C$DmRhnewfHRSrb3DQC.WHC.” - “user2:$2y$05$r3J4d3VepzFkedkd/q1vI.pBYIpSqjfN0qOARV3ScUHysatnS0cL2”
secretRef*LocalSecretKeyRefCredential source, defaulting to a Kubernetes Secret, storing the .htaccess file. When using the default Secret resolver, the Secret must have a key named .htaccess by default; override via secretRef.key. The value should contain the complete .htaccess file. Note: passwords should be the hash of the password, not the raw password. Use the htpasswd or similar commands to generate a hash. MD5, bcrypt, crypt, and SHA-1 are supported. Example: apiVersion: v1 kind: Secret metadata: name: basic-auth stringData: .htaccess: | alice:$apr1$3zSE0Abt$IuETi4l5yO87MuOrbSE4V. bob:$apr1$Ukb5LgRD$EPY2lIfY.A54jzLELNIId/
location*AuthorizationExtractionLocationWhere Basic credentials are read from. If omitted, credentials are read from the Authorization header with the Basic prefix.

BasicAuthenticationMode

Underlying type: string

BedrockConfig

FieldTypeDescription
model*ShortStringModel name override, such as gpt-4o-mini. If unset, the model name is taken from the request.

BedrockGuardrails

FieldTypeDescription
failureModeFailureModeBehavior when the provider is unavailable or returns an error. FailOpen allows the request to continue; FailClosed (default) rejects it.
identifierShortStringIdentifier of the Guardrail policy to use for the backend. Required.
versionShortStringVersion of the Guardrail policy to use for the backend. Required.
regionShortStringAWS region where the guardrail is deployed, for example us-west-2). Required.
action*RejectAuditActionAction controls whether the guardrail’s verdict is enforced or only observed. Reject (the default) enforces the guardrail: a blocked assessment rejects the request/response and an anonymized assessment masks the matched content. Audit runs the guardrail in observe mode: it is invoked and its assessment recorded (metrics + structured log), but the request/response is never blocked or masked.
policies*BedrockGuardrailsPolicyPolicies for communicating with AWS Bedrock Guardrails.

BedrockGuardrailsAuth

BedrockGuardrailsAuth configures credentials for AWS Bedrock Guardrails requests.

Validation:

  • ExactlyOneOf=key;secretRef;aws
  • XValidation:rule="has(self.location) ? has(self.key) || has(self.secretRef) : true",message="location may only be set for key or secretRef auth"
FieldTypeDescription
aws*AwsAuthAWS authentication method for Bedrock Guardrails. Use aws: {} for default AWS SDK credential discovery.
key*stringInline API key to use as the value of the Authorization header. This option is the least secure; usage of a Secret is preferred.
secretRef*LocalSecretKeyRefCredential source for the API key, defaulting to a Kubernetes Secret. By default, the value is read from the Authorization key; set secretRef.key to override it. A Bearer prefix is stripped only from the default Authorization key.
location*AuthorizationLocationWhere API keys are inserted. Defaults to the Authorization header with the Bearer prefix. Applies to key and secretRef.

BedrockGuardrailsPolicy

BedrockGuardrailsPolicy configures calls to AWS Bedrock Guardrails.

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
auth*BedrockGuardrailsAuthSettings for authenticating to AWS Bedrock Guardrails.

BodySendMode

Underlying type: string

How HTTP bodies are delivered to the external processor.

Buffer

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
request*BufferBodyRequest body buffering settings.
response*BufferBodyResponse body buffering settings.

BufferBody

FieldTypeDescription
maxBytes*ByteSizeMaximum number of bytes to buffer from the request or response body. If unset, defaults to the global proxy setting, which defaults to 2Mi.
failureModeFailureModeBehavior 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.

BuiltIn

Underlying type: string

Built-in regex patterns for specific types of strings in prompts. For example, if you specify CreditCard, any credit card numbers in the request or response are matched.

ByteSize

Byte quantity that must fit in the data plane size limit.

Validation:

  • XIntOrString
  • MaxLength=32
  • MinLength=1
  • Pattern=`^[+-]?([0-9]+(\.[0-9]*)?|\.[0-9]+)(([KMGTPE]i)|[numkMGTPE]|[eE](\+?0*([0-9]|1[0-8])|-0*[0-9]))?$`
  • XValidation:rule="(self >= 1 && self <= 4294967295) || self.size() > 0",message="value must be at least 1 byte and fit within uint32"
FieldTypeDescription
-*resource.QuantityRequired.

CELExpression

Underlying type: string

A Common Expression Language (CEL) expression.

Validation:

  • MinLength=1
  • MaxLength=16384

CORS

CSRF

FieldTypeDescription
additionalOrigins[]ShortStringAdditional source origins that will be allowed in addition to the destination origin. The Origin consists of a scheme and a host, with an optional port, and takes the form <scheme>://<host>(:<port>).

CipherSuite

Underlying type: string

Compression

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
response*CompressionResponseCompression applied to responses sent to the client.
request*CompressionRequestCompression applied to requests received from the client.

CompressionAlgorithm

Underlying type: string

CompressionRequest

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
decompress*RequestDecompressionDecompresses 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.

CompressionResponse

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
compress*ResponseCompressionCompresses 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 (Content-Range), or marked no-transform are never compressed.

ConfigMapSelector

FieldTypeDescription
matchLabelsmap[string]stringLabels that must be present on each selected ConfigMap. Required.

ContentScope

Underlying type: string

Which category of request or response content a prompt guard inspects. Encrypted payloads are excluded. Signed response payloads are scanned but a mask that would change them rejects the response instead.

CopilotConfig

Settings for the GitHub Copilot LLM provider.

FieldTypeDescription
model*ShortStringModel name override. If unset, the model name is taken from the request.

CrossAppAccessAuth

Cross App Access settings for backend authentication.

FieldTypeDescription
identityProviderCrossAppAccessEndpointUser identity provider authorization server, used for the RFC 8693 ID-JAG exchange. Required.
resourceAuthorizationServerCrossAppAccessEndpointResource authorization server, used for the RFC 7523 jwt-bearer exchange. Required.
audienceShortStringIdentifier of the resource authorization server. The issued ID-JAG is bound to this audience. Required.
resources[]stringResources sent to the token endpoint.
scopes[]stringScopes requested when obtaining the ID-JAG from the identity provider.
accessTokenScopes*[]stringScopes requested when exchanging the ID-JAG for an access token. When omitted, defaults to Scopes. Set to an empty list to omit scope.
subjectToken*CrossAppAccessSubjectTokenSubject token sent to the identity provider. Defaults to an OpenID Connect ID token read from the Authorization Bearer header.
cache*OAuthTokenCacheResponse cache configuration.

CrossAppAccessEndpoint

Validation:

  • ExactlyOneOf=backendRef;url
  • XValidation:rule="has(self.url) ? !has(self.path) : true",message="path may not be set when url is set"
FieldTypeDescription
path*stringToken endpoint path; defaults to “/”. Must start with “/”.
clientAuthOAuthClientAuthClient authentication for the token endpoint. Required.

CrossAppAccessSubjectToken

Validation:

  • XValidation:rule="!has(self.tokenType) || (self.tokenType != 'IdJag' && self.tokenType != 'urn:ietf:params:oauth:token-type:id-jag')",message="tokenType IdJag is not supported by crossAppAccess"
FieldTypeDescription
source*AuthorizationExtractionLocationWhere to read the subject token. Defaults to the Authorization Bearer header.
tokenType*OAuthTokenTypeOAuth RFC 8693 subject token type. Defaults to IdToken

CustomProvider

Provider with explicit API format support and an explicit target.

FieldTypeDescription
model*ShortStringModel name override, such as gpt-oss. If unset, the model name is taken from the request.

CustomResponse

Response to return to the client if request content is matched against a regex pattern and the action is REJECT.

FieldTypeDescription
message*stringCustom response message to return to the client. If not specified, defaults to The request was rejected due to inappropriate content.
statusCodeint32Status code to return to the client. Defaults to 403.
headers[]gwv1.HTTPHeaderHeaders to include in the rejection response.

Delay

Artificial latency injection for fault-injection testing.

FieldTypeDescription
durationCELExpressionLatency to inject before forwarding the request to the backend. Either a duration string such 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 : 0 for probabilistic delay, or int(random() * 500) for jitter). A non-positive result injects no delay. The injected delay counts against the request timeout. Required.

DirectResponse

Direct response policy.

Validation:

  • XValidation:rule="!(has(self.body) && has(self.bodyExpression))",message="body and bodyExpression may not both be set"
FieldTypeDescription
status*int32HTTP status code to return.
body*stringContent 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.
bodyExpression*CELExpressionCEL 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.
headers[]DirectResponseHeaderResponse headers to set on the direct response.

DirectResponseConditional

FieldTypeDescription
conditionCELExpressionCEL expression that must evaluate to true for this policy to execute.
policyDirectResponsePolicy to apply when the condition matches. Required.

DirectResponseHeader

FieldTypeDescription
nameHTTPHeaderNameThe name of the header to set. Required.
valueCELExpressionCEL expression that generates the output value for the header. Required.

DirectResponseOrConditional

Validation:

  • ConditionalPolicy:fields=status
FieldTypeDescription
conditional[]DirectResponseConditionalConditional 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.

Duration

Duration is a string value representing a duration in time. The format is a strict subset of the syntax parsed by time.ParseDuration, as specified by GEP-2257.

Validation:

  • Type=string
  • MaxLength=32
  • Pattern=`^([0-9]{1,5}(h|m|s|ms)){1,4}$`

DynamicForwardProxyBackend

ExtAuth

Validation:

  • XValidation:rule="!(has(self.forwardBody) && has(self.http) && has(self.http.body))",message="forwardBody cannot be used with http.body"
  • XValidation:rule="!has(self.url) || !self.url.matches('^https?://[^/?#]+/') || has(self.http)",message="url path is only valid with http"
  • XValidation:rule="!has(self.url) || !self.url.matches('^https?://[^/?#]+/') || !has(self.http) || !has(self.http.path)",message="http.path may not be set when url includes a path"
FieldTypeDescription
failureModeFailureModeBehavior when the external authorization service is unavailable or returns an error. “FailOpen” allows the request to continue. “FailClosed” (default) denies the request.
grpc*AgentExtAuthGRPCUses the gRPC External Authorization protocol should be used.
http*AgentExtAuthHTTPUses HTTP to connect to the authorization server. The authorization server must return a 200 status code, otherwise the request is considered an authorization failure.
forwardBody*ExtAuthBodyWhether to include the HTTP body in the authorization request. If enabled, the request body will be buffered.
cache*ExtAuthCacheCaches authorization results. WARNING: the safety of this feature depends on the cache key accurately capturing every request property that the authorization service uses to make a decision. For example, if the service returns different results based on both path and authorization header, both must be included in key; otherwise, one request may incorrectly reuse another request’s authorization result. If any key expression fails to evaluate or produces an unsupported value, the request is still sent to the authorization service, but its result is not read from or written to the cache.

ExtAuthBody

FieldTypeDescription
maxSizeByteSizeLargest body, in bytes, that will be buffered and sent to the authorization server. If the body size is larger than maxSize, then the request will be rejected with a response. Required.

ExtAuthCache

FieldTypeDescription
key[]CELExpressionOrdered list of CEL expressions evaluated against the request to construct the cache key. Required.
ttlCELExpressionDuration string, such as 5m, or a CEL expression that 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. Required.
maxEntries*uint32Maximum number of authorization results to keep in the cache. If unset, this defaults to 10000.

ExtAuthConditional

FieldTypeDescription
conditionCELExpressionCEL expression that must evaluate to true for this policy to execute.
policyExtAuthPolicy to apply when the condition matches. Required.

ExtAuthOrConditional

Validation:

  • ConditionalPolicy
  • XValidation:rule="has(self.conditional) ? (!has(self.backendRef) && !has(self.url)) : [has(self.backendRef),has(self.url)].filter(x,x==true).size() == 1",message="exactly one of backendRef or url must be set unless conditional is set"
  • XValidation:rule="has(self.conditional) || [has(self.grpc),has(self.http)].filter(x,x==true).size() == 1",message="exactly one of the fields in [grpc http] must be set"
FieldTypeDescription
conditional[]ExtAuthConditionalConditional 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.

ExtProc

Validation:

  • XValidation:rule="!has(self.url) || self.url.matches('^https?://[^/?#]+$')",message="url must not include a path"
FieldTypeDescription
failureModeFailureModeBehavior 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.
processingOptions*ProcessingOptionsHow request and response phases are sent to ext_proc.
metadataContextmap[string]NamespacedMetadataContextMetadata to send to the external processor in the 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.
requestAttributesmap[string]CELExpressionRequest attributes to send to the external processor in the request attributes field of the ProcessingRequest. Values are CEL expressions evaluated per request.
responseAttributesmap[string]CELExpressionResponse attributes to send to the external processor in the response attributes field of the ProcessingRequest. Values are CEL expressions evaluated per response.

ExtProcConditional

FieldTypeDescription
conditionCELExpressionCEL expression that must evaluate to true for this policy to execute.
policyExtProcPolicy to apply when the condition matches. Required.

ExtProcOrConditional

Validation:

  • ConditionalPolicy
  • XValidation:rule="has(self.conditional) ? (!has(self.backendRef) && !has(self.url)) : [has(self.backendRef),has(self.url)].filter(x,x==true).size() == 1",message="exactly one of backendRef or url must be set unless conditional is set"
FieldTypeDescription
conditional[]ExtProcConditionalConditional 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.

FailureMode

Underlying type: string

FieldDefault

Default value for a field in the JSON request body sent to the LLM provider. These defaults are merged with the user-provided request to ensure missing fields are populated. User input fields here refer to the fields in the JSON request body that a client sends when making a request to the LLM provider. Defaults set here do not override those user-provided values unless you explicitly set override to true. Example: Setting a default system field for Anthropic, which does not support system role messages: defaults: - field: “system” value: “answer all questions in French” Example: Setting a default temperature and overriding max_tokens: defaults: - field: “temperature” value: “0.5” - field: “max_tokens” value: “100” override: true Example: Setting custom lists fields: defaults: - field: “custom_integer_list” value: [1,2,3] overrides: - field: “custom_string_list” value: [“one”,“two”,“three”] Note: The field values correspond to keys in the JSON request body, not fields in this CRD.

FieldTypeDescription
fieldShortStringName of the field. Required.
valueapiextensionsv1.JSONDefault value for the field. This can be any JSON data type. Required.

FieldTransformation

Maps a request JSON field to a CEL expression. The expression is evaluated against the current request body and its result is assigned to the configured field.

FieldTypeDescription
fieldShortStringName of the field to set. Required.
expressionCELExpressionCEL expression used to compute the field value. Required.

FrontendConnect

FieldTypeDescription
modeFrontendConnectModeWhether downstream CONNECT requests are accepted. Required.

FrontendConnectMode

Underlying type: string

FrontendHTTP

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
maxBufferSize*ByteSizeMaximum HTTP body size that will be buffered into memory. Bodies will only be buffered for policies which require buffering. If unset, this defaults to 2mb.
http1MaxHeaders*int32Maximum number of headers allowed in HTTP/1.1 requests. If unset, this defaults to 100.
http1IdleTimeout*DurationTimeout before an unused connection is closed. If unset, this defaults to 10 minutes.
http1HeaderCase*HTTPHeaderCaseControls HTTP/1 request header name casing when encoding responses on the same connection. 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.
http2WindowSize*ByteSizeInitial window size for stream-level flow control for received data.
http2ConnectionWindowSize*ByteSizeInitial window size for connection-level flow control for received data.
http2FrameSize*ByteSizeMaximum frame size to use. If unset, this defaults to 16kb.
http2MaxHeaderSize*ByteSizeMaximum aggregate size of decoded HTTP/2 request headers. If unset, this defaults to 16Ki.
http2KeepaliveInterval*DurationInterval between HTTP/2 keepalive pings. If unset, keepalive pings are not sent.
http2KeepaliveTimeout*DurationTime to wait for a response to an HTTP/2 keepalive ping before the connection is closed. Only applies when http2KeepaliveInterval is set.
maxConnectionDuration*DurationMaximum 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.
maxConcurrentRequests*int32Maximum 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.
normalize[]FrontendHTTPNormalizenormalize 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 %00 are rejected with 400 whenever any rule other 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 /.

FrontendHTTPNormalize

Underlying type: string

FrontendProxyProtocol

FieldTypeDescription
versionProxyProtocolVersionPROXY protocol version to accept. If unset, this defaults to V2.
modeProxyProtocolModeWhether PROXY headers are required or optional. If unset, this defaults to Strict.

FrontendTCP

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
keepalive*KeepaliveSettings for enabling TCP keepalives on the connection.
maxConnections*int32Maximum number of active downstream connections on this gateway/port. Connections over the limit are closed immediately. Unset means unlimited.

FrontendTLS

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
handshakeTimeout*DurationDeadline for a TLS handshake to complete. If unset, this defaults to 15s.
alpnProtocols*[]TinyStringApplication-Layer Protocol Negotiation (ALPN) value to use in the TLS handshake. If not present, defaults to ["h2", "http/1.1"].
minProtocolVersion*TLSVersionMinimum TLS version to support.
maxProtocolVersion*TLSVersionMaximum TLS version to support.
cipherSuites[]CipherSuiteCipher suites for 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.
keyExchangeGroups[]KeyExchangeGroupOrdered list of key exchange groups for a TLS listener. For example: X25519_MLKEM768,X25519.

GcpAuth

Google Cloud authentication settings.

Validation:

  • XValidation:rule="has(self.audience) ? self.type == 'IdToken' : true",message="audience is only valid with IdToken"
FieldTypeDescription
type*GcpAuthTypeThe type of token to generate. To authenticate to GCP services, generally an AccessToken is used. To authenticate to Cloud Run, an IdToken is used.
secretRef*LocalSecretKeyRefCredential source for ADC-compatible Google credential JSON, defaulting to a Kubernetes Secret. By default, the value is read from credentials.json; set secretRef.key to override it. When omitted, ambient credentials are used.
audience*ShortStringExplicit aud value for the ID token. Only valid with IdToken type. If not set, the aud is automatically derived from the backend hostname.

GcpAuthType

Underlying type: string

GeminiConfig

Settings for the Gemini LLM provider.

FieldTypeDescription
model*ShortStringModel name override, such as gemini-2.5-pro. If unset, the model name is taken from the request.

GlobalRateLimit

Validation:

  • ExactlyOneOf=backendRef;url
  • XValidation:rule="!has(self.url) || self.url.matches('^https?://[^/?#]+$')",message="url must not include a path"
FieldTypeDescription
failureModeFailureModeBehavior when the remote rate limit service is unavailable or returns an error. FailOpen allows the request to continue. FailClosed (default) denies the request.
domainShortStringDomain under which this limit should apply. This is an arbitrary string that enables a rate limit server to distinguish between different applications. Required.
descriptors[]RateLimitDescriptorDimensions 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. Required.

GoogleModelArmor

FieldTypeDescription
failureModeFailureModeBehavior when the provider is unavailable or returns an error. FailOpen allows the request to continue; FailClosed (default) rejects it.
templateIdShortStringTemplate ID for Google Model Armor. Required.
projectIdShortStringGoogle Cloud project ID. Required.
location*ShortStringGoogle Cloud location, for example us-central1. Defaults to us-central1 if not specified.
action*RejectAuditActionAction controls whether flagged content is rejected or only observed. Reject (the default) rejects flagged content; Audit records the would-be rejection without blocking.
policies*GoogleModelArmorPolicyPolicies for communicating with Google Model Armor.

GoogleModelArmorAuth

GoogleModelArmorAuth configures credentials for Google Model Armor requests.

Validation:

  • ExactlyOneOf=gcp
FieldTypeDescription
gcp*GcpAuthGoogle authentication method for Model Armor. Use gcp: {} for default Google credential discovery.

GoogleModelArmorPolicy

GoogleModelArmorPolicy configures calls to Google Model Armor.

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
auth*GoogleModelArmorAuthSettings for authenticating to Google Model Armor.

HTTPHeaderCase

Underlying type: string

HTTPHeaderName

Underlying type: string

HTTP header name that does not allow pseudo-headers.

Validation:

  • MinLength=1
  • MaxLength=256
  • Pattern=`^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$`

HTTPVersion

Underlying type: string

HeaderModifiers

Modifies request and response headers.

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
request*gwv1.HTTPHeaderFilterHeader changes to apply before forwarding a request.
response*gwv1.HTTPHeaderFilterHeader changes to apply before returning a response.

HeaderName

Underlying type: string

HTTP header name.

Validation:

  • MinLength=1
  • MaxLength=256
  • Pattern=`^:?[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$`
  • XValidation:rule="!self.startsWith(':') || self in [':authority', ':method', ':path', ':scheme', ':status']",message="pseudo-headers must be one of :authority, :method, :path, :scheme, or :status"

HeaderSendMode

Underlying type: string

Whether HTTP headers are delivered to the external processor.

HeaderTransformation

FieldTypeDescription
nameHeaderNameThe name of the header to add. Required.
valueCELExpressionCEL expression that generates the output value for the header. Required.

Health

FieldTypeDescription
unhealthyCondition*CELExpressionCEL 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. 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.
eviction*BackendEvictionSettings for evicting unhealthy backends.

HostnameRewrite

FieldTypeDescription
modeHostnameRewriteModeHostname rewrite mode. The following may be specified: * Auto: automatically set the Host header based on the destination. * None: do not rewrite the Host header. The original Host header will be passed through. This setting defaults to Auto when connecting to hostname-based Backend types, and None otherwise, for Service or IP-based backends. Required.

HostnameRewriteMode

Underlying type: string

Image

Container image settings. See https://kubernetes.io/docs/concepts/containers/images for details.

FieldTypeDescription
registry*stringImage registry.
repository*stringImage repository.
tag*stringImage tag.
digest*stringImage digest, such as sha256:12345....
pullPolicy*corev1.PullPolicyImage pull policy for the container. See https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy for details.

InsecureTLSMode

Underlying type: string

IstioSpec

FieldTypeDescription
enabled*boolExplicitly turns Istio integration on or off for this gateway.
caAddressstringAddress of the Istio CA. If unset, defaults to https://istiod.istio-system.svc:15012.
trustDomainstringIstio trust domain. If not set, defaults to cluster.local, or the default trust domain for the control plane’s istio revision.
additionalTrustDomains[]stringAdditional SPIFFE trust domains accepted on inbound HBONE connections. The local trust domain is always implicitly included.
clusterIdstringID of the cluster this gateway runs in. If unset, defaults to Kubernetes.
networkstringIstio network this gateway runs in. If unset, defaults to the empty network.

JWKS

Validation:

  • ExactlyOneOf=remote;inline
FieldTypeDescription
remote*RemoteJWKSHow to reach the JSON Web Key Set from a remote address.
inline*stringInline JSON Web Key Set used to validate the signature of the JWT.

JWTAuthentication

Validation:

  • XValidation:rule="!has(self.mcp) || size(self.providers) == 1",message="jwtAuthentication.mcp requires exactly one provider"
  • XValidation:rule="!has(self.mcp) || !has(self.mode) || self.mode == 'Strict'",message="jwtAuthentication.mcp requires mode Strict"
FieldTypeDescription
modeJWTAuthenticationModeValidation mode for JWT authentication. Defaults to Strict.
providers[]JWTProviderRequired.
location*AuthorizationExtractionLocationWhere JWT credentials are read from. If omitted, credentials are read from the Authorization header with the Bearer prefix.
preserveTokenboolKeeps 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 backendAuth.passthrough so it is not exposed to other policies in the request path.
mcp*JWTMCPConfigEnables 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.

JWTAuthenticationMode

Underlying type: string

JWTClaim

Underlying type: string

JWTClaim is a JWT claim whose presence can be required during validation.

JWTMCPConfig

MCP-specific extensions for JWT authentication.

FieldTypeDescription
resourceMetadatamap[string]apiextensionsv1.JSONMetadata to use for MCP resources, served at the MCP OAuth metadata endpoints.
provider*McpIDPIdentity provider to use for MCP authentication flows.
clientId*stringClient 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.

JWTProvider

FieldTypeDescription
issuerShortStringIdP that issued the JWT. This corresponds to the iss claim (RFC 7519 §4.1.1). Required.
audiences[]stringAllowed audiences that are allowed access. This corresponds to the aud claim (RFC 7519 §4.1.3). If unset, any audience is allowed.
jwksJWKSJSON Web Key Set used to validate the signature of the JWT. Required.
validation*JWTValidationOptionsAdditional JWT claim presence requirements. Defaults to requiring exp. Issuer validation always requires iss; a non-empty audiences list also requires aud, regardless of these options. An empty requiredClaims list removes only the additional presence requirements. Expiration is still checked whenever exp is present.

JWTValidationOptions

JWTValidationOptions controls claim presence requirements in addition to those imposed by issuer and audience validation.

FieldTypeDescription
requiredClaims*[]JWTClaimAdditional claims that must be present in the token payload. Recognized values: exp, nbf, aud, sub. Defaults to ["exp"] when omitted. An empty list adds no requirements beyond iss, which is always required, and aud, which is required when a non-empty audiences list is configured. Expiration is still checked whenever exp is present.

JwtSignAuth

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

FieldTypeDescription
signingKeyRefLocalSecretObjectRefSecret providing the signingKey key with a PEM-encoded RSA or EC private key. Required.
alg*JwtSigningAlgJWS signing algorithm. Defaults to RS256.
kid*stringOptional JWS key ID header.
claimsmap[string]apiextensionsv1.JSONStatic 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.
ttl*DurationToken lifetime used for exp. Defaults to 300s.
location*AuthorizationLocationWhere the signed token is written on the backend request. Defaults to the Authorization header with a “Bearer " prefix.

JwtSigningAlg

Underlying type: string

Keepalive

TCP keepalive settings.

FieldTypeDescription
retries*int32Maximum number of keepalive probes to send before dropping the connection. If unset, this defaults to 9.
time*DurationTime a connection needs to be idle before keepalive probes start being sent. If unset, this defaults to 180s.
interval*DurationTime between keepalive probes. If unset, this defaults to 180s.

KeyExchangeGroup

Underlying type: string

KubernetesResourceOverlay

KubernetesResourceOverlay provides a mechanism to customize generated Kubernetes resources using Strategic Merge Patch semantics. # Overlay Application Order Overlays are applied after all typed configuration fields have been processed. The full merge order is: 1. GatewayClass typed configuration fields, for example replicas or image settings from parametersRef 2. Gateway typed configuration fields from infrastructure.parametersRef 3. GatewayClass overlays are applied 4. Gateway overlays are applied This ordering means Gateway-level configuration overrides GatewayClass-level configuration at each stage. For example, if both levels set the same label, the Gateway value wins.

FieldTypeDescription
metadata*ObjectMetadatametadata defines a subset of object metadata to be customized. labels and annotations are merged with existing values. If both GatewayClass and Gateway parameters define the same label or annotation key, the Gateway value takes precedence (applied second).
spec*apiextensionsv1.JSONspec provides an opaque mechanism to configure the resource spec. This field accepts a complete or partial Kubernetes resource spec, such as PodSpec or ServiceSpec, and will be merged with the generated configuration using Strategic Merge Patch semantics. # Application Order Overlays are applied after all typed configuration fields from both levels. The full merge order is: 1. GatewayClass typed configuration fields 2. Gateway typed configuration fields 3. GatewayClass overlays 4. Gateway overlays (can override all previous values) # Strategic Merge Patch & Deletion Guide This merge strategy allows you to override individual fields, merge lists, or delete items without needing to provide the entire resource definition. 1. Replacing Values (Scalars): Simple fields (strings, integers, booleans) in your config will overwrite the generated defaults. 2. Merging Lists (Append/Merge): Lists with “merge keys”, like containers which merges on name, or tolerations which merges on key, will append your items to the generated list, or update existing items if keys match. 3. Deleting Fields or List Items ($patch: delete): To remove a field or list item from the generated resource, use the $patch: delete directive. This works for both map fields and list items, and is the recommended approach because it works with both client-side and server-side apply. spec: template: spec: # Delete pod-level securityContext securityContext: $patch: delete # Delete nodeSelector nodeSelector: $patch: delete containers: # Be sure to use the correct proxy name here or you will add a # container instead of modifying a container. - name: proxy-name # Delete container-level securityContext securityContext: $patch: delete 4. Null Values (server-side apply only): Setting a field to null can also remove it, but this ONLY works with kubectl apply --server-side or equivalent. With regular client-side kubectl apply, null values are stripped by kubectl before reaching the API server, so the deletion won’t occur. Prefer $patch: delete for consistent behavior across both apply modes. spec: template: spec: nodeSelector: null # Removes nodeSelector (server-side apply only!) 5. Replacing Maps Entirely ($patch: replace): To replace an entire map with your values (instead of merging), use $patch: replace. This removes all existing keys and replaces them with only your specified keys. spec: template: spec: nodeSelector: $patch: replace custom-key: custom-value 6. Replacing Lists Entirely ($patch: replace): If you want to strictly define a list and ignore all generated defaults, use $patch: replace. service: spec: ports: - $patch: replace - name: http port: 80 targetPort: 8080 protocol: TCP - name: https port: 443 targetPort: 8443 protocol: TCP

LLMProvider

Large language model provider that the backend routes requests to.

Validation:

  • ExactlyOneOf=openai;azureopenai;azure;anthropic;gemini;vertexai;bedrock;custom;copilot
  • XValidation:rule="has(self.host) || has(self.port) ? has(self.host) && has(self.port) : true",message="both host and port must be set together"
  • XValidation:rule="has(self.custom) ? has(self.custom.backendRef) != has(self.host) : true",message="custom providers must specify exactly one of backendRef or host and port"
  • XValidation:rule="!(has(self.path) && has(self.pathPrefix))",message="path and pathPrefix are mutually exclusive"
  • XValidation:rule="!(has(self.custom) && self.custom.formats.exists(f, has(f.path)) && (has(self.path) || has(self.pathPrefix)))",message="path, pathPrefix, and custom format paths are mutually exclusive"
  • XValidation:rule="has(self.pathPrefix) ? has(self.host) : true",message="pathPrefix requires host to be set"
FieldTypeDescription
openai*OpenAIConfigOpenAI provider settings.
copilot*CopilotConfigGitHub Copilot provider settings.
azureopenai*AzureOpenAIConfigAzure OpenAI provider settings.
azure*AzureConfigAzure provider with resource-based configuration. Supports both Azure OpenAI and Azure AI Foundry resource types.
anthropic*AnthropicConfigAnthropic provider settings.
gemini*GeminiConfigGemini provider settings.
vertexai*VertexAIConfigVertex AI provider settings.
bedrock*BedrockConfigBedrock provider settings.
custom*CustomProviderCustom provider configures a non-managed or self-hosted LLM provider. Use this when the provider target and API formats should be declared explicitly instead of inferred from a managed provider such as OpenAI or Anthropic.
hostShortStringHostname to send requests to. For custom providers without backendRef, host and port specify the target. For managed providers, host and port override the provider default.
portint32Port to send requests to.
pathLongStringURL path to use for LLM provider API requests. This is useful when you need to route requests to a different API endpoint while maintaining compatibility with the original provider’s API structure. If not specified, the default path for the provider is used.
pathPrefixLongStringOverrides the default base path prefix, such as /v1, for upstream requests. Path translation for cross-format requests still applies using this prefix. Only supported for OpenAI and Anthropic providers.

LocalCACertificateRef

LocalCACertificateRef references a same-namespace CA certificate source. An omitted kind defaults to ConfigMap, and an omitted key to ca.crt.

FieldTypeDescription
namegwv1.ObjectNameName of the referenced CA certificate source. Required.
kindstringKind of the referenced CA certificate source. Omitted defaults to ConfigMap.
keystringKey within the referenced source holding the PEM-encoded CA bundle. Omitted defaults to ca.crt.

LocalRateLimit

Local rate limiting policy. Local rate limits are handled on a per-proxy basis, without coordination between instances of the proxy.

Validation:

  • ExactlyOneOf=requests;tokens
FieldTypeDescription
requests*int32Number of HTTP requests per unit of time that are allowed. Requests exceeding this limit will fail with a 429 error.
tokens*int32Number of LLM tokens per unit of time that are 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.
unitLocalRateLimitUnitUnit of time for the limit. Required.
burst*int32Allowance of requests above the request-per-unit that should be allowed within a short period of time.
key*CELExpressionCEL expression selecting the bucket the request counts against, for example jwt.sub for a per-user limit or jwt.team for a per-team limit. Each distinct value gets its own bucket with 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.

LocalRateLimitUnit

Underlying type: string

LocalSecretKeyRef

References a same-namespace credential and optional key Set only name for a Kubernetes Secret. When key is omitted, a location-specific default key is used.

Validation:

  • XValidation:rule="(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) && size(self.kind) > 0)",message="custom credential refs must set both group and kind"
FieldTypeDescription
namegwv1.ObjectNameName of the referenced credential Required.
groupstringAPI group of the referenced credential; empty selects the core API group
kindstringKind of the referenced credential; empty defaults to Secret
key*stringKey in the referenced Secret. If omitted, a location-specific default is used

LocalSecretObjectRef

References a same-namespace credential Set only name for a Kubernetes Secret

Validation:

  • XValidation:rule="(!has(self.group) || size(self.group) == 0) ? (!has(self.kind) || size(self.kind) == 0 || self.kind == 'Secret') : (has(self.kind) && size(self.kind) > 0)",message="custom credential refs must set both group and kind"
FieldTypeDescription
namegwv1.ObjectNameName of the referenced credential Required.
groupstringAPI group of the referenced credential; empty selects the core API group
kindstringKind of the referenced credential; empty defaults to Secret

LogTracingAttributes

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
remove[]TinyStringDefault fields to remove. For example, http.method.
add[]AttributeAddAdditional 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.

LongString

Underlying type: string

Validation:

  • MinLength=1
  • MaxLength=1024

MCPAuthentication

FieldTypeDescription
resourceMetadatamap[string]apiextensionsv1.JSONMetadata to use for MCP resources. Required.
provider*McpIDPIdentity provider to use for authentication.
issuerShortStringIdP that issued the JWT. This corresponds to the iss claim (RFC 7519 §4.1.1).
audiences[]stringAllowed audiences that are allowed access. This corresponds to the aud claim (RFC 7519 §4.1.3). If unset, any audience is allowed.
jwksRemoteJWKSRemote JSON Web Key used to validate the signature of the JWT. Required.
modeJWTAuthenticationModeValidation mode for JWT authentication. Defaults to Strict.
validation*JWTValidationOptionsAdditional JWT claim presence requirements. Defaults to requiring exp. Issuer validation always requires iss; a non-empty audiences list also requires aud, regardless of these options. An empty requiredClaims list removes only the additional presence requirements. Expiration is still checked whenever exp is present.
clientId*stringClient 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.
clientSecretRef*LocalSecretKeyRefReference to a Kubernetes Secret holding the OAuth client secret of the app 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.

MCPBackend

MCP backend settings.

FieldTypeDescription
targets[]McpTargetSelectorMCP targets to use for this backend. Policies targeting MCP targets must use targetRefs[].sectionName to select the target by name. Required.
sessionRoutingSessionRoutingMCP session routing behavior. Defaults to Stateful if not set.
failureModeFailureModeBehavior when MCP targets fail to initialize or become unavailable at runtime. FailOpen skips failed targets and continues serving from healthy ones. FailClosed (default) fails the entire session if any target fails.
prefixModePrefixModeHow tool and prompt names are prefixed with the target name. Resource URIs always retain target routing information when multiplexing and are unaffected. Conditional (default) prefixes only when there are multiple targets. Always prefixes even with a single target. Never exposes unprefixed names and routes calls by looking up which target serves the name; names must be unique across targets.

MCPGuardrails

MCPGuardrails is the MCP-layer analog of Envoy ext_authz: an ordered chain of policy processors invoked per JSON-RPC method.

FieldTypeDescription
processors[]MCPGuardrailsProcessorprocessors is the ordered list of policy processors applied to matched methods. Processors run in the order listed; the first to reject a request short-circuits the chain. Required.

MCPGuardrailsExpression

In-process guardrail driven by CEL expressions.

Validation:

  • ExactlyOneOf=reject;transform
FieldTypeDescription
condition*CELExpressionCondition gating the action; absent means always.
reject*stringReject with this message.
transform*CELExpressionReturns a replacement body (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.

MCPGuardrailsProcessor

MCPGuardrailsProcessor selects a single policy processor. Exactly one variant must be set.

Validation:

  • ExactlyOneOf=remote;expression
FieldTypeDescription
remote*MCPGuardrailsRemoteremote configures a gRPC policy server.
expression*MCPGuardrailsExpressionIn-process guardrail driven by CEL expressions.
methodsmap[string]MCPMethodPhasemethods is the allowlist of JSON-RPC methods (e.g. tools/call, tools/list) routed through this processor, keyed by method name with the phase it runs in. Keys may be exact, a prefix wildcard (tools/*), a suffix wildcard (*/list), or * for all methods; the most specific match wins. Methods matching no key, including unknown ones, bypass this processor. Required.

MCPGuardrailsRemote

Validation:

  • ExactlyOneOf=backendRef;url
  • XValidation:rule="!has(self.url) || self.url.matches('^https?://[^/?#]+$')",message="url must not include a path"
FieldTypeDescription
failureModeFailureModefailureMode controls behavior when the policy server is unreachable or returns an error. FailOpen allows the request; FailClosed (default) denies it.
metadatamap[string]CELExpressionmetadata is static or CEL-evaluated context surfaced to the policy server as fields of the metadata_context google.protobuf.Struct, keyed by config key. Values are CEL expressions.
allowedRequestHeaders[]HeaderNameallowedRequestHeaders lists the incoming request headers forwarded to the policy server in McpRequest.headers. If empty, all headers and pseudo-headers (:authority, :method, …) are forwarded. Matching is case-insensitive.
disallowedRequestHeaders[]HeaderNamedisallowedRequestHeaders lists header names never forwarded to the policy server, even if listed in allowedRequestHeaders. Matching is case-insensitive.

MCPProtocol

Underlying type: string

Protocol to use for an MCP target.

McpIDP

Underlying type: string

McpSelector

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
namespaces*metav1.LabelSelectornamespace is the label selector for namespaces that Service resources should be selected from. If unset, only the namespace of the AgentgatewayBackend is searched.
services*metav1.LabelSelectorservices is the label selector for which Service resources should be selected.

McpTarget

MCP target configuration.

Validation:

  • ExactlyOneOf=host;backendRef
  • XValidation:rule="!has(self.backendRef) || !has(self.policies)",message="mcp target policies may not be used with backendRef"
FieldTypeDescription
host*ShortStringHostname or IP address of the MCP target.
backendRef*corev1.LocalObjectReferenceNamespace-local Service resource by name. When set, this replaces host only; port, path, and protocol remain configured on this target.
portint32Port number of the MCP target. Required.
path*LongStringURL path of the MCP target endpoint. Defaults to "/sse" for the SSE protocol or "/mcp" for the StreamableHTTP protocol if not specified.
protocol*MCPProtocolProtocol to use for the connection to the MCP target.
policies*BackendSimplePolicies for communicating with this backend. Policies may also be set in AgentgatewayPolicy, or in the top-level AgentgatewayBackend. Policies are merged on a field-level basis, with order: AgentgatewayPolicy < AgentgatewayBackend < AgentgatewayBackend MCP (this field). This field may only be used with host-based static targets, not backendRef.

McpTargetSelector

MCP target selection for this backend.

Validation:

  • ExactlyOneOf=selector;static
FieldTypeDescription
namegwv1.SectionNameName of the MCP target. Required.
selector*McpSelectorLabel selector used to select Service resources. Selected Service ports must set appProtocol: agentgateway.dev/mcp for streamable HTTP or appProtocol: agentgateway.dev/mcp-sse for SSE. Ports without a recognized MCP appProtocol value are ignored. If policies are needed on a per-service basis, AgentgatewayPolicy can target the desired Service.
static*McpTargetStatic MCP destination. When connecting to in-cluster Service resources, it is recommended to use selector instead.
condition*CELExpressionCEL expression evaluated per request; when it evaluates to false, the target is excluded from the virtual MCP. mcp.target.name is available. With selector, the condition applies to each selected target.

Message

An entry for a message to prepend or append to each prompt.

FieldTypeDescription
rolestringRole of the message. The available roles depend on the backend LLM provider model, such as SYSTEM or USER in the OpenAI API. Required.
contentstringString content of the message. Required.

MetricAttributes

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
add[]AttributeAddAdditional 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”. 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.

MetricLabels

Custom labels to add to Prometheus metrics.

FieldTypeDescription
attributesMetricAttributesCustomizations to the labels that are added to Prometheus metrics. Required.

ModelCatalogConfigMapRef

ModelCatalogConfigMapRef identifies a ConfigMap holding model cost catalog JSON. The ConfigMap must be in the same namespace as the Gateway that references it.

FieldTypeDescription
namestringRequired.
keystringData key whose value is the catalog JSON. Defaults to “catalog.json”.

ModelCatalogSource

ModelCatalogSource is a single source of model cost catalog data.

FieldTypeDescription
configMap*ModelCatalogConfigMapRef

ModelCatalogSpec

ModelCatalogSpec configures model cost catalog sources for the agentgateway proxy.

FieldTypeDescription
sources[]ModelCatalogSource

NamedLLMProvider

FieldTypeDescription
namegwv1.SectionNameName of the provider. Policies can target this provider by name. Required.
policies*BackendWithAIPolicies for communicating with this backend. Policies may also be set in AgentgatewayPolicy, or in the top-level AgentgatewayBackend. Policies are merged on a field-level basis, with order: AgentgatewayPolicy < AgentgatewayBackend < AgentgatewayBackend LLM provider (this field).

OAuthActorToken

Validation:

  • XValidation:rule="!has(self.mayAct) || self.mayAct != 'Required' || (has(self.tokenType) && self.tokenType == 'Jwt')",message="mayAct Required requires tokenType Jwt"
FieldTypeDescription
sourceAuthorizationExtractionLocationWhere to read the actor token. Actor tokens have no default source. Required.
tokenType*OAuthTokenTypeOAuth token type. Empty defaults to AccessToken. Custom absolute URI values are supported for actor tokens.
mayAct*OAuthMayActValidationModemay_act claim validation mode. When omitted, may_act is not enforced.

OAuthClientAuth

OAuthClientAuth configures token endpoint client authentication.

Validation:

  • XValidation:rule="has(self.privateKeyJwt) == (has(self.method) && self.method == 'PrivateKeyJwt')",message="privateKeyJwt settings require method PrivateKeyJwt"
  • XValidation:rule="!has(self.secretRef) || !has(self.method) || self.method != 'PrivateKeyJwt'",message="secretRef is not valid with method PrivateKeyJwt"
  • XValidation:rule="has(self.secretRef) || has(self.privateKeyJwt) || (has(self.method) && self.method == 'ClientSecretPost')",message="clientAuth without secretRef requires method ClientSecretPost or PrivateKeyJwt"
FieldTypeDescription
clientIdstringClient ID sent to the token endpoint. Required.
secretRef*LocalSecretKeyRefSecret providing the clientSecret key by default; override via secretRef.key. When omitted, client_id is sent without a secret, which is only valid with ClientSecretPost.
privateKeyJwt*OAuthPrivateKeyJWTClient assertion settings. Required when method is PrivateKeyJwt.
method*OAuthClientAuthMethodClient authentication method. Defaults to ClientSecretBasic.

OAuthClientAuthMethod

Underlying type: string

OAuthGrantType

Underlying type: string

OAuthInMemoryTokenCache

FieldTypeDescription
maxEntries*uint32Default 8192; 0 disables the cache.
defaultTtl*DurationTTL used when the token endpoint omits expires_in. Default 300s.

OAuthMayActValidationMode

Underlying type: string

OAuthPrivateKeyJWT

OAuthPrivateKeyJWT configures RFC 7523 private_key_jwt client authentication.

Validation:

  • XValidation:rule="has(self.certificateRef) == has(self.certificateHeader)",message="certificateRef and certificateHeader must be set together"
FieldTypeDescription
signingKeyRefLocalSecretKeyRefPEM-encoded RSA or EC private key; key defaults to signingKey. Required.
certificateRef*LocalSecretKeyRefPEM-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 certificate.
certificateHeader*OAuthPrivateKeyJWTCertificateHeaderJWS certificate header. Required when certificateRef is set.
alg*JwtSigningAlgJWS signing algorithm. Defaults to RS256.
kid*stringOptional JWS key ID header.
assertionAudiencestringAudience for the client assertion, typically the token endpoint URL. Required.

OAuthPrivateKeyJWTCertificateHeader

Underlying type: string

OAuthTokenCache

FieldTypeDescription
inMemory*OAuthInMemoryTokenCache

OAuthTokenExchange

OAuth token exchange settings for backend authentication.

Validation:

  • XValidation:rule="!(has(self.actorToken) && has(self.grantType) && self.grantType == 'JwtBearer')",message="actorToken is only valid with TokenExchange grantType"
  • XValidation:rule="!(has(self.requestedTokenType) && has(self.grantType) && self.grantType == 'JwtBearer')",message="requestedTokenType is only valid with TokenExchange grantType"
  • XValidation:rule="!has(self.requestedTokenType) || self.requestedTokenType != 'IdJag'",message="requestedTokenType IdJag is only supported by crossAppAccess"
  • ExactlyOneOf=backendRef;url
  • XValidation:rule="has(self.url) ? !has(self.path) : true",message="path may not be set when url is set"
FieldTypeDescription
path*stringToken endpoint path; defaults to “/”. Must start with “/”.
grantType*OAuthGrantTypeRFC followed by the request. Defaults to TokenExchange (RFC 8693).
subjectToken*OAuthTokenSpecSubject 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.
actorToken*OAuthActorTokenRFC 8693 delegation actor token. TokenExchange grant only.
audiences[]ShortStringAudiences sent to the token endpoint.
scopes[]stringScopes sent to the token endpoint.
resources[]stringResources sent to the token endpoint.
requestedTokenType*OAuthTokenTypeRFC 8693 requested_token_type. Unlike subject/actor token types, only the built-in values may be requested; custom URIs are not supported here.
additionalParamsmap[string]CELExpressionExtra form params; values are CEL expressions over the incoming request. Parameters set by the gateway itself (for example scope, audience, or client_id) may not be overridden.
clientAuth*OAuthClientAuthClient authentication for the token endpoint. When unset, none is sent.
location*AuthorizationLocationWhere the exchanged token is written to the backend request. Defaults to Authorization: Bearer.
cache*OAuthTokenCacheResponse cache configuration.

OAuthTokenSpec

FieldTypeDescription
source*AuthorizationExtractionLocationWhere to read the token. CEL expression variant is permitted.
tokenType*OAuthTokenTypeOAuth token type. Empty defaults to AccessToken. Custom absolute URI values are supported for subject tokens.

OAuthTokenType

Underlying type: string

OAuthTokenType is an RFC 8693 token type. The built-in values below are translated to their URN form; any other value must be a custom absolute URI and is passed through unchanged. It is intentionally not a closed enum so subject/actor tokens can use provider-specific token type URIs.

OTLPProtocol

Underlying type: string

ObjectMetadata

ObjectMetadata contains labels and annotations for metadata overlays.

FieldTypeDescription
labelsmap[string]stringMap of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
annotationsmap[string]stringAnnotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations

OpenAIConfig

Settings for the OpenAI LLM provider.

FieldTypeDescription
model*ShortStringModel name override, such as gpt-4o-mini. If unset, the model name is taken from the request.
moderation*OpenAIInlineModerationInline moderation configuration to inject into OpenAI chat completions and responses requests. If unset, the OpenAI inline moderation parameter is not injected.

OpenAIInlineModeration

FieldTypeDescription
modelShortStringThe moderation model to use, such as omni-moderation-latest. Defaults to omni-moderation-latest if not specified.
policy*OpenAIInlineModerationPolicyPolicies to apply to request input and generated output.

OpenAIInlineModerationConfig

FieldTypeDescription
modeOpenAIInlineModerationModeMode controls whether moderation only returns scores or blocks flagged content. Required.

OpenAIInlineModerationMode

Underlying type: string

OpenAIInlineModerationPolicy

FieldTypeDescription
input*OpenAIInlineModerationConfigPolicy for request input moderation.
output*OpenAIInlineModerationConfigPolicy for generated output moderation.

OpenAIModeration

FieldTypeDescription
failureModeFailureModeBehavior when the provider is unavailable or returns an error. FailOpen allows the request to continue; FailClosed (default) rejects it.
model*stringModeration model to use. For example, omni-moderation.
action*RejectAuditActionAction controls whether flagged content is rejected or only observed. Reject (the default) rejects flagged content; Audit records the would-be rejection without blocking.
policies*OpenAIModerationPolicyPolicies for communicating with OpenAI.

OpenAIModerationAuth

OpenAIModerationAuth configures credentials for OpenAI Moderation requests.

Validation:

  • ExactlyOneOf=key;secretRef
FieldTypeDescription
key*stringInline key to use as the value of the Authorization header. This option is the least secure; usage of a Secret is preferred.
secretRef*LocalSecretKeyRefCredential source for the authorization value, defaulting to a Kubernetes Secret. By default, the value is read from the Authorization key; set secretRef.key to override it. A Bearer prefix is stripped only from the default Authorization key.
location*AuthorizationLocationWhere backend credentials are inserted. Defaults to the Authorization header with the Bearer prefix. Applies to key and secretRef.

OpenAIModerationPolicy

OpenAIModerationPolicy configures calls to the OpenAI Moderation API.

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
auth*OpenAIModerationAuthSettings for authenticating to OpenAI.

OtlpAccessLog

Ships access logs to an OpenTelemetry-compatible backend via OTLP.

Validation:

  • ExactlyOneOf=backendRef;url
  • XValidation:rule="!has(self.path) || (has(self.protocol) && self.protocol == 'HTTP')",message="path is only valid with protocol HTTP"
  • XValidation:rule="!has(self.path) || self.path.startsWith('/')",message="path must start with /"
  • XValidation:rule="!has(self.url) || !self.url.matches('^https?://[^/?#]+/') || (has(self.protocol) && self.protocol == 'HTTP')",message="url path is only valid with protocol HTTP"
FieldTypeDescription
filter*CELExpressionCEL expression used to filter OTLP logs. A log will only be exported if the expression evaluates to true. If unset, the parent access log filter is used.
attributes*LogTracingAttributesCustomizations to the key-value pairs exported over OTLP. If unset, the parent access log attributes are used.
protocolOTLPProtocolOTLP protocol variant to use. Defaults to GRPC.
path*LongStringOTLP/HTTP path to use. This is only applicable when protocol is HTTP. If unset, this defaults to /v1/logs.

PolicyAncestorStatus

FieldTypeDescription
ancestorRefgwv1.ParentReferenceThe ancestor resource that this status entry describes. Required.
controllerNamestringThe controller that wrote this status entry. Example: example.net/gateway-controller. Required.
conditions[]metav1.ConditionConditions for this policy’s effect on the specified ancestor.

PolicyInheritance

Underlying type: string

How a traffic policy affects policy inheritance across attachment specificity levels.

PolicyPhase

Underlying type: string

PolicyStatus

FieldTypeDescription
conditions[]metav1.ConditionThe current condition state for the policy.
ancestors[]PolicyAncestorStatusStatus for each ancestor that is affected by this policy. Required.

PolicyStrategy

FieldTypeDescription
inheritance*PolicyInheritanceControls whether less-specific traffic policies prevent more-specific traffic policies from contributing to the effective policy. This field is only valid on traffic policies. Frontend and backend policy merging does not use inheritance. When unset or set to Default, traffic policy fields are merged by specificity, with more-specific attachment points such as routes and route rules able to override fields from less-specific attachment points such as gateways and listeners. In other words, this policy provides Defaults that can be overridden. For example, you may provide a Default timeout policy for the entire Gateway that is overridden by specific routes. When set to Override, this policy blocks traffic policies at more-specific attachment points from being included in the effective policy. This is useful when a gateway-level policy must remain authoritative for all routes below it.

PrefixMode

Underlying type: string

PriorityGroup

FieldTypeDescription
providers[]NamedLLMProviderLLM providers within this group. Each provider is treated equally in terms of priority, with automatic weighting based on health. Required.

ProcessingOptions

External processor request and response phase settings.

FieldTypeDescription
requestBodyMode*BodySendModeHow request bodies are sent to the external processor. Defaults to FullDuplexStreamed.
responseBodyMode*BodySendModeHow response bodies are sent to the external processor. Defaults to FullDuplexStreamed.
requestHeaderMode*HeaderSendModeWhether request headers are sent to the external processor. Defaults to Send.
responseHeaderMode*HeaderSendModeWhether response headers are sent to the external processor. Defaults to Send.
requestTrailerMode*TrailerSendModeWhether request trailers are sent to the external processor. Defaults to Send.
responseTrailerMode*TrailerSendModeWhether response trailers are sent to the external processor. Defaults to Send.
allowModeOverrideboolAllows ext_proc mode_override values from matching header responses to update subsequent request/response processing phases for this exchange. Defaults to false.

PromptCachingConfig

Automatic prompt caching for supported LLM providers. Currently only AWS Bedrock supports this feature (Claude 3+ and Nova models). When enabled, the gateway automatically inserts cache points at strategic locations to reduce API costs. Bedrock charges lower rates for cached tokens (90% discount). Example: promptCaching: cacheSystem: true cacheMessages: true cacheTools: false Cost savings example: - Without caching: 10,000 tokens × $3/MTok = $0.03 - With caching (90% cached): 1,000 × $3/MTok + 9,000 × $0.30/MTok = $0.0057 (81% savings)

FieldTypeDescription
cacheSystem*boolEnables caching for system prompts. Defaults to true. Inserts a cache point after all system messages.
cacheMessages*boolEnables caching for conversation messages. Defaults to true. Caches all messages in the conversation for cost savings.
cacheToolsboolEnables 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.
minTokens*intMinimum 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.
cacheMessageOffsetintShifts 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.

PromptGuardStreamingMode

Underlying type: string

Streaming prompt guard mode.

PromptguardRequest

Prompt guards to apply to requests sent by the client.

Validation:

  • ExactlyOneOf=regex;webhook;openAIModeration;bedrockGuardrails;googleModelArmor
  • XValidation:rule="!has(self.scope) || !has(self.webhook) || (self.scope.size() == 2 && 'SystemPrompt' in self.scope && 'Messages' in self.scope)",message="scope: webhook guards do not support scope; they always inspect SystemPrompt + Messages"
FieldTypeDescription
response*CustomResponseCustom response message to return to the client. If not specified, defaults to The request was rejected due to inappropriate content.
scope[]ContentScopeWhich parts of the request this guard inspects. When unset, defaults to SystemPrompt, Messages, and ToolOutput. Tool call inputs are not inspected unless ToolInput is listed explicitly. Webhook guards do not support 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.
regex*RegexRegular expression (regex) matching for prompt guards and data masking.
webhook*WebhookWebhook that receives requests for prompt guarding.
openAIModeration*OpenAIModerationPasses prompt data through the OpenAI Moderations endpoint. See https://developers.openai.com/api/reference/resources/moderations for more information.
bedrockGuardrails*BedrockGuardrailsAWS Bedrock Guardrails settings for prompt guarding.
googleModelArmor*GoogleModelArmorGoogle Model Armor settings for prompt guarding.

PromptguardResponse

Prompt guards to apply to responses returned by the LLM provider.

Validation:

  • ExactlyOneOf=regex;webhook;bedrockGuardrails;googleModelArmor
  • XValidation:rule="!has(self.scope) || !has(self.webhook) || (self.scope.size() == 1 && 'Messages' in self.scope)",message="scope: webhook guards do not support a non-default scope; they always inspect the default (Messages)"
FieldTypeDescription
response*CustomResponseCustom response message to return to the client. If not specified, defaults to The response was rejected due to inappropriate content.
scope[]ContentScopeWhich parts of the response this guard inspects. When unset, defaults to Messages. Tool calls generated by the model are not inspected unless ToolInput is listed explicitly; ToolOutput covers results of 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.
regex*RegexRegular expression (regex) matching for prompt guards and data masking.
webhook*WebhookWebhook that receives responses for prompt guarding.
bedrockGuardrails*BedrockGuardrailsAWS Bedrock Guardrails settings for prompt guarding.
googleModelArmor*GoogleModelArmorGoogle Model Armor settings for prompt guarding.

ProxyProtocolMode

Underlying type: string

ProxyProtocolVersion

Underlying type: string

RateLimitDescriptor

FieldTypeDescription
entries[]RateLimitDescriptorEntryIndividual components that make up this descriptor. Required.
unit*RateLimitUnitCost unit. If unspecified, Requests is used.
cost*CELExpressionCommon Expression Language (CEL) expression that determines the cost of the request for this descriptor. If unset, Requests costs default to 1, and Tokens costs default to the total token count. Tokens cost are evaluated after the request has completed. For non-streaming requests, request, llm, and response fields are all available; for streaming requests, response is not available (however, all LLM attributes are in llm). For Requests, cost is computed during the request phase. See https://agentgateway.dev/docs/standalone/latest/reference/cel/ for more info.
limitOverride*CELExpressionCommon Expression Language (CEL) expression that returns a dynamic limit 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.

RateLimitDescriptorEntry

Entry in a rate limit descriptor.

FieldTypeDescription
nameTinyStringName of the descriptor. Required.
expressionCELExpressionCommon Expression Language (CEL) expression that defines 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. Required.

RateLimitUnit

Underlying type: string

RateLimits

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
local[]LocalRateLimitLocal rate limiting policy.
global*GlobalRateLimitGlobal rate limiting policy using an external service.

RateLimitsConditional

FieldTypeDescription
conditionCELExpressionCEL expression that must evaluate to true for this policy to execute.
policyRateLimitsPolicy to apply when the condition matches. Required.

RateLimitsOrConditional

Validation:

  • ConditionalPolicy
  • AtLeastOneFieldSet
FieldTypeDescription
local[]LocalRateLimitLocal rate limiting policy.
global*GlobalRateLimitGlobal rate limiting policy using an external service.
conditional[]RateLimitsConditionalConditional 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.

Regex

Regular expression matching for prompt guards and data masking.

FieldTypeDescription
matches[]LongStringRegex patterns to match against the request or response. Matches and built-ins are additive.
builtins[]BuiltInBuilt-in regex patterns to match against the request or response. Matches and built-ins are additive.
action*ActionThe action to take if a regex pattern is matched in a request or response. The action applies to request and response matches alike. Note that Mask is not applied to streamed responses: matched content in a streamed response is passed through unmodified. Defaults to Mask.

RejectAuditAction

Underlying type: string

Action for guards that cannot mask (only reject or observe). Reject (the default) enforces the guard’s native verdict; Audit invokes the guard and records what it would have done without enforcing.

RemoteJWKS

Validation:

  • ExactlyOneOf=backendRef;url
  • XValidation:rule="has(self.backendRef) ? has(self.jwksPath) : true",message="jwksPath is required when backendRef is set"
  • XValidation:rule="has(self.url) ? !has(self.jwksPath) : true",message="jwksPath may not be set when url is set"
FieldTypeDescription
jwksPath*LongStringPath to the IdP jwks endpoint, relative to the root, commonly ".well-known/jwks.json".
cacheDuration*DurationHow long a fetched jwks document is used before it is re-fetched from the IdP. Defaults to 5m.

RequestDecompression

FieldTypeDescription
algorithms[]CompressionAlgorithmAlgorithms decoded from request bodies. Bodies using any other (or more than one) encoding are forwarded untouched. If unset, defaults to Gzip.

ResourceAdd

FieldTypeDescription
nameShortStringRequired.
expressionCELExpressionRequired.

ResponseCompression

FieldTypeDescription
algorithms[]CompressionAlgorithmAlgorithms 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.

Retry

Retry policy.

FieldTypeDescription
precondition*CELExpressionprecondition is a CEL expression evaluated against the request before any attempt is made. When it evaluates to false, retries are disabled and only the initial attempt is made, for example request.method == "GET". Retrying requires buffering the request body in memory for replay, so this lets us skip that cost when the request is known to be non-retriable (for example streaming uploads or long-lived connections like websockets).
condition*CELExpressioncondition is a CEL expression evaluated against each response to decide whether to retry. A response is retried when its status code is in codes or this expression evaluates to true.

SNI

Underlying type: string

Validation:

  • MinLength=1
  • MaxLength=253
  • Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`

SecretSelector

FieldTypeDescription
matchLabelsmap[string]stringLabels that must be present on each selected Secret. Required.

SessionAffinity

Configures best-effort session affinity using an existing request attribute.

FieldTypeDescription
sourceCELExpressionCEL expression evaluated against request state. It must return a string or bytes value. For example, request.headers["x-session-id"] or string(source.address). Required.

SessionRouting

Underlying type: string

ShortString

Underlying type: string

Validation:

  • MaxLength=256

ShutdownSpec

Validation:

  • XValidation:rule="self.min <= self.max",message="The 'min' value must be less than or equal to the 'max' value."
FieldTypeDescription
minint64Minimum time (in seconds) to wait before allowing Agentgateway to terminate. Refer to the CONNECTION_MIN_TERMINATION_DEADLINE environment variable for details. Required.
maxint64Maximum time (in seconds) to wait before allowing Agentgateway to terminate. Refer to the TERMINATION_GRACE_PERIOD_SECONDS environment variable for details. Required.

SpiffeCSISource

SpiffeCSISource sources the SPIFFE Workload API socket from a CSI driver (the SPIFFE CSI driver).

FieldTypeDescription
driverstringCSI driver name. Defaults to csi.spiffe.io.

SpiffeHostPathSource

SpiffeHostPathSource sources the SPIFFE Workload API socket from a directory on the host node. Note: this mounts an arbitrary host directory (read-only) into the gateway pod, so anyone who can set it can read that directory’s contents. Prefer the CSI source, and consider restricting hostPath to GatewayClass-level AgentgatewayParameters managed by cluster admins.

FieldTypeDescription
pathstringHost directory containing the SPIFFE Workload API socket, e.g. /run/spire/agent-sockets. Required.

SpiffeSpec

SpiffeSpec configures gateway-wide SPIFFE Workload API integration: where the Workload API socket comes from (mounted into the pod by the controller) and how long to wait for the initial connection.

FieldTypeDescription
enabled*boolExplicitly turns SPIFFE integration on or off for this gateway. When unset, the presence of the spiffe block opts in. Set to false on a Gateway-level AgentgatewayParameters to opt a gateway out of SPIFFE enabled at the GatewayClass level.
source*SpiffeWorkloadAPISourceVolume source for the SPIFFE Workload API socket. When omitted (i.e. spiffe: {}), the socket is sourced from the SPIFFE CSI driver with default settings.

SpiffeWorkloadAPISource

SpiffeWorkloadAPISource describes how the SPIFFE Workload API socket is mounted into the gateway pod. At most one of csi or hostPath may be set; when neither is set, the SPIFFE CSI driver is used. mountPath and socketName describe the container-side location of the socket and apply regardless of the source kind.

Validation:

  • AtMostOneOf=csi;hostPath
FieldTypeDescription
csi*SpiffeCSISourceSource the Workload API socket from the SPIFFE CSI driver (the default).
hostPath*SpiffeHostPathSourceSource the Workload API socket from a host directory.
mountPathstringMount path inside the container for the Workload API socket directory. Must be an absolute path. Defaults to /spiffe-workload-api.
socketNamestringSocket filename within the mount directory. Defaults to spire-agent.sock.

StaticBackend

Static backend endpoint, either TCP (host and port) or Unix Domain Socket.

Validation:

  • XValidation:rule="has(self.unixPath) || (has(self.host) && has(self.port))",message="must specify either unixPath or both host and port"
  • XValidation:rule="!has(self.unixPath) || (!has(self.host) && !has(self.port))",message="unixPath and host/port are mutually exclusive"
FieldTypeDescription
hostShortStringHost to connect to for TCP backends.
portint32Port to connect to for TCP backends.
unixPath*stringFilesystem path to a Unix Domain Socket. The gateway pod must share a volume with the target (e.g., via emptyDir sidecar pattern). Mutually exclusive with host/port.

TLSVersion

Underlying type: string

Timeouts

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
request*DurationMaximum time allowed from the start of downstream request processing until response headers are received. The response body is not included; use responseIdle to bound gaps between body frames.
responseIdle*DurationMaximum time to wait for a frame from the upstream response body. Limits how long the gateway waits for more response data from the backend. Time spent processing the response or waiting for the client to receive it does not count. This complements Request rather than overlapping it: Request stops applying once the response headers arrive, so it places no bound on how long the response body may take, and it cannot distinguish a stalled stream from a slow one. This does not apply to responses that switch protocols, so upgraded WebSocket connections and CONNECT tunnels are never terminated by it.

TinyString

Underlying type: string

Validation:

  • MinLength=1
  • MaxLength=64

Tracing

Validation:

  • ExactlyOneOf=backendRef;url
  • XValidation:rule="!has(self.path) || (has(self.protocol) && self.protocol == 'HTTP')",message="path is only valid with protocol HTTP"
  • XValidation:rule="!has(self.path) || self.path.startsWith('/')",message="path must start with /"
  • XValidation:rule="!has(self.url) || !self.url.matches('^https?://[^/?#]+/') || (has(self.protocol) && self.protocol == 'HTTP')",message="url path is only valid with protocol HTTP"
FieldTypeDescription
protocolOTLPProtocolOTLP protocol variant to use. Defaults to GRPC.
path*LongStringOTLP path to use. This is only applicable when protocol is HTTP. If unset, this defaults to /v1/traces.
attributes*LogTracingAttributesCustomizations to the key-value pairs that are included in the trace.
resources[]ResourceAddEntity producing telemetry and resources resources to be included in the trace.
randomSampling*CELExpressionExpression 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 0.0 and 1.0, or a boolean (true or false). If unspecified, random sampling is disabled.
clientSampling*CELExpressionExpression 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 (-01); use parentNotSampled for requests whose trace is not. This should evaluate to a float between 0.0 and 1.0, or a boolean (true or false). If unspecified, client sampling is 100% enabled.
parentNotSampled*CELExpressionExpression that determines whether to trace a request that arrives with a traceparent whose sampled flag is unset (-00), meaning the client asked for it not to be traced. When this is true the request is traced anyway, 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 and the request is not traced. Only one of randomSampling, clientSampling and parentNotSampled applies to any given request; the incoming traceparent decides which.
filter*CELExpressionExpression that determines whether a sampled span is exported. This uses keep semantics: spans are exported only when the expression evaluates to true. If unspecified, all sampled spans are exported.

TrailerSendMode

Underlying type: string

Whether HTTP trailers are delivered to the external processor.

Transform

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
set[]HeaderTransformationHeaders to set and the values to use.
add[]HeaderTransformationHeaders 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.
remove[]HeaderNameHeader names to remove from the request or response.
body*CELExpressionHTTP body transformation.
metadatamap[string]CELExpressionStores CEL-evaluated values under the metadata CEL variable for subsequent policy evaluations. metadata is evaluated before header or body transformations.

Transformation

Validation:

  • AtLeastOneFieldSet
FieldTypeDescription
request*TransformRequest transformation settings.
response*TransformResponse transformation settings.

TransformationConditional

FieldTypeDescription
conditionCELExpressionCEL expression that must evaluate to true for this policy to execute.
policyTransformationPolicy to apply when the condition matches. Required.

TransformationOrConditional

Validation:

  • ConditionalPolicy
  • AtLeastOneFieldSet
FieldTypeDescription
request*TransformRequest transformation settings.
response*TransformResponse transformation settings.
conditional[]TransformationConditionalConditional 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.

VertexAIConfig

FieldTypeDescription
model*ShortStringModel name override, such as gpt-4o-mini. If unset, the model name is taken from the request.

Webhook

Webhook for prompt guard request or response checks.

FieldTypeDescription
backendRefgwv1.BackendObjectReferenceWebhook server to reach. Supported types: Service and Backend. Required.
headersmap[string]CELExpressionCEL-computed headers to include in webhook requests.
forwardHeaderMatches[]gwv1.HTTPHeaderMatchHTTP 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.
failureModeFailureModeBehavior when the webhook guardrail is unavailable or returns an error. FailOpen allows the request to continue. FailClosed (default) rejects the request.
action*RejectAuditActionAction controls whether the webhook’s verdict is enforced or only observed. Reject (the default) enforces it; Audit records the would-be action without blocking or masking.