The Gateway listener to extend with MCP protocol support
publicHost
String
No
Overrides the public host derived from the listener hostname. Use when the listener has a wildcard and you need a specific host
privateHost
String
No
Overrides the internal host used for hair-pinning requests back through the gateway. Defaults to <gateway>-<gatewayClassName>.<ns>.svc.cluster.local:<port>, with an https:// scheme prefix when the targeted Gateway listener uses the HTTPS protocol. The supplied value is honoured verbatim, so an operator can include a scheme (e.g. https://my-gw:443) or pin to a different port.
backendPingIntervalSeconds
Integer
No
How often (in seconds) the broker pings upstream MCP servers. Min: 10, Max: 7200, Default: 60
Configures trusted-header key pair for JWT-based tool filtering. When set, the public key secret is injected into the broker deployment via the TRUSTED_HEADER_PUBLIC_KEY env var
httpRouteManagement
String
No
Controls whether the operator manages the gateway HTTPRoute. Enabled (default): creates and manages the HTTPRoute. Disabled: does not create an HTTPRoute. Disabling does not delete a previously created route
logLevel
String
No
Controls the broker-router log verbosity. Maps to the broker's --log-level flag: debug=-4, info=0, warn=4, error=8. When unset, the operator-wide BROKER_ROUTER_LOG_LEVEL default is used if configured. Accepted values: debug, info, warn, error
References a secret for redis-based session storage. When not set, in-memory session storage is used
urlElicitation
String
No
Controls URL-based token elicitation. Enabled: creates a separate /tokens HTTPRoute and passes --enable-url-elicitation to the broker. Disabled (default): no /tokens route is created
References a Secret containing a PEM-encoded CA certificate bundle. Used as the base trust pool for broker connections to all upstream MCP servers, and for 2025-11-25 protocol hairpin requests to the gateway HTTPS listener. 2026-07-28 MCP calls do not hairpin. Per-server caCertSecretRef on MCPServerRegistration appends to this pool for upstreams. If the gateway listener CA differs from upstream CAs, include both PEMs in the Secret. The Secret must have the label mcp.kuadrant.io/secret: "true" and must not exceed 256 KiB
Configures the OAuth protected resource metadata served at /.well-known/oauth-protected-resource. When set, the controller injects OAUTH_* env vars into the broker-router deployment
maxBodyBytes
Integer
No
Maximum bytes the router buffers for streamed body accumulation (request or response). Applies to guardrails inspection and any other per-request body processing. Default: 5242880 (5 MiB). Oversized requests are rejected with 413 regardless of failMode. Oversized tools/call responses checked by guardrails become an isError tool result with response body exceeds configured size limit. The controller sets the gateway listener's per_connection_buffer_limit_bytes to the same value
Name of the Secret containing the PEM-encoded CA certificate bundle. The Secret must exist in the MCPGatewayExtension namespace and must have the label mcp.kuadrant.io/secret: "true"
key
String
No
Key within the Secret data that contains the PEM data. Default: ca.crt
The gateway CA bundle is written once to the config Secret as gatewayCACertPEM. The broker loads it as the base trust pool for all upstream connections. The 2025-11-25 hairpin client uses the same PEM to verify TLS to the gateway HTTPS listener. 2026-07-28 MCP calls do not hairpin and do not use this bundle for gateway TLS. Per-server caCertSecretRef on MCPServerRegistration appends additional CAs for backends with unique certificates.
Trust pool hierarchy: system roots, then gateway CA bundle (if set), then per-server CA (if set, upstreams only). Each layer is additive.
Name of the secret containing the PEM-encoded public key used by the broker to verify trusted-header JWTs. The secret must have a data entry with key key. When generate is Enabled, the operator creates this secret
generate
String
No
Controls whether the operator generates an ECDSA P-256 key pair. Enabled: creates <secretName> (public key) and <secretName>-private (private key) with owner references. Disabled (default): the secret must already exist. Changing this field requires deleting the existing secrets first to ensure the keys are a matching pair
Name of the secret containing a CACHE_CONNECTION_STRING data entry. The value should be a redis connection string (redis://<user>:<pass>@<host>:<port>/<db>). The secret must exist in the MCPGatewayExtension namespace and must have the label mcp.kuadrant.io/secret: "true". Injected as CACHE_CONNECTION_STRING env var into the broker-router deployment
Name of a Secret in the same namespace containing NeMo Guardrails configuration. Validated at reconcile time, not admission. See Guardrails Configuration Options for the Secret format and the Guardrails guide for setup
Indicates whether the MCPGatewayExtension is fully configured: the broker-router deployment is running, the EnvoyFilter has been applied, and trusted headers (if configured) are valid
GuardrailsResolved
Set when mcp.kuadrant.io/guardrails-ref has a non-empty value. An empty value is treated as unset. True when the referenced Secret is valid. False when it is missing or invalid, in which case Ready is also False and all MCPServerRegistrations on the gateway are set to NotReady until the Secret is fixed or the annotation is removed. Removed when the annotation is removed
A ReferenceGrant is missing for a cross-namespace Gateway reference
DeploymentNotReady
The broker-router deployment is not ready
SecretNotFound
A referenced secret is missing (trusted headers, session store, or CA cert bundle)
SecretInvalid
A referenced secret lacks the required data entry (key for trusted headers, CACHE_CONNECTION_STRING for session store), lacks the required label, or contains invalid PEM data (CA cert bundle)
GuardrailsSecretResolved
The guardrails Secret is valid (GuardrailsResolved only)
GuardrailsSecretNotFound
The Secret referenced by mcp.kuadrant.io/guardrails-ref does not exist
GuardrailsSecretInvalid
The guardrails Secret lacks the mcp.kuadrant.io/secret: "true" label, has the wrong type or an invalid config.yaml
The controller creates and reconciles a networking.k8s.io/v1 NetworkPolicy named mcp-gateway in the MCPGatewayExtension's namespace, owned by the MCPGatewayExtension (garbage-collected on deletion). It targets the broker-router pods via podSelector matching app.kubernetes.io/name: mcp-gateway and app.kubernetes.io/managed-by: mcp-gateway-controller.
Ingress is deny-by-default except for:
Port
Purpose
Allowed from
8080
Broker HTTP/MCP
Only the target Gateway's namespace
50051
Router gRPC (ext_proc)
Only the target Gateway's namespace
9090
Metrics
Any source
The allowed Gateway namespace is taken from spec.targetRef.namespace, which defaults to the MCPGatewayExtension's namespace when omitted, and selected using the auto-set kubernetes.io/metadata.name namespace label. If the targeted Gateway changes, the controller updates the policy to match. Egress allows all traffic.
This policy replaces the previous static Helm networkPolicy template for the broker-router deployment, which allowed ingress from any source and required manual opt-in.