For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
CEL reference explorer
Explore the CEL expression context interactively, including all available variables and their nested fields.
- request
- methodstring
- uristring
- hoststring
- schemestring
- pathstring
- pathAndQuerystring
- versionstring
- headersobject
- bodystring
- startTimestring
- endTimestring
- response
- codeinteger
- headersobject
- bodystring
- env
- podNamestring
- namespacestring
- gatewaystring
- jwtobject
- apiKey
- *keystring
- basicAuth
- *usernamestring
- llm
- *streamingboolean
- *requestModelstring
- responseModelstring
- *providerstring
- inputTokensinteger
- inputImageTokensinteger
- inputTextTokensinteger
- inputAudioTokensinteger
- cachedInputTokensinteger
- cacheCreationInputTokensinteger
- outputTokensinteger
- outputImageTokensinteger
- outputTextTokensinteger
- outputAudioTokensinteger
- reasoningTokensinteger
- totalTokensinteger
- serviceTierstring
- countTokensinteger
- prompt
- *rolestring
- *contentstring
- completionstring[]
- *params
- temperaturenumber
- top_pnumber
- frequency_penaltynumber
- presence_penaltynumber
- seedinteger
- max_tokensinteger
- encoding_formatstring
- dimensionsinteger
- llmRequest
- source
- addressstring
- portinteger
- rawAddressstring
- rawPortinteger
- identity
- *trustDomainstring
- *namespacestring
- *serviceAccountstring
- subjectAltNamesstring[]
- issuerstring
- subjectstring
- subjectCnstring
- unverifiedWorkload
- namestring
- namespacestring
- serviceAccountstring
- mcp
- methodNamestring
- sessionIdstring
- tool
- *targetstring
- *namestring
- argumentsobject
- result
- error
- prompt
- targetstring
- namestring
- resource
- targetstring
- namestring
- backend
- namestring
- typestring
- protocolstring
- extauthzobject
- extprocobject
- metadataobject
request contains attributes about the incoming HTTP requestGETValidation
http://example.com/path.Validation
example.com.Validation
https.Validation
/path./path?foo=bar.Validation
HTTP/1.1.Validation
Validation
response contains attributes about the HTTP responseValidation
Validation
env contains selected process environment attributes exposed to CEL.This does NOT expose raw environment variables, but rather a subset of well-known variables.
jwt contains the claims from a verified JWT token. This is only present if the JWT policy is enabled.apiKey contains the claims from a verified API Key. This is only present if the API Key policy is enabled.basicAuth contains the claims from a verified basic authentication Key. This is only present if the Basic authentication policy is enabled.llm contains attributes about an LLM request or response. This is only present when using an ai backend.Validation
Validation
Note: this field is only set in multi-modal calls where the total token count is split out by
text/image/audio; for standard all-text calls, this is unset.
Validation
Validation
Validation
Not present with OpenAI
Validation
Validation
Validation
Validation
Note: this field is only set in multi-modal calls where the total token count is split out by
text/image/audio; for standard all-text calls, this is unset.
Validation
Validation
Validation
These are not counted as 'input tokens' since they do not consume input tokens.
Validation
Validation
Validation
Validation
Validation
Validation
Validation
Validation
llmRequest contains the raw LLM request before processing. This is only present *during* LLM policies;policies occurring after the LLM policy, such as logs, will not have this field present even for LLM requests.
source contains attributes about the source of the request.Validation
Validation
This can differ from the
address when using tunneling protocols like PROXY.Validation
This can differ from the
port when using tunneling protocols like PROXY.Validation
Validation
Validation
Validation
workload discovery store by source IP. Available when the source pod is
known to the controller's workload discovery store.
unverified to signal that they are derivedfrom the source IP (not cryptographically authenticated). Policy
authors should prefer
source.identity.* for trust-sensitive checks.mcp contains attributes about the MCP request.Request-time CEL only includes identity fields such as
tool, prompt, or resource.Post-request CEL may also include fields like
methodName, sessionId, and tool payloads.backend contains information about the backend being used.my-service or service/my-namespace/my-service:8080.Validation
Validation
extauthz contains dynamic metadata from ext_authz filtersextproc contains dynamic metadata from ext_proc filtersmetadata contains values set by transformation metadata expressions.