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
Review the Solo Enterprise for agentgateway API reference docs.
Packages
enterpriseagentgateway.solo.io/v1alpha1
Resource Types
- EnterpriseAgentgatewayBackend
- EnterpriseAgentgatewayBudget
- EnterpriseAgentgatewayBudgetList
- EnterpriseAgentgatewayExternalSecret
- EnterpriseAgentgatewayExternalSecretList
- EnterpriseAgentgatewayParameters
- EnterpriseAgentgatewayPolicy
- EnterpriseAgentgatewayRoleBinding
- EnterpriseAgentgatewayRoleBindingList
AgentgatewayExtensions
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
extauth ExtensionDeployment | Optional: {} | ||
ratelimiter ExtensionDeployment | Optional: {} | ||
extCache ExtCacheConfiguration | Optional: {} | ||
waf WAFConfiguration | Optional: {} |
AgwGlobalRateLimit
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
domain ShortString | domain for the limit; defaults to ‘solo.io’. | MaxLength: 256 Optional: {} | |
backendRef BackendObjectReference | BackendRef to the rate limit service (Service or Backend). Defaults to ‘rate-limit’ in the control-plane namespace. | Optional: {} | |
rateLimitConfigRefs RateLimitConfigRef array | RateLimitConfigRefs references RateLimitConfig resources. | MaxItems: 16 MinItems: 1 Required: {} | |
failureMode FailureMode | Behavior 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:
| Field | Description | Default | Validation |
|---|---|---|---|
name ObjectName | Name is the name of the AuthConfig resource. | Required: {} | |
namespace Namespace | Namespace 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:
| Field | Description | Default | Validation |
|---|---|---|---|
anyOf string array | anyOf 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:
| Field | Description | Default | Validation |
|---|---|---|---|
mcpResourcePath string | MCPResourcePath 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 ChainedAuth | ChainedAuth adds the upstream (chained / dual) auth leg. Omit for “downstream only” flows. | Optional: {} |
BudgetDiscoveryConfig
BudgetDiscoveryConfig defines how the controller discovers EnterpriseAgentgatewayBudget resources.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
namespaces BudgetNamespaceDiscovery | namespaces 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:
| Field | Description | Default | Validation |
|---|---|---|---|
discovery BudgetDiscoveryConfig | discovery 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:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | name 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 `, andmust not equal <missing>. Values are limited to 256 characters. | MaxProperties: 16 Optional: {} | |
limit BudgetLimit | limit defines the maximum spend allowed within the window. | Required: {} | |
window BudgetWindow | window defines the fixed-duration period over which spending is accumulated. This is a rolling window and does not align to calendar boundaries. | Required: {} | |
onBudgetExceeded BudgetExceededAction | onBudgetExceeded 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 array | notifications 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:
| Field | Description | Default | Validation |
|---|---|---|---|
thresholdPercent integer | thresholdPercent 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 array | channels 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:
| Field | Description |
|---|---|
Audit | BudgetExceededActionAudit logs the overage but allows the request through. |
Block | BudgetExceededActionBlock rejects the request with HTTP 429. |
BudgetLimit
BudgetLimit specifies the maximum allowed spend and its unit.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
unit BudgetLimitUnit | unit is the currency of the limit. | Required: {} | |
amount integer | amount 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:
| Field | Description |
|---|---|
USD | BudgetLimitUnitUSD counts spend in United States Dollars (whole dollars only; no fractional amounts are permitted). |
Tokens | BudgetLimitUnitTokens counts LLM tokens consumed. |
BudgetNamespaceDiscovery
BudgetNamespaceDiscovery specifies which namespaces to search for budget resources.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
from BudgetNamespacesFromMode | from controls the namespace scope for budget discovery. | Required: {} | |
selector LabelSelector | selector 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:
| Field | Description |
|---|---|
Same | BudgetNamespacesFromSame restricts discovery to the same namespace as the policy. |
Selector | BudgetNamespacesFromSelector discovers budgets from namespaces whose labels match the provided selector. |
All | BudgetNamespacesFromAll 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:
| Field | Description | Default | Validation |
|---|---|---|---|
unit BudgetWindowUnit | unit 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:
| Field | Description |
|---|---|
Day | BudgetWindowUnitDay resets the budget after a 24-hour rate-limit window. |
Week | BudgetWindowUnitWeek resets the budget after a 7-day rate-limit window. |
Month | BudgetWindowUnitMonth resets the budget after a 30-day rate-limit window. |
Year | BudgetWindowUnitYear resets the budget after a 365-day rate-limit window. |
CA
CA is the certificate authority configuration for Istio integration.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
address string | Address is the discovery address of the certificate authority. Default is https://istiod.istio-system.svc:15012 | Optional: {} | |
trustDomain string | TrustDomain is the trust domain of the certificate authority. | Optional: {} | |
additionalTrustDomains string array | AdditionalTrustDomains 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:
| Field | Description | Default | Validation |
|---|---|---|---|
oauth ChainedOAuthConfig | OAuth 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:
| Field | Description | Default | Validation |
|---|---|---|---|
clientId string | ClientID is the pre-registered OAuth client ID. Omit to use dynamic client registration (requires baseUrl or registrationUrl). | Optional: {} | |
clientSecretRef LocalSecretKeyRef | ClientSecretRef 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, withclientSecret as a fallback.Only valid together with clientId. | Optional: {} | |
certificateKeyPairRef LocalSecretObjectRef | CertificateKeyPairRef 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 array | Scopes requested during the OAuth flow. | Optional: {} | |
baseUrl string | BaseURL is the OAuth server base URL used for metadata discovery. Mutually exclusive with authorizeUrl/accessTokenUrl/registrationUrl. | Optional: {} | |
authorizeUrl string | AuthorizeURL is the OAuth authorization endpoint. Provide together with accessTokenUrl as an alternative to baseUrl discovery. | Optional: {} | |
accessTokenUrl string | AccessTokenURL is the OAuth token endpoint. Provide together with authorizeUrl as an alternative to baseUrl discovery. | Optional: {} | |
registrationUrl string | RegistrationURL is the dynamic client registration endpoint, used when clientId is omitted and baseUrl discovery is not used. | Optional: {} | |
clientName string | ClientName is a human-friendly display name sent as client_name during dynamic client registration and shown on the consent screen. | MaxLength: 128 Optional: {} | |
pkce PKCEMode | PKCE 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 ElicitationConsentConfig | Consent overrides the consent-screen presentation for this protected resource. | Optional: {} |
ElicitationConsentConfig
ElicitationConsentConfig overrides the consent screen for a protected resource.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
disabled boolean | Disabled bypasses the consent screen when controller-level consent is enabled. | Optional: {} | |
platformName string | PlatformName overrides the platform label shown on the consent screen. | Optional: {} | |
logoUrl string | LogoURL overrides the logo shown on the consent screen. | Optional: {} | |
legalText string | LegalText overrides the consent legal text. | Optional: {} |
EntAIPromptGuard
EntAIPromptGuard configures enterprise prompt guards for LLM requests and responses.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
streaming PromptGuardStreamingMode | Apply prompt guards to streaming responses and realtime websocket messages. Defaults to disabled to preserve streaming throughput unless explicitly enabled. | Optional: {} | |
request EntPromptguardRequest array | Request configures enterprise prompt guards to apply to LLM requests. | ExactlyOneOf: [regex webhook openAIModeration bedrockGuardrails googleModelArmor purviewDlp] MaxItems: 8 MinItems: 1 Optional: {} | |
response EntPromptguardResponse array | Response 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:
| Field | Description | Default | Validation |
|---|---|---|---|
policy AuthorizationPolicy | The 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; preferAllow or Require. If used, design expressions defensively against evaluation errors.If at least one Allow rule is configured, requests are denied unless atleast one allow rule matches. | Optional: {} | |
action AuthorizationPolicyAction | The effect of this rule when it matches. If unspecified, defaults to Allow.Require rules are cumulative: all require rules must match. | Optional: {} | |
roles AuthorizationRoles | roles 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:
| Field | Description | Default | Validation |
|---|---|---|---|
roleArn string | AWS 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 array | Chain of roles to assume in sequence before signing backend requests. Mutually exclusive with roleArn. | MinItems: 1 Optional: {} | |
sessionName string | SessionName 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 CELExpression | SessionNameExpression is a CEL expression evaluated against each request to produce the session name (RoleSessionName), for example jwt.sub orrequest.headers["x-team"]. If the expression does not produce a validsession name at request time, the request is rejected. | MaxLength: 16384 MinLength: 1 Optional: {} | |
tags AwsSessionTag array | Session tags passed to STS AssumeRole for cost attribution in the AWS Cost & Usage Report, once activated. STS allows at most 50 per role session. | MaxItems: 50 Optional: {} | |
externalId string | External 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:
| Field | Description | Default | Validation |
|---|---|---|---|
secretRef LocalSecretObjectRef | Credential source for AWS credentials, defaulting to a Kubernetes Secret.The default Secret resolver expects accessKey, secretKey, and optionalsessionToken keys. | Optional: {} | |
assumeRole EntAwsAssumeRole | AWS 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 ShortString | AWS 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 ShortString | AWS SigV4 signing region, for example us-east-1. Set this when thetarget AWS service is in a different region than the gateway. If unset, typed AWS backends may provide this automatically; otherwise the ambient AWS region is used. | MaxLength: 256 MinLength: 1 Optional: {} |
EntAwsChainRole
EntAwsChainRole is a single hop in an AWS STS AssumeRole chain.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
roleArn string | AWS IAM role ARN to assume. | MinLength: 1 Pattern: ^arn:aws[a-z-]*:iam::[0-9]\{12\}:role/.+$Required: {} | |
externalId string | External 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:
| Field | Description | Default | Validation |
|---|---|---|---|
prompt AIPromptEnrichment | Enrich requests sent to the LLM provider by appending and prepending system prompts. | Optional: {} | |
promptGuard AIPromptGuard | promptGuard enables adding guardrails to LLM requests and responses. | Optional: {} | |
defaults FieldDefault array | Provide defaults to merge with user input fields. | MaxItems: 64 MinItems: 1 Optional: {} | |
overrides FieldDefault array | Provide overrides to merge with user input fields. | MaxItems: 64 MinItems: 1 Optional: {} | |
transformations FieldTransformation array | Provide CEL transformations to compute and set fields in the request body. | MaxItems: 64 MinItems: 1 Optional: {} | |
finalTransformations FieldTransformation array | Provide 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 PromptCachingConfig | promptCaching 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 EntAIPromptGuard | EntPromptGuard 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:
| Field | Description | Default | Validation |
|---|---|---|---|
authorization Authorization | MCP backend authorization. Unlike authorization at the HTTP level, which rejects unauthorized requests with a 403 error, this policy works at theMCPBackend 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 specificitem and reject requests that do not meet the rule. | Optional: {} | |
authentication MCPAuthentication | MCP backend-specific authentication rules. This field is deprecated; prefer to use traffic policy jwtAuthentication.mcp, which ensures authentication runs beforeother policies such as transformation and rate limiting. | Optional: {} | |
guardrails MCPGuardrails | Remote and in-process CEL policy processors for MCP requests and responses. | Optional: {} | |
authorization EntAuthorization | Optional: {} |
EntBackendPolicies
EntBackendPolicies extends the upstream BackendFull with enterprise-specific features.
Validation:
- AtMostOneOf: [auth tokenExchange workloadIdentity entTokenExchange]
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
tcp BackendTCP | Settings for managing TCP connections to the backend | Optional: {} | |
tls BackendTLS | Settings for managing TLS connections to the backend When set, TLS is originated to the backend using the system trusted CA certificates, and SNI is inferred from the destination. | AtMostOneOf: [verifySubjectAltNames insecureSkipVerify] Optional: {} | |
http BackendHTTP | Settings for managing HTTP requests to the backend | Optional: {} | |
tunnel BackendTunnel | Settings for managing tunnel connections to the backend, like HTTPS_PROXY | ExactlyOneOf: [backendRef url] Optional: {} | |
auth BackendAuth | Settings for managing authentication to the backend | AtMostOneOf: [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign] Optional: {} | |
authorization Authorization | Authorization rules that clients must satisfy after this backend is selected. Unlike traffic authorization, this policy is evaluated against the request associated with the selected destination backend. | Optional: {} | |
sessionAffinity SessionAffinity | 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 BackendAI | Settings for AI workloads. This is only applicable when connecting to a Backend of type ai. | Optional: {} | |
mcp BackendMCP | Settings for MCP workloads. This is only applicable when connecting to a Backend of type mcp. | Optional: {} | |
transformation Transformation | Mutates and transforms requests and responses sent to and from the backend. | Optional: {} | |
health Health | Settings for passive and active health checking. | Optional: {} | |
extAuth ExtAuth | External authentication configuration for requests sent to this backend. | Optional: {} | |
tokenExchange TokenExchangeCfg | Perform 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 EntElicitationCfg | entElicitation 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 EntTokenExchange | EntTokenExchange configures proxy-side OAuth-family token exchange using enterprise provider presets. | ExactlyOneOf: [okta google solo entra] Optional: {} | |
workloadIdentity WorkloadIdentityConfig | workloadIdentity selects how the gateway presents workload identity to the upstream. Mutually exclusive with the other auth/tokenExchange variants. | Optional: {} | |
entHealthCheck EntHealthCheck | entHealthCheck periodically probes this backend and reports its health in theagentgateway_ent_backend_health metric and in logs. It only reports health:traffic is still sent to an unhealthy backend. Only supported on staticand a2a backends; for entMcp, set it on each static target instead. | Optional: {} |
EntBatch
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
bedrock EntBedrockBatch | bedrock serves the OpenAI batch APIs using Bedrock batch inference. All Bedrock providers must use the same region. | Optional: {} |
EntBedrockBatch
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
bucket TinyString | bucket is the S3 bucket in the provider’s region. Objects pushed by agentgateway use the agentgateway-batch/ prefix. | MaxLength: 64 MinLength: 1 Required: {} | |
roleArn LongString | roleArn 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:
| Field | Description | Default | Validation |
|---|---|---|---|
identityProvider CrossAppAccessEndpoint | User identity provider authorization server, used for the RFC 8693 ID-JAG exchange. | ExactlyOneOf: [backendRef url] Required: {} | |
resourceAuthorizationServer CrossAppAccessEndpoint | Resource authorization server, used for the RFC 7523 jwt-bearer exchange. | ExactlyOneOf: [backendRef url] Required: {} | |
audience ShortString | Identifier of the resource authorization server. The issued ID-JAG is bound to this audience. | MaxLength: 256 MinLength: 1 Required: {} | |
resources string array | Resources sent to the token endpoint. | MaxItems: 64 MinItems: 1 Optional: {} | |
scopes string array | Scopes sent to the token endpoint. | MaxItems: 64 MinItems: 1 Optional: {} | |
subjectToken EntCrossAppAccessSubjectToken | Subject token sent to the identity provider. Defaults to an OpenID Connect ID token read from the Authorization Bearer header. | Optional: {} | |
bootstrapScopes string array | Scopes 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 OAuthTokenCache | Response cache configuration. | Optional: {} |
EntCrossAppAccessSubjectToken
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
source AuthorizationExtractionLocation | Where to read the subject token. Defaults to the Authorization Bearer header. | ExactlyOneOf: [header queryParameter cookie expression] Optional: {} | |
tokenType EntCrossAppAccessTokenType | Type 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:
| Field | Description |
|---|---|
IdToken | EntCrossAppAccessTokenTypeIDToken exchanges an OpenID Connect ID token (OSS behavior). |
Saml2 | EntCrossAppAccessTokenTypeSaml2 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:
| Field | Description | Default | Validation |
|---|---|---|---|
interactive InteractiveElicitation | Interactive configures an enterprise UI-driven elicitation. | Optional: {} | |
brokered BrokeredElicitation | Brokered 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:
| Field | Description | Default | Validation |
|---|---|---|---|
path LongString | Path to request. Defaults to the agent card for A2A backends, and to the target path for MCP targets. | MaxLength: 1024 MinLength: 1 Optional: {} | |
interval Duration | Time between probes. Defaults to 10s. | Format: duration Optional: {} | |
timeout Duration | Timeout for a single probe. Defaults to 2s. | Format: duration Optional: {} | |
unhealthyThreshold integer | Consecutive failed probes before the backend is reported unhealthy. Defaults to 3. | Minimum: 1 Optional: {} | |
healthyThreshold integer | Consecutive 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:
| Field | Description | Default | Validation |
|---|---|---|---|
targets EntMcpTargetSelector array | Targets is a list of entMcp targets to use for this backend.Policies targeting static targets must use targetRefs[].sectionNameto select the target by name. | ExactlyOneOf: [selector static custom] MaxItems: 128 MinItems: 1 Required: {} | |
toolMode EntMCPToolMode | ToolMode 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 progressivedisclosure and reduced context. “Code” exposes a single run_code tool that executes JavaScriptagainst the allowed tool API. “CodeSearch” exposes get_tool and run_code. | Optional: {} | |
codeMode EntMCPCodeMode | CodeMode configures settings specific to toolMode: Code and toolMode: CodeSearch. | Optional: {} | |
sessionRouting SessionRouting | SessionRouting configures MCP session behavior for requests. Defaults to Stateful if not set. | Optional: {} | |
failureMode FailureMode | FailureMode 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 PrefixMode | PrefixMode 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:
| Field | Description | Default | Validation |
|---|---|---|---|
timeout Duration | Timeout is the maximum duration allowed for a single run_code execution.Defaults to 60s when unset. | Format: duration Optional: {} | |
cpuTimeout Duration | CPUTimeout is the maximum CPU time allowed for a single run_code execution.Defaults to 1s when unset. | Format: duration Optional: {} |
EntMCPOpenAPI
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
schemaRef LocalObjectReference | schemaRef 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:
| Field | Description |
|---|---|
StreamableHTTP | MCPProtocolStreamableHTTP specifies Streamable HTTP must be used as the protocol |
SSE | MCPProtocolSSE specifies Server-Sent Events (SSE) must be used as the protocol |
OpenAPI | MCPProtocolOpenAPI specifies OpenAPI will be used as the protocol. |
EntMCPToolMode
Underlying type: string
EntMCPToolMode defines how MCP tools are exposed to the client.
Appears in:
| Field | Description |
|---|---|
Standard | EntMCPToolModeStandard exposes tools as-is from the server, subject to filtering. |
Search | EntMCPToolModeSearch exposes get_tool and invoke_tool for progressive disclosure. |
Code | EntMCPToolModeCode exposes a single run_code tool backed by the allowed MCP tool set. |
CodeSearch | EntMCPToolModeCodeSearch exposes get_tool for progressive disclosure and run_code for execution. |
EntMcpCustomHTTPBackendRef
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
group Group | group 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 StepBackendRefKind | kind selects the referenced resource type. | Required: {} | |
name ShortString | MaxLength: 256 Required: {} | ||
port integer | port 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:
| Field | Description | Default | Validation |
|---|---|---|---|
backendRef EntMcpCustomHTTPBackendRef | backendRef points at a Kubernetes Service, an AgentgatewayBackend, or an EnterpriseAgentgatewayBackend whose spec is static or aws. Inlinepolicies on a referenced backend apply to the request. | Optional: {} | |
method string | HTTP method for the request. Defaults to GET. | Enum: [GET POST PUT PATCH DELETE HEAD OPTIONS] Optional: {} | |
path CELExpression | CEL expression returning the request path (e.g. "/users/" + input.id).Defaults to “/” if unset. | MaxLength: 16384 MinLength: 1 Optional: {} | |
body CELExpression | CEL expression evaluated to JSON and sent as the request body. | MaxLength: 16384 MinLength: 1 Optional: {} | |
headers HeaderTransformation array | Headers to set on the request. Each value is a CEL expression. | MaxItems: 32 Optional: {} |
EntMcpCustomMCPBackendRef
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
group Group | group 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 StepBackendRefKind | kind selects the referenced resource type. Must be an MCP-typed backend (the (group, kind) rule below excludes Service). | Required: {} | |
name ShortString | MaxLength: 256 Required: {} | ||
target ShortString | target picks a target inside the referenced MCP-typed backend. | MaxLength: 256 Optional: {} |
EntMcpCustomMCPStep
Validation:
- ExactlyOneOf: [backendRef]
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
backendRef EntMcpCustomMCPBackendRef | backendRef references an MCP-typed AgentgatewayBackend or EnterpriseAgentgatewayBackend in the same namespace. Set target topick 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 ShortString | MCP tool name to call on the upstream server. | MaxLength: 256 MinLength: 1 Required: {} | |
arguments CELExpression | CEL expression evaluated to a JSON object passed as arguments to theupstream 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:
| Field | Description | Default | Validation |
|---|---|---|---|
name ShortString | MaxLength: 256 Required: {} | ||
http EntMcpCustomHTTPStep | http issues an HTTP request and parses its JSON body as the step output. | Optional: {} | |
mcp EntMcpCustomMCPStep | mcp 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:
| Field | Description | Default | Validation |
|---|---|---|---|
description LongString | Tool description surfaced to MCP clients. | MaxLength: 1024 MinLength: 1 Required: {} | |
inputSchema JSON | JSON Schema describing the tool’s input arguments. Surfaced to MCP clients. Steps and outputs can reference fields described here in CELexpressions via input.<path>. | Schemaless: {} Type: object Required: {} | |
steps EntMcpCustomStep array | Steps that compose the tool. Each step’s JSON output is bound tooutput.<step.name> for use in later step expressions and in output. | ExactlyOneOf: [http mcp] MaxItems: 64 MinItems: 1 Required: {} | |
output CELExpression | CEL 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:
| Field | Description | Default | Validation |
|---|---|---|---|
host ShortString | Host is the hostname or IP address of the MCPBackend target. | MaxLength: 256 Optional: {} | |
backendRef LocalObjectReference | backendRef references a namespace-local Service resource by name.When set, this replaces host only; port, path, and protocolremain configured on this target. | Optional: {} | |
port integer | Port is the port number of the MCPBackend target. | Maximum: 65535 Minimum: 1 Required: {} | |
path LongString | Path 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 EntMCPProtocol | Protocol is the protocol to use for the connection to the MCPBackend target. | Optional: {} | |
policies EntTargetPolicies | policies 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 EntHealthCheck | entHealthCheck periodically probes this target and reports its health in theagentgateway_ent_backend_health metric and in logs. It only reports health:traffic is still sent to an unhealthy target. Requires host and theStreamableHTTP protocol. Probes only use connection settings (such as tls)set on this target, not those set on the parent backend. | Optional: {} | |
openAPI EntMCPOpenAPI | OpenAPI 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:
| Field | Description | Default | Validation |
|---|---|---|---|
name SectionName | Name of the MCPBackend target. | Required: {} | |
selector McpSelector | selector 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 EntMcpTarget | static configures a static MCP destination. When connecting to in-cluster Services, it is recommended to use ‘selector’ instead. | ExactlyOneOf: [host backendRef] Optional: {} | |
condition CELExpression | CEL 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 EntMcpCustomTarget | custom 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 outputsexpression 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:
| Field | Description | Default | Validation |
|---|---|---|---|
condition CELExpression | Condition 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 PromptGuardMasking | Masking 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 CustomResponse | CustomResponse 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 array | Which parts of the request this guard inspects. When unset, defaults toSystemPrompt, Messages, and ToolOutput. Tool call inputs are notinspected unless ToolInput is listed explicitly. Webhook guards do notsupport scope and always inspect SystemPrompt and Messages. | MaxItems: 4 MinItems: 1 Optional: {} | |
regex Regex | Regular expression (regex) matching for prompt guards and data masking. | Optional: {} | |
webhook Webhook | Configure a webhook to forward requests to for prompt guarding. | Optional: {} | |
openAIModeration OpenAIModeration | openAIModeration passes prompt data through the OpenAI Moderations endpoint. | Optional: {} | |
bedrockGuardrails BedrockGuardrails | bedrockGuardrails configures AWS Bedrock Guardrails for prompt guarding. | Optional: {} | |
googleModelArmor GoogleModelArmor | googleModelArmor configures Google Model Armor for prompt guarding. | Optional: {} | |
purviewDlp PurviewDlp | purviewDlp 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:
| Field | Description | Default | Validation |
|---|---|---|---|
condition CELExpression | Condition 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 CustomResponse | CustomResponse 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 array | Which parts of the response this guard inspects. When unset, defaults toMessages. Tool calls generated by the model are not inspected unlessToolInput is listed explicitly; ToolOutput covers results ofserverside tools. In APIs that send tool arguments as opaque JSON, such as Completions, the arguments are masked as a single string, meaning a prompt guard has the potential to rewrite the arguments into invalid JSON. | MaxItems: 4 MinItems: 1 Optional: {} | |
regex Regex | Regular expression (regex) matching for prompt guards and data masking. | Optional: {} | |
webhook Webhook | Configure a webhook to forward responses to for prompt guarding. | Optional: {} | |
bedrockGuardrails BedrockGuardrails | bedrockGuardrails configures AWS Bedrock Guardrails for prompt guarding. | Optional: {} | |
googleModelArmor GoogleModelArmor | googleModelArmor configures Google Model Armor for prompt guarding. | Optional: {} | |
purviewDlp PurviewDlp | purviewDlp 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:
| Field | Description |
|---|---|
Completions | EntRouteTypeCompletions processes OpenAI /v1/chat/completions format requests. |
Messages | EntRouteTypeMessages processes Anthropic /v1/messages format requests. |
Models | EntRouteTypeModels handles the /v1/models endpoint. |
Passthrough | EntRouteTypePassthrough sends requests upstream as-is without LLM processing. |
Detect | EntRouteTypeDetect sends requests as-is but attempts to extract request/response metadata for telemetry and rate limiting. |
Responses | EntRouteTypeResponses processes OpenAI /v1/responses format requests. |
AnthropicTokenCount | EntRouteTypeAnthropicTokenCount processes Anthropic/v1/messages/count_tokens format requests. |
Embeddings | EntRouteTypeEmbeddings processes OpenAI /v1/embeddings format requests. |
Realtime | EntRouteTypeRealtime processes OpenAI /v1/realtime requests. |
Rerank | EntRouteTypeRerank processes Cohere /v2/rerank format requests. |
GenerateContent | EntRouteTypeGenerateContent processes Gemini models/\{model\}:generateContentand models/\{model\}:streamGenerateContent format requests. |
GeminiCountTokens | EntRouteTypeGeminiCountTokens processes Gemini models/\{model\}:countTokensformat requests. |
Decisions | EntRouteTypeDecisions processes OpenAI /v1/decisions format requests. |
SystemOne | EntRouteTypeSystemOne processes TypeSafe /v1/systemone format requests. |
OpenAIFiles | EntRouteTypeOpenAIFiles processes OpenAI /v1/files requests and their subpaths. |
OpenAIBatches | EntRouteTypeOpenAIBatches processes OpenAI /v1/batches requests and their subpaths. |
AnthropicBatches | EntRouteTypeAnthropicBatches processes Anthropic /v1/messages/batchesrequests 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:
| Field | Description | Default | Validation |
|---|---|---|---|
tcp BackendTCP | Settings for managing TCP connections to the backend | Optional: {} | |
tls BackendTLS | Settings for managing TLS connections to the backend When set, TLS is originated to the backend using the system trusted CA certificates, and SNI is inferred from the destination. | AtMostOneOf: [verifySubjectAltNames insecureSkipVerify] Optional: {} | |
http BackendHTTP | Settings for managing HTTP requests to the backend | Optional: {} | |
tunnel BackendTunnel | Settings for managing tunnel connections to the backend, like HTTPS_PROXY | ExactlyOneOf: [backendRef url] Optional: {} | |
auth BackendAuth | Settings for managing authentication to the backend | AtMostOneOf: [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign] Optional: {} | |
tokenExchange TokenExchangeCfg | Perform 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 WorkloadIdentityConfig | workloadIdentity 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:
| Field | Description | Default | Validation |
|---|---|---|---|
solo SoloTokenExchangeCfg | Solo configures token exchange against the Solo Enterprise STS. | Optional: {} | |
okta OktaTokenExchangeCfg | Okta configures Okta OAuth token exchange. | Optional: {} | |
google GoogleTokenExchangeCfg | Google configures Google Security Token Service token exchange. | Optional: {} | |
entra EntraTokenExchangeCfg | Entra configures Microsoft Entra ID on-behalf-of token exchange. | Optional: {} |
EnterpriseAgentgatewayBackend
EnterpriseAgentgatewayBackend is a Solo Enterprise for agentgateway backend.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayBackend | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec EnterpriseAgentgatewayBackendSpec | Spec defines the desired state of the agentgateway backend. | ExactlyOneOf: [ai static dynamicForwardProxy mcp aws a2a entMcp] Required: {} | |
status AgentgatewayBackendStatus | Status defines the current state of the agentgateway backend. | Optional: {} |
EnterpriseAgentgatewayBackendSpec
Validation:
- ExactlyOneOf: [ai static dynamicForwardProxy mcp aws a2a entMcp]
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
static StaticBackend | static represents a static hostname. | Optional: {} | |
a2a A2ABackend | a2a represents an A2A backend. | Optional: {} | |
ai AIBackend | ai represents a LLM backend. | Optional: {} | |
mcp MCPBackend | mcp represents an MCP backend | Optional: {} | |
dynamicForwardProxy DynamicForwardProxyBackend | dynamicForwardProxy 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 AwsBackend | aws represents an AWS service backend (AgentCore, etc.). | Optional: {} | |
entMcp EntMCPBackend | entMcp represents an enterprise EntMCP backend | Optional: {} | |
policies EntBackendPolicies | policies 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 EntBatch | entBatch 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:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayBudget | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec EnterpriseAgentgatewayBudgetSpec | Spec defines the desired state of the budget. | Required: {} | |
status EnterpriseAgentgatewayBudgetStatus | Status defines the observed state of the budget. | Optional: {} |
EnterpriseAgentgatewayBudgetList
EnterpriseAgentgatewayBudgetList is a list of EnterpriseAgentgatewayBudget resources.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayBudgetList | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ListMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
items EnterpriseAgentgatewayBudget array |
EnterpriseAgentgatewayBudgetSpec
EnterpriseAgentgatewayBudgetSpec defines the desired state of EnterpriseAgentgatewayBudget.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
budgets BudgetEntry array | budgets 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:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | conditions describe the current state of the budget resource. | Optional: {} |
EnterpriseAgentgatewayExtAuth
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
authConfigRef AuthConfigRef | AuthConfigRef used by the external-auth server. | Optional: {} | |
backendRef BackendObjectReference | BackendRef 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:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayExternalSecret | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec EnterpriseAgentgatewayExternalSecretSpec | Required: {} | ||
status EnterpriseAgentgatewayExternalSecretStatus | Optional: {} |
EnterpriseAgentgatewayExternalSecretList
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayExternalSecretList | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ListMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
items EnterpriseAgentgatewayExternalSecret array |
EnterpriseAgentgatewayExternalSecretSpec
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
storeRef ExternalSecretStoreRef | StoreRef names an installation-global external secret store. | Required: {} | |
refreshInterval Duration | RefreshInterval 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 array | Data maps remote provider values into materialized credential keys. | MaxItems: 64 MinItems: 1 Required: {} |
EnterpriseAgentgatewayExternalSecretStatus
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | Conditions 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 integer | ObservedGeneration 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.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayParameters | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec EnterpriseAgentgatewayParametersSpec | Required: {} | ||
status EnterpriseAgentgatewayParametersStatus | Optional: {} |
EnterpriseAgentgatewayParametersSpec
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
workload AgentgatewayParametersWorkload | workload selects the Kubernetes workload kind for the managed Gatewaydata plane. If unset, Deployment is used. | Optional: {} | |
logging AgentgatewayParametersLogging | Logging configuration. By default, all logs are set toinfo level. | Optional: {} | |
rawConfig JSON | Raw agentgateway configuration to merge into the generated config file. This is merged with configuration derived from typed fields like logging.format, and thosetyped 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 Image | The 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 array | Container environment variables. These override any existing values. If you want to delete an environment variable entirely, use $patch: delete with an overlay instead. Note thatvariable 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 thecontroller-managed per- Gateway session key Secret. | Optional: {} | |
resources ResourceRequirements | Compute resources required by this container. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ for details. | Optional: {} | |
shutdown ShutdownSpec | Shutdown 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 Gatewayresources. | Optional: {} | |
istio IstioSpec | Istio integration settings. If enabled, agentgateway can natively connect to Istio-enabled pods with mTLS. | Optional: {} | |
spiffe SpiffeSpec | SPIFFE 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 theAgentgatewayPolicy backend.tls.certificateSource: SPIFFE field respectively). | Optional: {} | |
modelCatalog ModelCatalogSpec | Model 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 KubernetesResourceOverlay | Overrides for the generatedDeployment resource. | Optional: {} | |
daemonSet KubernetesResourceOverlay | Overrides for the generatedDaemonSet resource. | Optional: {} | |
service KubernetesResourceOverlay | Overrides for the generated Serviceresource. | Optional: {} | |
serviceAccount KubernetesResourceOverlay | Overrides for the generatedServiceAccount resource. | Optional: {} | |
podDisruptionBudget KubernetesResourceOverlay | Creates a PodDisruptionBudget for theagentgateway 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 areapplied to the generated PDB. | Optional: {} | |
horizontalPodAutoscaler KubernetesResourceOverlay | Creates a HorizontalPodAutoscalerfor Deployment-backed agentgateway proxies. If absent, no HPA is created. If present, an HPA is created with its scaleTargetRef automaticallyconfigured to target the generated Deployment. The metadata and specfields from this overlay are applied to the generated HPA. | Optional: {} | |
sharedExtensions AgentgatewayExtensions | SharedExtensions defines extensions that are shared across all Gateways of the same GatewayClass | Optional: {} | |
ca CA | CA 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 string | IstioClusterId 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 string | IstioNetwork 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 WorkloadClaimsSpec | WorkloadClaims configures WIMSE workload identity claim processing on the proxy. | Optional: {} | |
trustDomainValidation TrustDomainValidationSpec | TrustDomainValidation configures SPIFFE trust-domain chain verification on the proxy. | Optional: {} | |
plugins EnterpriseAgentgatewayPluginSource array | plugins 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 bytraffic.entPlugin.plugin (defaulting to traffic.entPlugin.name); if that mounted directory contains exactly oneshared library, agentgateway loads it. | Optional: {} |
EnterpriseAgentgatewayParametersStatus
The current conditions of the EnterpriseAgentgatewayParameters. This is not currently implemented.
Appears in:
EnterpriseAgentgatewayPlugin
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | name 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 string | plugin selects the plugin library to run, matching anEnterpriseAgentgatewayParameters.spec.plugins[].name. Defaults to name. | MaxLength: 48 MinLength: 1 Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$Optional: {} | |
order EnterpriseAgentgatewayPluginOrder | order controls where this plugin runs in the request policy chain. If unset, this defaults to Late. | Optional: {} | |
config JSON | config is an opaque JSON object provided when the named plugin is instantiated. | Type: object Optional: {} |
EnterpriseAgentgatewayPluginConditional
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
condition CELExpression | condition must evaluate to true for this policy to execute. | MaxLength: 16384 MinLength: 1 Optional: {} | |
policy EnterpriseAgentgatewayPlugin | policy definition. | Required: {} |
EnterpriseAgentgatewayPluginOrConditional
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | name 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 string | plugin selects the plugin library to run, matching anEnterpriseAgentgatewayParameters.spec.plugins[].name. Defaults to name. | MaxLength: 48 MinLength: 1 Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$Optional: {} | |
order EnterpriseAgentgatewayPluginOrder | order controls where this plugin runs in the request policy chain. If unset, this defaults to Late. | Optional: {} | |
config JSON | config is an opaque JSON object provided when the named plugin is instantiated. | Type: object Optional: {} | |
conditional EnterpriseAgentgatewayPluginConditional array | conditional, 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:
| Field | Description |
|---|---|
Early | EnterpriseAgentgatewayPluginOrderEarly runs the plugin before any other request policy, including CORS. |
PostAuthentication | EnterpriseAgentgatewayPluginOrderPostAuthentication 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. |
PostAuthorization | EnterpriseAgentgatewayPluginOrderPostAuthorization runs the plugin after authorization and before rate limiting, external processing, and transformations. The request has been allowed. |
Late | EnterpriseAgentgatewayPluginOrderLate runs the plugin after all other request policies. |
EnterpriseAgentgatewayPluginSecretReference
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the Secret name in the same namespace as the generated Agentgateway pod. | MinLength: 1 Required: {} | |
items KeyToPath array | Items 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:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name 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 string | Image is the OCI image or artifact reference to mount as an image volume. | MinLength: 1 Optional: {} | |
pullPolicy PullPolicy | PullPolicy controls when Kubernetes pulls the OCI artifact. If unset, Kubernetes applies the same defaults used for container images. | Optional: {} | |
secretRef EnterpriseAgentgatewayPluginSecretReference | SecretRef 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
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayPolicy | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec EnterpriseAgentgatewayPolicySpec | Spec defines the desired state of the agentgateway policy | ExactlyOneOf: [targetRefs targetSelectors] Required: {} | |
status PolicyStatus | Status is the status of the agentgateway policy | Optional: {} |
EnterpriseAgentgatewayPolicyBackend
Validation:
- AtMostOneOf: [auth workloadIdentity tokenExchange entTokenExchange entCrossAppAccess entAws]
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
tcp BackendTCP | Settings for managing TCP connections to the backend | Optional: {} | |
tls BackendTLS | Settings for managing TLS connections to the backend When set, TLS is originated to the backend using the system trusted CA certificates, and SNI is inferred from the destination. | AtMostOneOf: [verifySubjectAltNames insecureSkipVerify] Optional: {} | |
http BackendHTTP | Settings for managing HTTP requests to the backend | Optional: {} | |
tunnel BackendTunnel | Settings for managing tunnel connections to the backend, like HTTPS_PROXY | ExactlyOneOf: [backendRef url] Optional: {} | |
auth BackendAuth | Settings for managing authentication to the backend | AtMostOneOf: [key secretRef passthrough aws azure gcp oauthTokenExchange crossAppAccess jwtSign] Optional: {} | |
authorization EntAuthorization | authorization 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 SessionAffinity | sessionAffinity 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 EntBackendAI | ai specifies settings for AI workloads. This is only applicable when connecting to a Backend of type ‘ai’. | Optional: {} | |
mcp EntBackendMCP | mcp specifies settings for MCP workloads. This is only applicable when connecting to a Backend of type ‘mcp’. | Optional: {} | |
transformation Transformation | transformation is used to mutate and transform requests and responses sent to and from the backend. | Optional: {} | |
health Health | health defines settings for passive and active health checking. | Optional: {} | |
extAuth ExtAuth | extAuth specifies the external authentication configuration for requests sent to this backend. | Optional: {} | |
tokenExchange TokenExchangeCfg | Perform 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 EntElicitationCfg | entElicitation 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 EntTokenExchange | EntTokenExchange configures proxy-side OAuth-family token exchange using enterprise provider presets. | ExactlyOneOf: [okta google solo entra] Optional: {} | |
entCrossAppAccess EntCrossAppAccess | EntCrossAppAccess 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 EntAwsAuth | EntAws 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 asingle AssumeRole call without chaining. | Optional: {} | |
workloadIdentity WorkloadIdentityConfig | workloadIdentity selects how the gateway presents workload identity to the upstream. Mutually exclusive with the other auth/tokenExchange variants. | Optional: {} |
EnterpriseAgentgatewayPolicyFrontend
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
tcp FrontendTCP | Settings for managing incoming TCP connections. | Optional: {} | |
networkAuthorization Authorization | CEL 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 FrontendTLS | Settings for managing incoming TLS connections. | Optional: {} | |
http FrontendHTTP | Settings for managing incoming HTTP requests. | Optional: {} | |
proxyProtocol FrontendProxyProtocol | Settings for downstream PROXY protocol handling. If configured, incoming connections may require a PROXY header before normal protocol handling. This can also be configured to allow both PROXY and non-PROXY traffic on the same listener. | Optional: {} | |
connect FrontendConnect | Settings for downstream HTTP CONNECT handling. If unset, CONNECT requests are rejected with Method Not Allowed. | Optional: {} | |
accessLog AccessLog | Access logging configuration. | Optional: {} | |
tracing Tracing | OpenTelemetry tracing settings. | ExactlyOneOf: [backendRef url] Optional: {} | |
metrics MetricLabels | Custom 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:
| Field | Description | Default | Validation |
|---|---|---|---|
targetRefs LocalPolicyTargetReferenceWithSectionName array | targetRefs specifies the target resources by reference to attach the policy to. | MaxItems: 16 MinItems: 1 Optional: {} | |
targetSelectors LocalPolicyTargetSelectorWithSectionName array | targetSelectors specifies the target selectors to select resources to attach the policy to. | MaxItems: 16 MinItems: 1 Optional: {} | |
strategy PolicyStrategy | strategy 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 string | description is an optional human-readable summary of what the policy does. | MaxLength: 1024 Optional: {} | |
imports Import array | Kubernetes 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 usethe 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 ImportScope | importScope controls where imports are visible. By default, imports are visible only on the policy that declares them. | Enum: [Policy Global] Optional: {} | |
frontend EnterpriseAgentgatewayPolicyFrontend | frontend settings for incoming traffic. Targets Gateways only. Field-level merge. | Optional: {} | |
traffic EnterpriseAgentgatewayPolicyTraffic | traffic settings for request processing. Targets Gateway/Listener(ListenerSet)/Route/RouteRule. Field-level merge; precedence: Gateway < Listener < Route < RouteRule. | AtMostOneOf: [extProc entWAF] Optional: {} | |
backend EnterpriseAgentgatewayPolicyBackend | backend 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:
| Field | Description | Default | Validation |
|---|---|---|---|
phase PolicyPhase | The phase to apply the traffic policy to. If the phase is PreRouting,the targetRef must be a Gateway or a Listener. PreRouting istypically used only when a policy needs to influence the routing decision. Even when using PostRouting mode, the policy can target theGateway or Listener. This is a helper for applying the policy to allroutes under that Gateway or Listener, and follows the merging logicdescribed above. Note: PreRouting and PostRouting rules do not merge together. Theseare independent execution phases. That is, all PreRouting rules willmerge and execute, then all PostRouting rules will merge and execute.If unset, this defaults to PostRouting. | Optional: {} | |
transformation TransformationOrConditional | Mutates and transforms requests and responses before forwarding them to the destination. | Optional: {} | |
extProc ExtProcOrConditional | External processing configuration for the policy. | Optional: {} | |
extAuth ExtAuthOrConditional | External 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 RateLimitsOrConditional | Rate limiting configuration for the policy. This limits the rate at which requests are processed. | Optional: {} | |
cors CORS | CORS configuration for the policy. | Optional: {} | |
csrf CSRF | Cross-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 tobe same-origin or non-browser requests and are allowed. * Otherwise, the Sec-Fetch-Site header is checked, with a fallback tocomparing the Origin header to the Host header. | Optional: {} | |
headerModifiers HeaderModifiers | Request and response header modification policy. | Optional: {} | |
hostRewrite HostnameRewrite | How to rewrite the Host header for requests.If the HTTPRoute urlRewrite filter already specifies a host rewrite,this setting is ignored. | Optional: {} | |
timeouts Timeouts | Request timeouts. It is applicable to HTTPRoute resources and ignored for other targetedkinds. | Optional: {} | |
retry Retry | Retry policy. | Optional: {} | |
authorization Authorization | Access rules based on roles and permissions. If multiple authorization rules are applied across different policies, at the same or different attachment points, all rules are merged. | Optional: {} | |
jwtAuthentication JWTAuthentication | Authenticates users based on JWT tokens. | Optional: {} | |
basicAuthentication BasicAuthentication | Authenticates users based on the Basicauthentication scheme (RFC 7617), where a username and password are encoded in the request. | ExactlyOneOf: [users secretRef] Optional: {} | |
apiKeyAuthentication APIKeyAuthentication | Authenticates users based on a configured API key. | ExactlyOneOf: [secretRef secretSelector configMapSelector] Optional: {} | |
directResponse DirectResponseOrConditional | Sends a direct response to the client. | Optional: {} | |
buffer Buffer | Buffers request and response bodies. Buffered bodies are accumulated in memory by the proxy until completion before being forwarded. This changes the proxies default behavior, which streams bodies. Warning: large bodies can lead to excessive memory usage in the proxy. Utilize with care, or with strict limits. | Optional: {} | |
compression Compression | Compresses responses sent to the client and decompresses request bodies before forwarding. | Optional: {} | |
delay Delay | Injects artificial latency before forwarding requests, for fault-injection testing. | Optional: {} | |
authorization EntAuthorization | Optional: {} | ||
entRateLimit EnterpriseAgentgatewayRateLimit | RateLimit defines the Enterprise rate limit configuration for the traffic policy | Optional: {} | |
entExtAuth EnterpriseAgentgatewayExtAuth | ExtAuth defines the Enterprise external authorization configuration for the traffic policy | Optional: {} | |
entWAF EnterpriseAgentgatewayWAF | WAF defines the Enterprise web application firewall configuration for the traffic policy | AtMostOneOf: [wafServerRef disable] ExactlyOneOf: [wafPolicyRef disable] Optional: {} | |
entBudgetEnforcement BudgetEnforcementConfig | entBudgetEnforcement 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 WptEnforcementConfig | entWptEnforcement 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 EnterpriseAgentgatewayPluginOrConditional | entPlugin 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:
| Field | Description | Default | Validation |
|---|---|---|---|
global AgwGlobalRateLimit | Global rate limit configuration | Required: {} |
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:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayRoleBinding | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec EnterpriseAgentgatewayRoleBindingSpec | Desired configuration. | Required: {} | |
status EnterpriseAgentgatewayRoleBindingStatus | Current status. | Optional: {} |
EnterpriseAgentgatewayRoleBindingList
EnterpriseAgentgatewayRoleBindingList is a list of EnterpriseAgentgatewayRoleBinding resources.
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | enterpriseagentgateway.solo.io/v1alpha1 | ||
kind string | EnterpriseAgentgatewayRoleBindingList | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ListMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
items EnterpriseAgentgatewayRoleBinding array |
EnterpriseAgentgatewayRoleBindingSpec
EnterpriseAgentgatewayRoleBindingSpec defines the desired state of EnterpriseAgentgatewayRoleBinding.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
roles string array | roles 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 array | subjects 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:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | conditions describe the current state of the role binding resource. | Optional: {} |
EnterpriseAgentgatewayWAF
Validation:
- AtMostOneOf: [wafServerRef disable]
- ExactlyOneOf: [wafPolicyRef disable]
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
wafPolicyRef WAFPolicyRef | WAFPolicyRef references the WAFPolicy used by the WAF server. | Optional: {} | |
wafServerRef BackendObjectReference | WAFServerRef 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 PolicyDisable | Disable WAF. This is intended for inheritance/override behavior. | Optional: {} |
EntraClientAuth
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
clientId string | ClientID 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 LocalSecretKeyRef | ClientSecretRef 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 LocalSecretObjectRef | CertificateKeyPairRef 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:
| Field | Description | Default | Validation |
|---|---|---|---|
tenantId string | TenantID 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 array | Scopes 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 EntraClientAuth | ClientAuth authenticates the gateway to Microsoft Entra. | Required: {} | |
backendRef BackendObjectReference | BackendRef 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:
| Field | Description | Default | Validation |
|---|---|---|---|
tenantId string | TenantID 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 string | ClientID 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 string | Scope 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 SecretKeyRef | ClientSecretRef 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:
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean | Enabled indicates whether the extension is enabled. | Optional: {} | |
image Image | Image is the container image configuration. | Optional: {} | |
resources ResourceRequirements | Resources are the compute resources required by this container. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | Optional: {} | |
env EnvVar array | Env 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 KubernetesResourceOverlay | Deployment 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 KubernetesResourceOverlay | Service allows specifying overrides for the generated Service resource. | Optional: {} | |
serviceAccount KubernetesResourceOverlay | ServiceAccount allows specifying overrides for the generated ServiceAccount resource. | Optional: {} | |
podDisruptionBudget KubernetesResourceOverlay | PodDisruptionBudget 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 KubernetesResourceOverlay | HorizontalPodAutoscaler 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 KubernetesResourceOverlay | VerticalPodAutoscaler 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 ExtCacheRedisConfiguration | Redis 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 ExtCacheRedisAuthConfiguration | Auth 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:
| Field | Description | Default | Validation |
|---|---|---|---|
secretName string | SecretName is the name of the Secret holding the redis credentials. | MinLength: 1 Required: {} | |
passwordKey string | PasswordKey is the key within SecretName holding the redis password. Defaults to “password”. | Optional: {} | |
usernameKey string | UsernameKey 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:
| Field | Description | Default | Validation |
|---|---|---|---|
url string | URL 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 string | DB 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:
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean | Enabled indicates whether the extension is enabled. | Optional: {} | |
image Image | Image is the container image configuration. | Optional: {} | |
resources ResourceRequirements | Resources are the compute resources required by this container. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | Optional: {} | |
env EnvVar array | Env 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 KubernetesResourceOverlay | Deployment 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 KubernetesResourceOverlay | Service allows specifying overrides for the generated Service resource. | Optional: {} | |
serviceAccount KubernetesResourceOverlay | ServiceAccount allows specifying overrides for the generated ServiceAccount resource. | Optional: {} | |
podDisruptionBudget KubernetesResourceOverlay | PodDisruptionBudget 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 KubernetesResourceOverlay | HorizontalPodAutoscaler 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 KubernetesResourceOverlay | VerticalPodAutoscaler 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:
| Field | Description | Default | Validation |
|---|---|---|---|
materializedKey string | MaterializedKey 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 ExternalSecretRemoteRef | RemoteRef identifies the provider object and property to read. | Required: {} |
ExternalSecretRemoteRef
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
key string | Key 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 string | Property 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 string | Version pins a provider-specific version where the store supports it. Stores without versioning reject it. | MaxLength: 64 Optional: {} |
ExternalSecretStoreRef
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name 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:
| Field | Description | Default | Validation |
|---|---|---|---|
audience string | Audience is sent as the RFC 8693 audience parameter. | MinLength: 1 Required: {} | |
scopes string array | Scopes are sent to the token endpoint as a space-delimited scope parameter. | MaxItems: 64 MinItems: 1 Optional: {} | |
subjectTokenType OAuthTokenType | SubjectTokenType is the token type of the incoming subject token. Defaults to Jwt. | Optional: {} | |
backendRef BackendObjectReference | BackendRef 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:
| Field | Description | Default | Validation |
|---|---|---|---|
kind ImportKind | Kind of the referenced resource. | Enum: [ConfigMap Secret] Required: {} | |
name string | Name of the referenced resource, in this policy’s namespace. | MaxLength: 253 MinLength: 1 Required: {} | |
alias string | Field 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:
| Field | Description |
|---|---|
ConfigMap | |
Secret |
ImportScope
Underlying type: string
ImportScope controls where imported data is visible.
Validation:
- Enum: [Policy Global]
Appears in:
| Field | Description |
|---|---|
Policy | ImportScopePolicy 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. |
Global | ImportScopeGlobal 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:
| Field | Description | Default | Validation |
|---|---|---|---|
oauth InteractiveOAuthConfig | oauth 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:
| Field | Description | Default | Validation |
|---|---|---|---|
clientId string | ClientID is the pre-registered OAuth client ID. | Required: {} | |
clientSecretRef LocalSecretKeyRef | ClientSecretRef 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, withclientSecret as a fallback. | Optional: {} | |
certificateKeyPairRef LocalSecretObjectRef | CertificateKeyPairRef 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 array | Scopes requested during the OAuth flow. | Optional: {} | |
redirectUri string | RedirectURI is the OAuth redirect URI registered with the provider. | Required: {} | |
authorizeUrl string | AuthorizeURL is the OAuth authorization endpoint. | Required: {} | |
accessTokenUrl string | AccessTokenURL is the OAuth token endpoint. | Required: {} |
NotificationChannel
NotificationChannel is a single alert destination for a budget notification.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
type NotificationChannelType | type selects the payload format posted to url. | Required: {} | |
url string | url is the http or https endpoint to send the alert to (POST, unless headers sets :method). | MaxLength: 2048 MinLength: 1 Pattern: ^https?://Required: {} | |
secretRef LocalSecretKeyRef | secretRef 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 declaresAuthorization. | Optional: {} | |
headers HeaderTransformation array | headers 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 dimensionresolved 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 acredential 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 andquery ( :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 CELExpression | body 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:
| Field | Description |
|---|---|
Webhook | NotificationChannelTypeWebhook posts a generic JSON payload to url. |
Slack | NotificationChannelTypeSlack posts a Slack-formatted payload to url (a Slack incoming webhook URL). |
OktaClientAuth
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
clientId string | ClientID is the Okta OAuth client ID. | MinLength: 1 Required: {} | |
secretRef LocalSecretObjectRef | SecretRef references a same-namespace Secret containing the clientSecret key. | Required: {} | |
authMethod OktaClientAuthMethod | AuthMethod 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:
| Field | Description | Default | Validation |
|---|---|---|---|
audience string | Audience is sent as the RFC 8693 audience parameter. | MinLength: 1 Optional: {} | |
scopes string array | Scopes are sent to the token endpoint as a space-delimited scope parameter. | MaxItems: 64 MinItems: 1 Optional: {} | |
authServerId string | AuthServerID selects a custom Okta authorization server. When omitted, the org authorization server endpoint is used. | MinLength: 1 Optional: {} | |
clientAuth OktaClientAuth | ClientAuth authenticates the gateway to Okta using a client secret. | Required: {} | |
backendRef BackendObjectReference | BackendRef references the Okta token endpoint target. | Required: {} |
PKCEMode
Underlying type: string
PKCEMode controls how upstream PKCE is selected.
Appears in:
| Field | Description |
|---|---|
Auto | PKCEModeAuto uses discovery metadata to select PKCE. |
Always | PKCEModeAlways always uses PKCE. |
PublicOnly | PKCEModePublicOnly 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:
| Field | Description |
|---|---|
Reversible | PromptGuardMaskingReversible 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:
| Field | Description | Default | Validation |
|---|---|---|---|
tenantId string | TenantID 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 string | ClientID 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 string | PurviewAppName is the application name registered in Microsoft Purview. | MinLength: 1 Required: {} | |
guardrailName string | GuardrailName is the name of the DLP policy to evaluate content against. | MinLength: 1 Required: {} | |
userId string | UserID 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 string | ApiVersion 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 PurviewDlpActivity | Activity 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 EntTargetPolicies | policies 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:
| Field | Description |
|---|---|
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:
| Field | Description | Default | Validation |
|---|---|---|---|
name ObjectName | Name is the name of the RateLimitConfig resource. | Required: {} | |
namespace Namespace | Namespace 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:
| Field | Description | Default | Validation |
|---|---|---|---|
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 resolvesto 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:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the name of the Kubernetes Secret containing the sensitive value. | MinLength: 1 Required: {} | |
key string | Key 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:
| Field | Description | Default | Validation |
|---|---|---|---|
elicitation SoloElicitationConfig | Elicitation 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 BackendObjectReference | BackendRef 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:
| Field | Description |
|---|---|
Service | |
AgentgatewayBackend | |
EnterpriseAgentgatewayBackend |
TokenExchangeCfg
Validation:
- AtMostOneOf: [elicitation entra]
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
mode TokenExchangeMode | Mode indicates the token exchange mode to use. Defaults to empty, which allows for both Elicitation and Exchange | Enum: [ElicitationOnly ExchangeOnly] Optional: {} | |
elicitation TokenExchangeElicitationConfig | Elicitation 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 EntraTokenExchangeConfig | Entra 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:
| Field | Description | Default | Validation |
|---|---|---|---|
secretName string | SecretName 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 string | ClientName 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:
| Field | Description |
|---|---|
ElicitationOnly | TokenExchangeModeElicitationOnly indicates that token exchange should not be performed, just eliciting the user to do the auth flow. |
ExchangeOnly | TokenExchangeModeExchangeOnly indicates that elicitation errors should not be returned to the user. |
TrustDomainValidationSpec
TrustDomainValidationSpec controls SPIFFE trust-domain chain verification on the proxy.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
mode string | Mode 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:
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean | Enabled indicates whether the admin server is enabled. Defaults to false. | Optional: {} |
WAFConfiguration
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean | Enabled indicates whether the extension is enabled. | Optional: {} | |
image Image | Image is the container image configuration. | Optional: {} | |
resources ResourceRequirements | Resources are the compute resources required by this container. See https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | Optional: {} | |
env EnvVar array | Env 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 KubernetesResourceOverlay | Deployment 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 KubernetesResourceOverlay | Service allows specifying overrides for the generated Service resource. | Optional: {} | |
serviceAccount KubernetesResourceOverlay | ServiceAccount allows specifying overrides for the generated ServiceAccount resource. | Optional: {} | |
podDisruptionBudget KubernetesResourceOverlay | PodDisruptionBudget 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 KubernetesResourceOverlay | HorizontalPodAutoscaler 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 KubernetesResourceOverlay | VerticalPodAutoscaler 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 WAFLogLevel | LogLevel is the log level for the WAF extproc server. If not set, defaults to “info”. | Enum: [error warn info debug trace] Optional: {} | |
admin WAFAdminConfiguration | Admin configures the WAF admin server. | Optional: {} | |
metrics WAFMetricsConfiguration | Metrics configures the WAF metrics endpoint. | Optional: {} |
WAFLogLevel
Underlying type: string
Appears in:
| Field | Description |
|---|---|
error | |
warn | |
info | |
debug | |
trace |
WAFMetricsConfiguration
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean | Enabled 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:
| Field | Description | Default | Validation |
|---|---|---|---|
name ObjectName | Name is the name of the WAFPolicy resource. | Required: {} | |
namespace Namespace | Namespace 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:
| Field | Description | Default | Validation |
|---|---|---|---|
enabled boolean | Enabled 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:
| Field | Description | Default | Validation |
|---|---|---|---|
mode WorkloadIdentityMode | mode selects how the gateway presents workload identity. | Enum: [SourceDelegation SelfIdentification] Required: {} | |
emitProof boolean | emitProof 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 Duration | proofLifetime 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 boolean | bindAccessToken binds the request’s OAuth access token (Authorization: Bearer) into the minted WPT’s ath claim (RFC 9449), so a receiver canverify the proof and access token were presented together. Defaults to false. | Optional: {} | |
bindTransactionToken boolean | bindTransactionToken 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:
| Field | Description |
|---|---|
SourceDelegation | WorkloadIdentityModeSourceDelegation forwards the inbound source’s WIMSE Workload-Identity-Token (WIT) header to the upstream unchanged. |
SelfIdentification | WorkloadIdentityModeSelfIdentification 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:
| Field | Description | Default | Validation |
|---|---|---|---|
mode WptEnforcementMode | mode selects the enforcement behavior. | Enum: [Permissive RequireProof PeerBound] Required: {} | |
audiences string array | audiences 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:
| Field | Description |
|---|---|
Permissive | WptEnforcementModePermissive validates a WPT when present. Invalid WPTs are rejected. Requests missing WPTs are allowed and counted in metrics. Intended for migration. |
RequireProof | WptEnforcementModeRequireProof requires a valid WPT. Missing or invalid rejects the request. |
PeerBound | WptEnforcementModePeerBound 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.
| Field | Type | Description |
|---|---|---|
host | ShortString | Hostname or IP address of the A2A backend. Required. |
port | int32 | Port number of the A2A backend. Required. |
AIBackend
AI backend configuration.
Validation:
ExactlyOneOf=provider;groups
| Field | Type | Description |
|---|---|---|
provider | *LLMProvider | Configuration for how to reach the configured LLM provider. |
groups | []PriorityGroup | Groups in priority order, where each group defines a set of LLM providers. The priority determines the priority of the backend endpoints chosen. Note: provider names must be unique across all providers in all priority groups. Backend policies may target a specific provider by name using 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.”
| Field | Type | Description |
|---|---|---|
prepend | []Message | Messages to prepend to the prompt sent by the client. |
append | []Message | Messages 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;responseXValidation: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"
| Field | Type | Description |
|---|---|---|
streaming | PromptGuardStreamingMode | Apply prompt guards to streaming responses and realtime websocket messages. Defaults to disabled to preserve streaming throughput unless explicitly enabled. |
request | []PromptguardRequest | Prompt guards to apply to requests sent by the client. |
response | []PromptguardResponse | Prompt guards to apply to responses returned by the LLM provider. |
APIKeyAuthentication
Validation:
ExactlyOneOf=secretRef;secretSelector;configMapSelector
| Field | Type | Description |
|---|---|---|
mode | APIKeyAuthenticationMode | Validation mode for API key authentication. Defaults to Strict. |
secretRef | *LocalSecretObjectRef | Credential 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 | *SecretSelector | Selects 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 | *ConfigMapSelector | Selects 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 | *AuthorizationExtractionLocation | Where 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.
| Field | Type | Description |
|---|---|---|
preset | *AccessLogPreset | Preset 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 | *CELExpression | CEL expression used to filter logs. A log will only be emitted if the expression evaluates to true. |
attributes | *LogTracingAttributes | Customizations to the key-value pairs that are logged. |
otlp | *OtlpAccessLog | OTLP 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
| Field | Type | Description |
|---|---|---|
contextExtensions | map[string]string | Additional arbitrary key-value pairs to send to the authorization server in the context_extensions field. |
requestMetadata | map[string]CELExpression | Metadata 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
| Field | Type | Description |
|---|---|---|
path | *CELExpression | Path to send to the authorization server. If unset, this defaults to the original request path. This is a CEL expression, which allows customizing the path based on the incoming request. For example, to add a prefix, use "/prefix/" + request.path. |
redirect | *CELExpression | Optional expression that determines a path to redirect to on authorization failure. This is useful to redirect to a sign-in page. |
body | *CELExpression | Body is a CEL expression that produces the HTTP authorization request body. Strings and bytes are used directly; other values are JSON-encoded. |
allowedRequestHeaders | []ShortString | Additional headers from the client request that will be sent to the authorization server. If unset, the following headers are sent by default: Authorization. |
addRequestHeaders | map[string]CELExpression | Additional 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 | []ShortString | Headers from the authorization response that will be copied into the request to the backend. |
responseMetadata | map[string]CELExpression | Metadata 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.
| Field | Type | Description |
|---|---|---|
conditions | []metav1.Condition | Current condition state for the backend. |
AgentgatewayParametersLogging
| Field | Type | Description |
|---|---|---|
level | string | Logging 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. |
format | AgentgatewayParametersLoggingFormat | Logging 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.
| Field | Type | Description |
|---|---|---|
kind | AgentgatewayParametersWorkloadKind | Kind 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.
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model name override, such as gpt-4o-mini. If unset, the model name is taken from the request. |
AttributeAdd
| Field | Type | Description |
|---|---|---|
name | ShortString | Required. |
expression | CELExpression | Required. |
Authorization
Configures CEL-based authorization.
| Field | Type | Description |
|---|---|---|
policy | AuthorizationPolicy | The authorization rule to evaluate. * Allow: any matching allow rule allows the request. * Require: every require rule must match for the request to be allowed. * Deny: any matching deny rule denies the request. Deny is not recommended because expression failures fail to deny; 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. |
action | AuthorizationPolicyAction | The 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
| Field | Type | Description |
|---|---|---|
expression | *CELExpression | CEL expression that extracts the credential from the request. |
AuthorizationLocation
Validation:
ExactlyOneOf=header;queryParameter;cookie
AuthorizationPolicy
Defines CEL expressions for a single authorization rule.
| Field | Type | Description |
|---|---|---|
matchExpressions | []CELExpression | CEL 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.
| Field | Type | Description |
|---|---|---|
agentRuntimeArn | string | ARN of the AgentCore runtime. Required. |
qualifier | *string | Alias or version qualifier. |
AwsAssumeRole
AWS STS AssumeRole settings for backend authentication.
Validation:
AtMostOneOf=sessionName;sessionNameExpression
| Field | Type | Description |
|---|---|---|
roleArn | string | AWS IAM role ARN to assume. Required. |
sessionName | *string | SessionName is a custom session name (RoleSessionName) for CloudTrail and Cost & Usage Report attribution. If unset, AWS generates a random name. |
sessionNameExpression | *CELExpression | SessionNameExpression 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 | []AwsSessionTag | Session tags passed to STS AssumeRole for cost attribution in the AWS Cost & Usage Report, once activated. STS allows at most 50 per role session. |
externalId | *string | ExternalID 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"
| Field | Type | Description |
|---|---|---|
secretRef | *LocalSecretObjectRef | Credential source for AWS credentials, defaulting to a Kubernetes Secret. The default Secret resolver expects accessKey, secretKey, and optional sessionToken keys. |
assumeRole | *AwsAssumeRole | AWS STS AssumeRole settings to use before signing backend requests. Ambient AWS credentials are used as the source credentials for STS. |
serviceName | *ShortString | AWS SigV4 signing service name, for example bedrock, bedrock-agentcore, or execute-api). If unset, typed AWS backends may provide this automatically. |
region | *ShortString | AWS 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
| Field | Type | Description |
|---|---|---|
agentCore | *AwsAgentCoreBackend | Amazon 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"
| Field | Type | Description |
|---|---|---|
key | string | Key is the tag key. Required. |
value | *string | Value is a static tag value. |
expression | *CELExpression | CEL 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;workloadIdentityXValidation:rule="!has(self.managedIdentity) || !has(self.scopes) || self.scopes.size() == 1",message="managedIdentity supports exactly one scope"
| Field | Type | Description |
|---|---|---|
scopes | []string | Scopes requested for the Azure access token. When omitted, the scope is inferred from the backend hostname. Managed Identity supports exactly one scope. |
secretRef | *LocalSecretObjectRef | Credential source for Azure credentials, defaulting to a Kubernetes Secret. The default Secret resolver expects clientID, tenantID, and clientSecret keys. |
managedIdentity | *AzureManagedIdentity | Managed 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 | *AzureWorkloadIdentity | Workload identity authentication settings. Uses the federated token and Azure env vars projected into the data plane pod. Recommended on AKS with Workload Identity enabled. |
AzureConfig
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model 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
| Field | Type | Description |
|---|---|---|
clientId | string | Client ID of the user-assigned managed identity. |
objectId | string | Object ID of the user-assigned managed identity. |
resourceId | string | Resource 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)"
| Field | Type | Description |
|---|---|---|
endpoint | ShortString | The 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 | *ShortString | The 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 | *TinyString | The 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
| Field | Type | Description |
|---|---|---|
prompt | *AIPromptEnrichment | Enriches 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 | *AIPromptGuard | Guardrails for LLM requests and responses. |
defaults | []FieldDefault | Defaults to merge with user input fields. If the field is already set, the field in the request is used. |
overrides | []FieldDefault | Overrides to merge with user input fields. If the field is already set, the field is overwritten. |
transformations | []FieldTransformation | CEL transformations to compute and set fields in the request body. The expression result overwrites any existing value for that field. This has a higher priority than overrides if both are set for the same key. |
finalTransformations | []FieldTransformation | CEL transformations to compute and set fields in the request body. The expression result overwrites any existing value for that field. This has a higher priority than 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. |
modelAliases | map[string]string | Maps 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 | *PromptCachingConfig | Automatic prompt caching for supported providers: Anthropic, Anthropic models on Vertex AI, and AWS Bedrock (Claude 3+ and Nova models). Reduces API costs by caching static content like system prompts and tool definitions. Cache marks sent by the client take precedence: if a request already has any, the policy adds none. |
routes | map[string]RouteType | Rules 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;jwtSignXValidation: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"
| Field | Type | Description |
|---|---|---|
key | *string | Inline key to use as the value of the Authorization header. This option is the least secure; usage of a Secret is preferred. |
secretRef | *LocalSecretKeyRef | Credential 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 | *BackendAuthPassthrough | Reuses a client token already validated by another policy. Those policies may strip client credentials; passthrough adds the original token back to the backend request. Without client auth policies, this has no effect. |
aws | *AwsAuth | Explicit AWS authentication method for the backend. When omitted, default AWS SDK credential discovery is used. |
azure | *AzureAuth | Azure authentication method for the backend. |
gcp | *GcpAuth | Google authentication method for the backend. When omitted, default Google credential discovery is used. |
oauthTokenExchange | *OAuthTokenExchange | OAuth 2.0 token exchange (RFC 8693) / jwt-bearer (RFC 7523) authentication. If this configuration is invalid, requests using it are rejected. |
crossAppAccess | *CrossAppAccessAuth | Cross App Access (Identity Assertion / ID-JAG) authentication. If this configuration is invalid, requests using it are rejected. |
jwtSign | *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. |
location | *AuthorizationLocation | Where 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 | []BackendAuthCredential | Credentials 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
| Field | Type | Description |
|---|---|---|
location | AuthorizationLocation | Where the credential is inserted on the backend request. Required. |
secretRef | *LocalSecretKeyRef | SecretRef 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 | *GcpAuth | Fetches a Google Cloud access or ID token and writes it to location. |
BackendAuthPassthrough
BackendEviction
Settings for evicting unhealthy backends.
| Field | Type | Description |
|---|---|---|
duration | *Duration | Base time a backend should be evicted after being marked unhealthy. Subsequent evictions use multiplicative backoff (duration * times_evicted). If all endpoints are evicted, the load balancer falls back to returning evicted endpoints rather than failing entirely. If unset, defaults to 3s. |
restoreHealth | *int32 | Health score from 0 to 100 assigned to a backend when it returns from eviction. For gradual recovery, set below 100; for full recovery immediately, set 100. If unset, the backend resumes with the health it had when evicted. |
consecutiveFailures | *int32 | Number of consecutive unhealthy responses required before the backend is evicted. For example, a value of 5 means the backend must receive 5 unhealthy responses in a row before being evicted. When both consecutiveFailures and healthThreshold are set, the backend is evicted when either condition is met. When neither is set, a single unhealthy response can trigger eviction. |
healthThreshold | *int32 | EWMA health score threshold, from 0 to 100. When set, a backend is evicted only if its computed health drops below this value after an unhealthy response (e.g. 50 evicts when EWMA health falls below 50%). Unlike consecutiveFailures, this sliding-window average lets a single success delay eviction. If both are set, either condition evicts; if neither, a single unhealthy response evicts. |
BackendHTTP
| Field | Type | Description |
|---|---|---|
version | *HTTPVersion | HTTP 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 | *Duration | Deadline for receiving a response from the backend. |
BackendMCP
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
authorization | *Authorization | MCP 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 | *MCPAuthentication | MCP 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 | *MCPGuardrails | Remote and in-process CEL policy processors for MCP requests and responses. |
BackendSimple
| Field | Type | Description |
|---|---|---|
tcp | *BackendTCP | Settings for managing TCP connections to the backend |
tls | *BackendTLS | Settings for managing TLS connections to the backend When set, TLS is originated to the backend using the system trusted CA certificates, and SNI is inferred from the destination. |
http | *BackendHTTP | Settings for managing HTTP requests to the backend |
tunnel | *BackendTunnel | Settings for managing tunnel connections to the backend, like HTTPS_PROXY |
auth | *BackendAuth | Settings for managing authentication to the backend |
BackendTCP
| Field | Type | Description |
|---|---|---|
keepalive | *Keepalive | Settings for enabling TCP keepalives on the connection. |
connectTimeout | *Duration | Deadline for establishing a connection to the destination. |
BackendTLS
Validation:
AtMostOneOf=verifySubjectAltNames;insecureSkipVerifyXValidation: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"
| Field | Type | Description |
|---|---|---|
certificateSource | *BackendTLSCertificateSource | Source for the gateway’s client identity and trust roots (Inline default, or SPIFFE). |
mtlsCertificateRef | []LocalSecretObjectRef | Enables 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 | []LocalCACertificateRef | CA 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 | *InsecureTLSMode | Originates 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 | *SNI | Server Name Indicator (SNI) to use in the TLS handshake. If unset, the SNI is automatically set based on the destination hostname. |
verifySubjectAltNames | []ShortString | Subject Alternative Names (SAN) to verify in the server certificate. If not present, the destination hostname is automatically used. |
alpnProtocols | *[]TinyString | Application-Layer Protocol Negotiation (ALPN) value to use in the TLS handshake. If not present, defaults to ["h2", "http/1.1"]. |
keyExchangeGroups | []KeyExchangeGroup | Ordered 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
| Field | Type | Description |
|---|---|---|
mode | BackendTunnelMode | How requests are sent through the proxy. Defaults to Auto. |
BackendTunnelMode
Underlying type: string
BackendWithAI
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
authorization | *Authorization | Authorization rules that clients must satisfy after this AI provider is selected. |
ai | *BackendAI | Settings for AI workloads. This is only applicable when connecting to a Backend of type ai. |
transformation | *Transformation | Mutates and transforms requests and responses sent to and from the backend. |
health | *Health | Settings for passive and active health checking. |
BasicAuthentication
Validation:
ExactlyOneOf=users;secretRef
| Field | Type | Description |
|---|---|---|
mode | BasicAuthenticationMode | Validation mode for basic authentication. Defaults to Strict. |
realm | *string | realm value to return in the WWW-Authenticate header for failed authentication requests. If unset, Restricted will be used. |
users | []string | Inline 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 | *LocalSecretKeyRef | Credential 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 | *AuthorizationExtractionLocation | Where Basic credentials are read from. If omitted, credentials are read from the Authorization header with the Basic prefix. |
BasicAuthenticationMode
Underlying type: string
BedrockConfig
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model name override, such as gpt-4o-mini. If unset, the model name is taken from the request. |
BedrockGuardrails
| Field | Type | Description |
|---|---|---|
failureMode | FailureMode | Behavior when the provider is unavailable or returns an error. FailOpen allows the request to continue; FailClosed (default) rejects it. |
identifier | ShortString | Identifier of the Guardrail policy to use for the backend. Required. |
version | ShortString | Version of the Guardrail policy to use for the backend. Required. |
region | ShortString | AWS region where the guardrail is deployed, for example us-west-2). Required. |
action | *RejectAuditAction | Action 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 | *BedrockGuardrailsPolicy | Policies for communicating with AWS Bedrock Guardrails. |
BedrockGuardrailsAuth
BedrockGuardrailsAuth configures credentials for AWS Bedrock Guardrails requests.
Validation:
ExactlyOneOf=key;secretRef;awsXValidation:rule="has(self.location) ? has(self.key) || has(self.secretRef) : true",message="location may only be set for key or secretRef auth"
| Field | Type | Description |
|---|---|---|
aws | *AwsAuth | AWS authentication method for Bedrock Guardrails. Use aws: {} for default AWS SDK credential discovery. |
key | *string | Inline API key to use as the value of the Authorization header. This option is the least secure; usage of a Secret is preferred. |
secretRef | *LocalSecretKeyRef | Credential 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 | *AuthorizationLocation | Where 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
| Field | Type | Description |
|---|---|---|
auth | *BedrockGuardrailsAuth | Settings for authenticating to AWS Bedrock Guardrails. |
BodySendMode
Underlying type: string
How HTTP bodies are delivered to the external processor.
Buffer
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
request | *BufferBody | Request body buffering settings. |
response | *BufferBody | Response body buffering settings. |
BufferBody
| Field | Type | Description |
|---|---|---|
maxBytes | *ByteSize | Maximum number of bytes to buffer from the request or response body. If unset, defaults to the global proxy setting, which defaults to 2Mi. |
failureMode | FailureMode | Behavior when the request or response body exceeds the buffer limit. If unset, defaults to FailClosed, returning 413 for oversized requests and 502 for oversized responses. |
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:
XIntOrStringMaxLength=32MinLength=1Pattern=`^[+-]?([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"
| Field | Type | Description |
|---|---|---|
- | *resource.Quantity | Required. |
CELExpression
Underlying type: string
A Common Expression Language (CEL) expression.
Validation:
MinLength=1MaxLength=16384
CORS
CSRF
| Field | Type | Description |
|---|---|---|
additionalOrigins | []ShortString | Additional 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
| Field | Type | Description |
|---|---|---|
response | *CompressionResponse | Compression applied to responses sent to the client. |
request | *CompressionRequest | Compression applied to requests received from the client. |
CompressionAlgorithm
Underlying type: string
CompressionRequest
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
decompress | *RequestDecompression | Decompresses request bodies before route-level body-aware policies (rate limiting, ext_proc, transformations) run and before forwarding to the backend. Authentication, authorization and gateway-phase policies run first and observe the encoded body. |
CompressionResponse
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
compress | *ResponseCompression | Compresses response bodies when the client advertises support in Accept-Encoding. Only textual content types (JSON, HTML, CSS, JavaScript, XML, plain text, SVG) with a known length of at least 32 bytes are compressed, so streamed responses are sent as-is. Responses that are already encoded, partial (Content-Range), or marked no-transform are never compressed. |
ConfigMapSelector
| Field | Type | Description |
|---|---|---|
matchLabels | map[string]string | Labels 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.
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model name override. If unset, the model name is taken from the request. |
CrossAppAccessAuth
Cross App Access settings for backend authentication.
| Field | Type | Description |
|---|---|---|
identityProvider | CrossAppAccessEndpoint | User identity provider authorization server, used for the RFC 8693 ID-JAG exchange. Required. |
resourceAuthorizationServer | CrossAppAccessEndpoint | Resource authorization server, used for the RFC 7523 jwt-bearer exchange. Required. |
audience | ShortString | Identifier of the resource authorization server. The issued ID-JAG is bound to this audience. Required. |
resources | []string | Resources sent to the token endpoint. |
scopes | []string | Scopes requested when obtaining the ID-JAG from the identity provider. |
accessTokenScopes | *[]string | Scopes requested when exchanging the ID-JAG for an access token. When omitted, defaults to Scopes. Set to an empty list to omit scope. |
subjectToken | *CrossAppAccessSubjectToken | Subject token sent to the identity provider. Defaults to an OpenID Connect ID token read from the Authorization Bearer header. |
cache | *OAuthTokenCache | Response cache configuration. |
CrossAppAccessEndpoint
Validation:
ExactlyOneOf=backendRef;urlXValidation:rule="has(self.url) ? !has(self.path) : true",message="path may not be set when url is set"
| Field | Type | Description |
|---|---|---|
path | *string | Token endpoint path; defaults to “/”. Must start with “/”. |
clientAuth | OAuthClientAuth | Client 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"
| Field | Type | Description |
|---|---|---|
source | *AuthorizationExtractionLocation | Where to read the subject token. Defaults to the Authorization Bearer header. |
tokenType | *OAuthTokenType | OAuth RFC 8693 subject token type. Defaults to IdToken |
CustomProvider
Provider with explicit API format support and an explicit target.
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model 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.
| Field | Type | Description |
|---|---|---|
message | *string | Custom response message to return to the client. If not specified, defaults to The request was rejected due to inappropriate content. |
statusCode | int32 | Status code to return to the client. Defaults to 403. |
headers | []gwv1.HTTPHeader | Headers to include in the rejection response. |
Delay
Artificial latency injection for fault-injection testing.
| Field | Type | Description |
|---|---|---|
duration | CELExpression | Latency 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"
| Field | Type | Description |
|---|---|---|
status | *int32 | HTTP status code to return. |
body | *string | Content to return in the HTTP response body. The maximum length of the body is restricted to prevent excessively large responses. If this field is omitted, no body is included in the response. |
bodyExpression | *CELExpression | CEL expression that produces the HTTP response body. Strings and bytes are written directly; other values are serialized as JSON. If this field is omitted, no expression body is included in the response. |
headers | []DirectResponseHeader | Response headers to set on the direct response. |
DirectResponseConditional
| Field | Type | Description |
|---|---|---|
condition | CELExpression | CEL expression that must evaluate to true for this policy to execute. |
policy | DirectResponse | Policy to apply when the condition matches. Required. |
DirectResponseHeader
| Field | Type | Description |
|---|---|---|
name | HTTPHeaderName | The name of the header to set. Required. |
value | CELExpression | CEL expression that generates the output value for the header. Required. |
DirectResponseOrConditional
Validation:
ConditionalPolicy:fields=status
| Field | Type | Description |
|---|---|---|
conditional | []DirectResponseConditional | Conditional policy execution. Set this or the top-level directResponse fields. The first matching policy will be executed. A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback in case no conditions are met. |
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=stringMaxLength=32Pattern=`^([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"
| Field | Type | Description |
|---|---|---|
failureMode | FailureMode | Behavior when the external authorization service is unavailable or returns an error. “FailOpen” allows the request to continue. “FailClosed” (default) denies the request. |
grpc | *AgentExtAuthGRPC | Uses the gRPC External Authorization protocol should be used. |
http | *AgentExtAuthHTTP | Uses 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 | *ExtAuthBody | Whether to include the HTTP body in the authorization request. If enabled, the request body will be buffered. |
cache | *ExtAuthCache | Caches authorization results. WARNING: the safety of this feature depends on the cache key accurately capturing every request property that the authorization service uses to make a decision. For example, if the service returns different results based on both path and authorization header, both must be included in 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
| Field | Type | Description |
|---|---|---|
maxSize | ByteSize | Largest 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
| Field | Type | Description |
|---|---|---|
key | []CELExpression | Ordered list of CEL expressions evaluated against the request to construct the cache key. Required. |
ttl | CELExpression | Duration 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 | *uint32 | Maximum number of authorization results to keep in the cache. If unset, this defaults to 10000. |
ExtAuthConditional
| Field | Type | Description |
|---|---|---|
condition | CELExpression | CEL expression that must evaluate to true for this policy to execute. |
policy | ExtAuth | Policy to apply when the condition matches. Required. |
ExtAuthOrConditional
Validation:
ConditionalPolicyXValidation: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"
| Field | Type | Description |
|---|---|---|
conditional | []ExtAuthConditional | Conditional policy execution. Set this or the top-level extAuth fields. The first matching policy will be executed. A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback in case no conditions are met. |
ExtProc
Validation:
XValidation:rule="!has(self.url) || self.url.matches('^https?://[^/?#]+$')",message="url must not include a path"
| Field | Type | Description |
|---|---|---|
failureMode | FailureMode | Behavior when the external processor is unavailable or returns an error. “FailOpen” allows the request to continue, as long as the request body has not been sent (or started streaming) to the ext_proc. Once the request body has started streaming to the ext_proc, the request will fail closed on error. “FailClosed” (default) rejects the request on any failure. |
processingOptions | *ProcessingOptions | How request and response phases are sent to ext_proc. |
metadataContext | map[string]NamespacedMetadataContext | Metadata 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. |
requestAttributes | map[string]CELExpression | Request attributes to send to the external processor in the request attributes field of the ProcessingRequest. Values are CEL expressions evaluated per request. |
responseAttributes | map[string]CELExpression | Response attributes to send to the external processor in the response attributes field of the ProcessingRequest. Values are CEL expressions evaluated per response. |
ExtProcConditional
| Field | Type | Description |
|---|---|---|
condition | CELExpression | CEL expression that must evaluate to true for this policy to execute. |
policy | ExtProc | Policy to apply when the condition matches. Required. |
ExtProcOrConditional
Validation:
ConditionalPolicyXValidation: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"
| Field | Type | Description |
|---|---|---|
conditional | []ExtProcConditional | Conditional policy execution. Set this or the top-level extProc fields. The first matching policy will be executed. A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback in case no conditions are met. |
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.
| Field | Type | Description |
|---|---|---|
field | ShortString | Name of the field. Required. |
value | apiextensionsv1.JSON | Default 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.
| Field | Type | Description |
|---|---|---|
field | ShortString | Name of the field to set. Required. |
expression | CELExpression | CEL expression used to compute the field value. Required. |
FrontendConnect
| Field | Type | Description |
|---|---|---|
mode | FrontendConnectMode | Whether downstream CONNECT requests are accepted. Required. |
FrontendConnectMode
Underlying type: string
FrontendHTTP
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
maxBufferSize | *ByteSize | Maximum HTTP body size that will be buffered into memory. Bodies will only be buffered for policies which require buffering. If unset, this defaults to 2mb. |
http1MaxHeaders | *int32 | Maximum number of headers allowed in HTTP/1.1 requests. If unset, this defaults to 100. |
http1IdleTimeout | *Duration | Timeout before an unused connection is closed. If unset, this defaults to 10 minutes. |
http1HeaderCase | *HTTPHeaderCase | Controls 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 | *ByteSize | Initial window size for stream-level flow control for received data. |
http2ConnectionWindowSize | *ByteSize | Initial window size for connection-level flow control for received data. |
http2FrameSize | *ByteSize | Maximum frame size to use. If unset, this defaults to 16kb. |
http2MaxHeaderSize | *ByteSize | Maximum aggregate size of decoded HTTP/2 request headers. If unset, this defaults to 16Ki. |
http2KeepaliveInterval | *Duration | Interval between HTTP/2 keepalive pings. If unset, keepalive pings are not sent. |
http2KeepaliveTimeout | *Duration | Time to wait for a response to an HTTP/2 keepalive ping before the connection is closed. Only applies when http2KeepaliveInterval is set. |
maxConnectionDuration | *Duration | Maximum time a connection is allowed to remain open. After this duration, the connection is gracefully closed after the current in-flight request completes. Useful for ensuring even traffic distribution behind load balancers during scaling events. |
maxConcurrentRequests | *int32 | Maximum number of in-flight HTTP requests across this gateway/port. This includes HTTP/1 requests and HTTP/2 streams. Requests over the limit are rejected immediately with a 503 response. Unset means unlimited. |
normalize | []FrontendHTTPNormalize | normalize defines path normalization rules applied before route matching. The normalized path is used for routing, policies and the upstream request; access logs keep the original path. Rules are applied in a fixed order regardless of how they are listed: percent-decoding, then MergeSlash, then DotSegment. Malformed percent-encoding and %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
| Field | Type | Description |
|---|---|---|
version | ProxyProtocolVersion | PROXY protocol version to accept. If unset, this defaults to V2. |
mode | ProxyProtocolMode | Whether PROXY headers are required or optional. If unset, this defaults to Strict. |
FrontendTCP
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
keepalive | *Keepalive | Settings for enabling TCP keepalives on the connection. |
maxConnections | *int32 | Maximum number of active downstream connections on this gateway/port. Connections over the limit are closed immediately. Unset means unlimited. |
FrontendTLS
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
handshakeTimeout | *Duration | Deadline for a TLS handshake to complete. If unset, this defaults to 15s. |
alpnProtocols | *[]TinyString | Application-Layer Protocol Negotiation (ALPN) value to use in the TLS handshake. If not present, defaults to ["h2", "http/1.1"]. |
minProtocolVersion | *TLSVersion | Minimum TLS version to support. |
maxProtocolVersion | *TLSVersion | Maximum TLS version to support. |
cipherSuites | []CipherSuite | Cipher 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 | []KeyExchangeGroup | Ordered 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"
| Field | Type | Description |
|---|---|---|
type | *GcpAuthType | The 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 | *LocalSecretKeyRef | Credential 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 | *ShortString | Explicit 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.
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model name override, such as gemini-2.5-pro. If unset, the model name is taken from the request. |
GlobalRateLimit
Validation:
ExactlyOneOf=backendRef;urlXValidation:rule="!has(self.url) || self.url.matches('^https?://[^/?#]+$')",message="url must not include a path"
| Field | Type | Description |
|---|---|---|
failureMode | FailureMode | Behavior when the remote rate limit service is unavailable or returns an error. FailOpen allows the request to continue. FailClosed (default) denies the request. |
domain | ShortString | Domain under which this limit should apply. This is an arbitrary string that enables a rate limit server to distinguish between different applications. Required. |
descriptors | []RateLimitDescriptor | Dimensions for rate limiting. These values are passed to the rate limit service which applies configured limits based on them. Each descriptor represents a single rate limit rule with one or more entries. Required. |
GoogleModelArmor
| Field | Type | Description |
|---|---|---|
failureMode | FailureMode | Behavior when the provider is unavailable or returns an error. FailOpen allows the request to continue; FailClosed (default) rejects it. |
templateId | ShortString | Template ID for Google Model Armor. Required. |
projectId | ShortString | Google Cloud project ID. Required. |
location | *ShortString | Google Cloud location, for example us-central1. Defaults to us-central1 if not specified. |
action | *RejectAuditAction | Action controls whether flagged content is rejected or only observed. Reject (the default) rejects flagged content; Audit records the would-be rejection without blocking. |
policies | *GoogleModelArmorPolicy | Policies for communicating with Google Model Armor. |
GoogleModelArmorAuth
GoogleModelArmorAuth configures credentials for Google Model Armor requests.
Validation:
ExactlyOneOf=gcp
| Field | Type | Description |
|---|---|---|
gcp | *GcpAuth | Google authentication method for Model Armor. Use gcp: {} for default Google credential discovery. |
GoogleModelArmorPolicy
GoogleModelArmorPolicy configures calls to Google Model Armor.
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
auth | *GoogleModelArmorAuth | Settings 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=1MaxLength=256Pattern=`^[A-Za-z0-9!#$%&'*+\-.^_\x60|~]+$`
HTTPVersion
Underlying type: string
HeaderModifiers
Modifies request and response headers.
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
request | *gwv1.HTTPHeaderFilter | Header changes to apply before forwarding a request. |
response | *gwv1.HTTPHeaderFilter | Header changes to apply before returning a response. |
HeaderName
Underlying type: string
HTTP header name.
Validation:
MinLength=1MaxLength=256Pattern=`^:?[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
| Field | Type | Description |
|---|---|---|
name | HeaderName | The name of the header to add. Required. |
value | CELExpression | CEL expression that generates the output value for the header. Required. |
Health
| Field | Type | Description |
|---|---|---|
unhealthyCondition | *CELExpression | CEL expression that determines whether a response indicates an unhealthy backend. When the expression evaluates to true, the backend is considered unhealthy and may be evicted. 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 | *BackendEviction | Settings for evicting unhealthy backends. |
HostnameRewrite
| Field | Type | Description |
|---|---|---|
mode | HostnameRewriteMode | Hostname 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.
| Field | Type | Description |
|---|---|---|
registry | *string | Image registry. |
repository | *string | Image repository. |
tag | *string | Image tag. |
digest | *string | Image digest, such as sha256:12345.... |
pullPolicy | *corev1.PullPolicy | Image pull policy for the container. See https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy for details. |
InsecureTLSMode
Underlying type: string
IstioSpec
| Field | Type | Description |
|---|---|---|
enabled | *bool | Explicitly turns Istio integration on or off for this gateway. |
caAddress | string | Address of the Istio CA. If unset, defaults to https://istiod.istio-system.svc:15012. |
trustDomain | string | Istio trust domain. If not set, defaults to cluster.local, or the default trust domain for the control plane’s istio revision. |
additionalTrustDomains | []string | Additional SPIFFE trust domains accepted on inbound HBONE connections. The local trust domain is always implicitly included. |
clusterId | string | ID of the cluster this gateway runs in. If unset, defaults to Kubernetes. |
network | string | Istio network this gateway runs in. If unset, defaults to the empty network. |
JWKS
Validation:
ExactlyOneOf=remote;inline
| Field | Type | Description |
|---|---|---|
remote | *RemoteJWKS | How to reach the JSON Web Key Set from a remote address. |
inline | *string | Inline 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"
| Field | Type | Description |
|---|---|---|
mode | JWTAuthenticationMode | Validation mode for JWT authentication. Defaults to Strict. |
providers | []JWTProvider | Required. |
location | *AuthorizationExtractionLocation | Where JWT credentials are read from. If omitted, credentials are read from the Authorization header with the Bearer prefix. |
preserveToken | bool | Keeps a successfully validated JWT in its original location. By default, the gateway removes the JWT after validation. When the token only needs to be forwarded to the selected backend, prefer backendAuth.passthrough so it is not exposed to other policies in the request path. |
mcp | *JWTMCPConfig | Enables MCP OAuth metadata endpoint handling and MCP-specific authentication behavior on top of standard JWT validation. When set, the gateway will serve the MCP OAuth metadata discovery endpoints. |
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.
| Field | Type | Description |
|---|---|---|
resourceMetadata | map[string]apiextensionsv1.JSON | Metadata to use for MCP resources, served at the MCP OAuth metadata endpoints. |
provider | *McpIDP | Identity provider to use for MCP authentication flows. |
clientId | *string | Client ID to use for short-circuiting Dynamic Client Registration. If set, the gateway will not proxy registration requests to the IDP and instead return this client ID. |
JWTProvider
| Field | Type | Description |
|---|---|---|
issuer | ShortString | IdP that issued the JWT. This corresponds to the iss claim (RFC 7519 §4.1.1). Required. |
audiences | []string | Allowed audiences that are allowed access. This corresponds to the aud claim (RFC 7519 §4.1.3). If unset, any audience is allowed. |
jwks | JWKS | JSON Web Key Set used to validate the signature of the JWT. Required. |
validation | *JWTValidationOptions | Additional 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.
| Field | Type | Description |
|---|---|---|
requiredClaims | *[]JWTClaim | Additional 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.
| Field | Type | Description |
|---|---|---|
signingKeyRef | LocalSecretObjectRef | Secret providing the signingKey key with a PEM-encoded RSA or EC private key. Required. |
alg | *JwtSigningAlg | JWS signing algorithm. Defaults to RS256. |
kid | *string | Optional JWS key ID header. |
claims | map[string]apiextensionsv1.JSON | Static claims added to every token (e.g. iss, sub, aud). Values may be any JSON value (e.g. a string, number, bool, or array). iat, exp, and nbf are reserved for the signer and cannot be configured here; the controller rejects them at translation time. |
ttl | *Duration | Token lifetime used for exp. Defaults to 300s. |
location | *AuthorizationLocation | Where 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.
| Field | Type | Description |
|---|---|---|
retries | *int32 | Maximum number of keepalive probes to send before dropping the connection. If unset, this defaults to 9. |
time | *Duration | Time a connection needs to be idle before keepalive probes start being sent. If unset, this defaults to 180s. |
interval | *Duration | Time 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.
| Field | Type | Description |
|---|---|---|
metadata | *ObjectMetadata | metadata 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.JSON | spec 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;copilotXValidation: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"
| Field | Type | Description |
|---|---|---|
openai | *OpenAIConfig | OpenAI provider settings. |
copilot | *CopilotConfig | GitHub Copilot provider settings. |
azureopenai | *AzureOpenAIConfig | Azure OpenAI provider settings. |
azure | *AzureConfig | Azure provider with resource-based configuration. Supports both Azure OpenAI and Azure AI Foundry resource types. |
anthropic | *AnthropicConfig | Anthropic provider settings. |
gemini | *GeminiConfig | Gemini provider settings. |
vertexai | *VertexAIConfig | Vertex AI provider settings. |
bedrock | *BedrockConfig | Bedrock provider settings. |
custom | *CustomProvider | Custom provider configures a non-managed or self-hosted LLM provider. Use this when the provider target and API formats should be declared explicitly instead of inferred from a managed provider such as OpenAI or Anthropic. |
host | ShortString | Hostname to send requests to. For custom providers without backendRef, host and port specify the target. For managed providers, host and port override the provider default. |
port | int32 | Port to send requests to. |
path | LongString | URL path to use for LLM provider API requests. This is useful when you need to route requests to a different API endpoint while maintaining compatibility with the original provider’s API structure. If not specified, the default path for the provider is used. |
pathPrefix | LongString | Overrides 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.
| Field | Type | Description |
|---|---|---|
name | gwv1.ObjectName | Name of the referenced CA certificate source. Required. |
kind | string | Kind of the referenced CA certificate source. Omitted defaults to ConfigMap. |
key | string | Key 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
| Field | Type | Description |
|---|---|---|
requests | *int32 | Number of HTTP requests per unit of time that are allowed. Requests exceeding this limit will fail with a 429 error. |
tokens | *int32 | Number 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. |
unit | LocalRateLimitUnit | Unit of time for the limit. Required. |
burst | *int32 | Allowance of requests above the request-per-unit that should be allowed within a short period of time. |
key | *CELExpression | CEL 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"
| Field | Type | Description |
|---|---|---|
name | gwv1.ObjectName | Name of the referenced credential Required. |
group | string | API group of the referenced credential; empty selects the core API group |
kind | string | Kind of the referenced credential; empty defaults to Secret |
key | *string | Key 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"
| Field | Type | Description |
|---|---|---|
name | gwv1.ObjectName | Name of the referenced credential Required. |
group | string | API group of the referenced credential; empty selects the core API group |
kind | string | Kind of the referenced credential; empty defaults to Secret |
LogTracingAttributes
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
remove | []TinyString | Default fields to remove. For example, http.method. |
add | []AttributeAdd | Additional key-value pairs to add to each entry. The value is a CEL expression. If the CEL expression fails to evaluate, the pair will be excluded. |
LongString
Underlying type: string
Validation:
MinLength=1MaxLength=1024
MCPAuthentication
| Field | Type | Description |
|---|---|---|
resourceMetadata | map[string]apiextensionsv1.JSON | Metadata to use for MCP resources. Required. |
provider | *McpIDP | Identity provider to use for authentication. |
issuer | ShortString | IdP that issued the JWT. This corresponds to the iss claim (RFC 7519 §4.1.1). |
audiences | []string | Allowed audiences that are allowed access. This corresponds to the aud claim (RFC 7519 §4.1.3). If unset, any audience is allowed. |
jwks | RemoteJWKS | Remote JSON Web Key used to validate the signature of the JWT. Required. |
mode | JWTAuthenticationMode | Validation mode for JWT authentication. Defaults to Strict. |
validation | *JWTValidationOptions | Additional 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 | *string | Client ID to use for short-circuiting Dynamic Client Registration. If set, the gateway will not proxy registration requests to the IDP and instead return this client ID. |
clientSecretRef | *LocalSecretKeyRef | Reference 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.
| Field | Type | Description |
|---|---|---|
targets | []McpTargetSelector | MCP targets to use for this backend. Policies targeting MCP targets must use targetRefs[].sectionName to select the target by name. Required. |
sessionRouting | SessionRouting | MCP session routing behavior. Defaults to Stateful if not set. |
failureMode | FailureMode | 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. |
prefixMode | PrefixMode | 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. |
MCPGuardrails
MCPGuardrails is the MCP-layer analog of Envoy ext_authz: an ordered chain of policy processors invoked per JSON-RPC method.
| Field | Type | Description |
|---|---|---|
processors | []MCPGuardrailsProcessor | processors 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
| Field | Type | Description |
|---|---|---|
condition | *CELExpression | Condition gating the action; absent means always. |
reject | *string | Reject with this message. |
transform | *CELExpression | Returns 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
| Field | Type | Description |
|---|---|---|
remote | *MCPGuardrailsRemote | remote configures a gRPC policy server. |
expression | *MCPGuardrailsExpression | In-process guardrail driven by CEL expressions. |
methods | map[string]MCPMethodPhase | methods 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;urlXValidation:rule="!has(self.url) || self.url.matches('^https?://[^/?#]+$')",message="url must not include a path"
| Field | Type | Description |
|---|---|---|
failureMode | FailureMode | failureMode controls behavior when the policy server is unreachable or returns an error. FailOpen allows the request; FailClosed (default) denies it. |
metadata | map[string]CELExpression | metadata 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 | []HeaderName | allowedRequestHeaders 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 | []HeaderName | disallowedRequestHeaders 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
| Field | Type | Description |
|---|---|---|
namespaces | *metav1.LabelSelector | namespace 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.LabelSelector | services is the label selector for which Service resources should be selected. |
McpTarget
MCP target configuration.
Validation:
ExactlyOneOf=host;backendRefXValidation:rule="!has(self.backendRef) || !has(self.policies)",message="mcp target policies may not be used with backendRef"
| Field | Type | Description |
|---|---|---|
host | *ShortString | Hostname or IP address of the MCP target. |
backendRef | *corev1.LocalObjectReference | Namespace-local Service resource by name. When set, this replaces host only; port, path, and protocol remain configured on this target. |
port | int32 | Port number of the MCP target. Required. |
path | *LongString | URL path of the MCP target endpoint. Defaults to "/sse" for the SSE protocol or "/mcp" for the StreamableHTTP protocol if not specified. |
protocol | *MCPProtocol | Protocol to use for the connection to the MCP target. |
policies | *BackendSimple | 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 < 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
| Field | Type | Description |
|---|---|---|
name | gwv1.SectionName | Name of the MCP target. Required. |
selector | *McpSelector | Label 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 | *McpTarget | Static MCP destination. When connecting to in-cluster Service resources, it is recommended to use selector instead. |
condition | *CELExpression | CEL 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.
| Field | Type | Description |
|---|---|---|
role | string | Role of the message. The available roles depend on the backend LLM provider model, such as SYSTEM or USER in the OpenAI API. Required. |
content | string | String content of the message. Required. |
MetricAttributes
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
add | []AttributeAdd | Additional key-value pairs to add as custom labels to all Prometheus metrics. The value is a CEL expression evaluated per-request. If the CEL expression fails to evaluate, the label value is set to “unknown”. 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.
| Field | Type | Description |
|---|---|---|
attributes | MetricAttributes | Customizations 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.
| Field | Type | Description |
|---|---|---|
name | string | Required. |
key | string | Data key whose value is the catalog JSON. Defaults to “catalog.json”. |
ModelCatalogSource
ModelCatalogSource is a single source of model cost catalog data.
| Field | Type | Description |
|---|---|---|
configMap | *ModelCatalogConfigMapRef |
ModelCatalogSpec
ModelCatalogSpec configures model cost catalog sources for the agentgateway proxy.
| Field | Type | Description |
|---|---|---|
sources | []ModelCatalogSource |
NamedLLMProvider
| Field | Type | Description |
|---|---|---|
name | gwv1.SectionName | Name of the provider. Policies can target this provider by name. Required. |
policies | *BackendWithAI | 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 < 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"
| Field | Type | Description |
|---|---|---|
source | AuthorizationExtractionLocation | Where to read the actor token. Actor tokens have no default source. Required. |
tokenType | *OAuthTokenType | OAuth token type. Empty defaults to AccessToken. Custom absolute URI values are supported for actor tokens. |
mayAct | *OAuthMayActValidationMode | may_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"
| Field | Type | Description |
|---|---|---|
clientId | string | Client ID sent to the token endpoint. Required. |
secretRef | *LocalSecretKeyRef | Secret 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 | *OAuthPrivateKeyJWT | Client assertion settings. Required when method is PrivateKeyJwt. |
method | *OAuthClientAuthMethod | Client authentication method. Defaults to ClientSecretBasic. |
OAuthClientAuthMethod
Underlying type: string
OAuthGrantType
Underlying type: string
OAuthInMemoryTokenCache
| Field | Type | Description |
|---|---|---|
maxEntries | *uint32 | Default 8192; 0 disables the cache. |
defaultTtl | *Duration | TTL 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"
| Field | Type | Description |
|---|---|---|
signingKeyRef | LocalSecretKeyRef | PEM-encoded RSA or EC private key; key defaults to signingKey. Required. |
certificateRef | *LocalSecretKeyRef | PEM-encoded X.509 certificate chain, leaf first, for certificateHeader. The leaf public key should match signingKeyRef; a mismatch only logs a warning but the token endpoint will reject the assertions. Required when certificateHeader is set. The key defaults to certificate. |
certificateHeader | *OAuthPrivateKeyJWTCertificateHeader | JWS certificate header. Required when certificateRef is set. |
alg | *JwtSigningAlg | JWS signing algorithm. Defaults to RS256. |
kid | *string | Optional JWS key ID header. |
assertionAudience | string | Audience for the client assertion, typically the token endpoint URL. Required. |
OAuthPrivateKeyJWTCertificateHeader
Underlying type: string
OAuthTokenCache
| Field | Type | Description |
|---|---|---|
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;urlXValidation:rule="has(self.url) ? !has(self.path) : true",message="path may not be set when url is set"
| Field | Type | Description |
|---|---|---|
path | *string | Token endpoint path; defaults to “/”. Must start with “/”. |
grantType | *OAuthGrantType | RFC followed by the request. Defaults to TokenExchange (RFC 8693). |
subjectToken | *OAuthTokenSpec | Subject token / assertion source and type. Defaults to Authorization Bearer, AccessToken. The token type may be a built-in value or a custom absolute URI for providers that support custom token exchange profiles. |
actorToken | *OAuthActorToken | RFC 8693 delegation actor token. TokenExchange grant only. |
audiences | []ShortString | Audiences sent to the token endpoint. |
scopes | []string | Scopes sent to the token endpoint. |
resources | []string | Resources sent to the token endpoint. |
requestedTokenType | *OAuthTokenType | RFC 8693 requested_token_type. Unlike subject/actor token types, only the built-in values may be requested; custom URIs are not supported here. |
additionalParams | map[string]CELExpression | Extra 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 | *OAuthClientAuth | Client authentication for the token endpoint. When unset, none is sent. |
location | *AuthorizationLocation | Where the exchanged token is written to the backend request. Defaults to Authorization: Bearer. |
cache | *OAuthTokenCache | Response cache configuration. |
OAuthTokenSpec
| Field | Type | Description |
|---|---|---|
source | *AuthorizationExtractionLocation | Where to read the token. CEL expression variant is permitted. |
tokenType | *OAuthTokenType | OAuth 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.
| Field | Type | Description |
|---|---|---|
labels | map[string]string | Map 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 |
annotations | map[string]string | Annotations 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.
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model name override, such as gpt-4o-mini. If unset, the model name is taken from the request. |
moderation | *OpenAIInlineModeration | Inline moderation configuration to inject into OpenAI chat completions and responses requests. If unset, the OpenAI inline moderation parameter is not injected. |
OpenAIInlineModeration
| Field | Type | Description |
|---|---|---|
model | ShortString | The moderation model to use, such as omni-moderation-latest. Defaults to omni-moderation-latest if not specified. |
policy | *OpenAIInlineModerationPolicy | Policies to apply to request input and generated output. |
OpenAIInlineModerationConfig
| Field | Type | Description |
|---|---|---|
mode | OpenAIInlineModerationMode | Mode controls whether moderation only returns scores or blocks flagged content. Required. |
OpenAIInlineModerationMode
Underlying type: string
OpenAIInlineModerationPolicy
| Field | Type | Description |
|---|---|---|
input | *OpenAIInlineModerationConfig | Policy for request input moderation. |
output | *OpenAIInlineModerationConfig | Policy for generated output moderation. |
OpenAIModeration
| Field | Type | Description |
|---|---|---|
failureMode | FailureMode | Behavior when the provider is unavailable or returns an error. FailOpen allows the request to continue; FailClosed (default) rejects it. |
model | *string | Moderation model to use. For example, omni-moderation. |
action | *RejectAuditAction | Action controls whether flagged content is rejected or only observed. Reject (the default) rejects flagged content; Audit records the would-be rejection without blocking. |
policies | *OpenAIModerationPolicy | Policies for communicating with OpenAI. |
OpenAIModerationAuth
OpenAIModerationAuth configures credentials for OpenAI Moderation requests.
Validation:
ExactlyOneOf=key;secretRef
| Field | Type | Description |
|---|---|---|
key | *string | Inline key to use as the value of the Authorization header. This option is the least secure; usage of a Secret is preferred. |
secretRef | *LocalSecretKeyRef | Credential 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 | *AuthorizationLocation | Where 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
| Field | Type | Description |
|---|---|---|
auth | *OpenAIModerationAuth | Settings for authenticating to OpenAI. |
OtlpAccessLog
Ships access logs to an OpenTelemetry-compatible backend via OTLP.
Validation:
ExactlyOneOf=backendRef;urlXValidation: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"
| Field | Type | Description |
|---|---|---|
filter | *CELExpression | CEL 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 | *LogTracingAttributes | Customizations to the key-value pairs exported over OTLP. If unset, the parent access log attributes are used. |
protocol | OTLPProtocol | OTLP protocol variant to use. Defaults to GRPC. |
path | *LongString | OTLP/HTTP path to use. This is only applicable when protocol is HTTP. If unset, this defaults to /v1/logs. |
PolicyAncestorStatus
| Field | Type | Description |
|---|---|---|
ancestorRef | gwv1.ParentReference | The ancestor resource that this status entry describes. Required. |
controllerName | string | The controller that wrote this status entry. Example: example.net/gateway-controller. Required. |
conditions | []metav1.Condition | Conditions 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
| Field | Type | Description |
|---|---|---|
conditions | []metav1.Condition | The current condition state for the policy. |
ancestors | []PolicyAncestorStatus | Status for each ancestor that is affected by this policy. Required. |
PolicyStrategy
| Field | Type | Description |
|---|---|---|
inheritance | *PolicyInheritance | Controls 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
| Field | Type | Description |
|---|---|---|
providers | []NamedLLMProvider | LLM 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.
| Field | Type | Description |
|---|---|---|
requestBodyMode | *BodySendMode | How request bodies are sent to the external processor. Defaults to FullDuplexStreamed. |
responseBodyMode | *BodySendMode | How response bodies are sent to the external processor. Defaults to FullDuplexStreamed. |
requestHeaderMode | *HeaderSendMode | Whether request headers are sent to the external processor. Defaults to Send. |
responseHeaderMode | *HeaderSendMode | Whether response headers are sent to the external processor. Defaults to Send. |
requestTrailerMode | *TrailerSendMode | Whether request trailers are sent to the external processor. Defaults to Send. |
responseTrailerMode | *TrailerSendMode | Whether response trailers are sent to the external processor. Defaults to Send. |
allowModeOverride | bool | Allows 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)
| Field | Type | Description |
|---|---|---|
cacheSystem | *bool | Enables caching for system prompts. Defaults to true. Inserts a cache point after all system messages. |
cacheMessages | *bool | Enables caching for conversation messages. Defaults to true. Caches all messages in the conversation for cost savings. |
cacheTools | bool | Enables caching for tool definitions. Defaults to false. Inserts a cache point after all tool specifications. Ignored for Bedrock Nova models, which do not support caching tools. |
minTokens | *int | Minimum estimated token count before caching is enabled. Uses rough heuristic (word count × 1.3) to estimate tokens. Applies to system prompt caching. Defaults to 1024; most models require at least 1,024 tokens for caching to be effective. |
cacheMessageOffset | int | Shifts the message cache point further back in the conversation. 0 (default) places it at the second-to-last message. Higher values move it N additional messages towards the start, clamped to bounds. |
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;googleModelArmorXValidation: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"
| Field | Type | Description |
|---|---|---|
response | *CustomResponse | Custom response message to return to the client. If not specified, defaults to The request was rejected due to inappropriate content. |
scope | []ContentScope | Which 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 | *Regex | Regular expression (regex) matching for prompt guards and data masking. |
webhook | *Webhook | Webhook that receives requests for prompt guarding. |
openAIModeration | *OpenAIModeration | Passes prompt data through the OpenAI Moderations endpoint. See https://developers.openai.com/api/reference/resources/moderations for more information. |
bedrockGuardrails | *BedrockGuardrails | AWS Bedrock Guardrails settings for prompt guarding. |
googleModelArmor | *GoogleModelArmor | Google Model Armor settings for prompt guarding. |
PromptguardResponse
Prompt guards to apply to responses returned by the LLM provider.
Validation:
ExactlyOneOf=regex;webhook;bedrockGuardrails;googleModelArmorXValidation: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)"
| Field | Type | Description |
|---|---|---|
response | *CustomResponse | Custom response message to return to the client. If not specified, defaults to The response was rejected due to inappropriate content. |
scope | []ContentScope | Which 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 | *Regex | Regular expression (regex) matching for prompt guards and data masking. |
webhook | *Webhook | Webhook that receives responses for prompt guarding. |
bedrockGuardrails | *BedrockGuardrails | AWS Bedrock Guardrails settings for prompt guarding. |
googleModelArmor | *GoogleModelArmor | Google Model Armor settings for prompt guarding. |
ProxyProtocolMode
Underlying type: string
ProxyProtocolVersion
Underlying type: string
RateLimitDescriptor
| Field | Type | Description |
|---|---|---|
entries | []RateLimitDescriptorEntry | Individual components that make up this descriptor. Required. |
unit | *RateLimitUnit | Cost unit. If unspecified, Requests is used. |
cost | *CELExpression | Common 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 | *CELExpression | Common 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.
| Field | Type | Description |
|---|---|---|
name | TinyString | Name of the descriptor. Required. |
expression | CELExpression | Common 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
| Field | Type | Description |
|---|---|---|
local | []LocalRateLimit | Local rate limiting policy. |
global | *GlobalRateLimit | Global rate limiting policy using an external service. |
RateLimitsConditional
| Field | Type | Description |
|---|---|---|
condition | CELExpression | CEL expression that must evaluate to true for this policy to execute. |
policy | RateLimits | Policy to apply when the condition matches. Required. |
RateLimitsOrConditional
Validation:
ConditionalPolicyAtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
local | []LocalRateLimit | Local rate limiting policy. |
global | *GlobalRateLimit | Global rate limiting policy using an external service. |
conditional | []RateLimitsConditional | Conditional policy execution. Set this or the top-level rateLimit fields. The first matching policy will be executed. A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback in case no conditions are met. |
Regex
Regular expression matching for prompt guards and data masking.
| Field | Type | Description |
|---|---|---|
matches | []LongString | Regex patterns to match against the request or response. Matches and built-ins are additive. |
builtins | []BuiltIn | Built-in regex patterns to match against the request or response. Matches and built-ins are additive. |
action | *Action | The action to take if a regex pattern is matched in a request or response. The action applies to request and response matches alike. Note that 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;urlXValidation: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"
| Field | Type | Description |
|---|---|---|
jwksPath | *LongString | Path to the IdP jwks endpoint, relative to the root, commonly ".well-known/jwks.json". |
cacheDuration | *Duration | How long a fetched jwks document is used before it is re-fetched from the IdP. Defaults to 5m. |
RequestDecompression
| Field | Type | Description |
|---|---|---|
algorithms | []CompressionAlgorithm | Algorithms decoded from request bodies. Bodies using any other (or more than one) encoding are forwarded untouched. If unset, defaults to Gzip. |
ResourceAdd
| Field | Type | Description |
|---|---|---|
name | ShortString | Required. |
expression | CELExpression | Required. |
ResponseCompression
| Field | Type | Description |
|---|---|---|
algorithms | []CompressionAlgorithm | Algorithms that may be negotiated with the client’s Accept-Encoding header. When the client accepts several equally, the first listed wins. If unset, defaults to Gzip. |
Retry
Retry policy.
| Field | Type | Description |
|---|---|---|
precondition | *CELExpression | precondition 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 | *CELExpression | condition 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=1MaxLength=253Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$`
SecretSelector
| Field | Type | Description |
|---|---|---|
matchLabels | map[string]string | Labels that must be present on each selected Secret. Required. |
SessionAffinity
Configures best-effort session affinity using an existing request attribute.
| Field | Type | Description |
|---|---|---|
source | CELExpression | CEL 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."
| Field | Type | Description |
|---|---|---|
min | int64 | Minimum time (in seconds) to wait before allowing Agentgateway to terminate. Refer to the CONNECTION_MIN_TERMINATION_DEADLINE environment variable for details. Required. |
max | int64 | Maximum 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).
| Field | Type | Description |
|---|---|---|
driver | string | CSI 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.
| Field | Type | Description |
|---|---|---|
path | string | Host 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.
| Field | Type | Description |
|---|---|---|
enabled | *bool | Explicitly 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 | *SpiffeWorkloadAPISource | Volume 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
| Field | Type | Description |
|---|---|---|
csi | *SpiffeCSISource | Source the Workload API socket from the SPIFFE CSI driver (the default). |
hostPath | *SpiffeHostPathSource | Source the Workload API socket from a host directory. |
mountPath | string | Mount path inside the container for the Workload API socket directory. Must be an absolute path. Defaults to /spiffe-workload-api. |
socketName | string | Socket 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"
| Field | Type | Description |
|---|---|---|
host | ShortString | Host to connect to for TCP backends. |
port | int32 | Port to connect to for TCP backends. |
unixPath | *string | Filesystem path to a Unix Domain Socket. The gateway pod must share a volume with the target (e.g., via emptyDir sidecar pattern). Mutually exclusive with host/port. |
TLSVersion
Underlying type: string
Timeouts
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
request | *Duration | Maximum 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 | *Duration | Maximum 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=1MaxLength=64
Tracing
Validation:
ExactlyOneOf=backendRef;urlXValidation: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"
| Field | Type | Description |
|---|---|---|
protocol | OTLPProtocol | OTLP protocol variant to use. Defaults to GRPC. |
path | *LongString | OTLP path to use. This is only applicable when protocol is HTTP. If unset, this defaults to /v1/traces. |
attributes | *LogTracingAttributes | Customizations to the key-value pairs that are included in the trace. |
resources | []ResourceAdd | Entity producing telemetry and resources resources to be included in the trace. |
randomSampling | *CELExpression | Expression that determines the amount of random sampling. Random sampling will initiate a new trace span if the incoming request does not have a trace initiated already. This should evaluate to a float between 0.0 and 1.0, or a boolean (true or false). If unspecified, random sampling is disabled. |
clientSampling | *CELExpression | Expression that determines the amount of client sampling. Client sampling determines whether to initiate a new trace span if the incoming request does have a trace already. This only applies when that trace is sampled (-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 | *CELExpression | Expression 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 | *CELExpression | Expression 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
| Field | Type | Description |
|---|---|---|
set | []HeaderTransformation | Headers to set and the values to use. |
add | []HeaderTransformation | Headers to add to the request and what each value should be set to. If there is already a header with these values then append the value as an extra entry. |
remove | []HeaderName | Header names to remove from the request or response. |
body | *CELExpression | HTTP body transformation. |
metadata | map[string]CELExpression | Stores CEL-evaluated values under the metadata CEL variable for subsequent policy evaluations. metadata is evaluated before header or body transformations. |
Transformation
Validation:
AtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
request | *Transform | Request transformation settings. |
response | *Transform | Response transformation settings. |
TransformationConditional
| Field | Type | Description |
|---|---|---|
condition | CELExpression | CEL expression that must evaluate to true for this policy to execute. |
policy | Transformation | Policy to apply when the condition matches. Required. |
TransformationOrConditional
Validation:
ConditionalPolicyAtLeastOneFieldSet
| Field | Type | Description |
|---|---|---|
request | *Transform | Request transformation settings. |
response | *Transform | Response transformation settings. |
conditional | []TransformationConditional | Conditional policy execution. Set this or the top-level transformation fields. The first matching policy will be executed. A single policy may be provided without a condition set; if so, it must be the last policy and will be the fallback in case no conditions are met. |
VertexAIConfig
| Field | Type | Description |
|---|---|---|
model | *ShortString | Model 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.
| Field | Type | Description |
|---|---|---|
backendRef | gwv1.BackendObjectReference | Webhook server to reach. Supported types: Service and Backend. Required. |
headers | map[string]CELExpression | CEL-computed headers to include in webhook requests. |
forwardHeaderMatches | []gwv1.HTTPHeaderMatch | HTTP header matches used to select the headers to forward to the webhook. Request headers are used when forwarding requests and response headers are used when forwarding responses. By default, no headers are forwarded. |
failureMode | FailureMode | Behavior when the webhook guardrail is unavailable or returns an error. FailOpen allows the request to continue. FailClosed (default) rejects the request. |
action | *RejectAuditAction | Action 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. |