docs: document custom CEL functions - #1013
Merged
kristin-kronstain-brown merged 4 commits intoSep 3, 2026
Merged
Conversation
Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
Signed-off-by: Daneyon Hansen <daneyon.hansen@solo.io>
Registration checks the definitions themselves: names, parameters, and the call graph. It does not check that a call site can supply the variables a function reads. A function that reads `response` passes `--validate-only`, starts cleanly, and then returns 403 for every request that reaches an authorization policy calling it, with nothing in the startup logs. Give that its own section with a reproduction, and scope the constraints table to what registration actually enforces. Also: * Add the `config:` parent to the four function-form snippets. Without it agentgateway rejects them with `unknown field customFunctions`. * Note that a receiver registers under its bare name, so `example()` and `this.example()` collide. * Say the identifier character set is ASCII. * Scope the `between(llm.inputTokens, ...)` example to AI and LLM routes, where the `llm` variables are bound. * Use the gloss shortcode for CEL, and unwrap the prose to match the other pages under assets/agw-docs/pages/. Revert the observability alias changes that main already fixed in 302f2fe, which scoped each alias to its version tree and dropped the bare `/observability/tracing` that collided at the site root. Keep the otel-stack tabs fix and the main-tree access-logging alias, which main does not have. Verified against agentgateway 1.5.0: every YAML example on the page passes --validate-only, and the 403 reproduction is from a running gateway. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Kristin Brown <kristin.brown@solo.io>
kristin-kronstain-brown
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
config.customFunctionssyntax and lifecycle.Testing
PATH=/opt/homebrew/bin:$PATH hugo160 --gc --minify.