What Is Changing
Starting in v0.179, each guardrail policy is a named gateway-guardrails-config — the same grain as logging configuration: one configuration name, one when block, and the four hook arrays.
Previously, all rules lived in a single document:
name: guardrails-control # optional / ignored for storage grain
type: gateway-guardrails-config
rules:
- id: palo-alto-rule
when: { ... }
llm_input_guardrails: [ ... ]
- id: mcp-test-rule
when: { ... }
mcp_tool_pre_invoke_guardrails: [ ... ]
Now each former rule is its own config (apply separately):
type: gateway-guardrails-config
name: palo-alto-rule
when: { ... }
llm_input_guardrails: [ ... ]
llm_output_guardrails: [ ... ]
mcp_tool_pre_invoke_guardrails: []
mcp_tool_post_invoke_guardrails: []
type: gateway-guardrails-config
name: mcp-test-rule
when: { ... }
llm_input_guardrails: []
llm_output_guardrails: []
mcp_tool_pre_invoke_guardrails: [ ... ]
mcp_tool_post_invoke_guardrails: [ ... ]
Why This Change
Named configs match how other multi-instance gateway policies work (for example logging). You can create, edit, and delete one policy without rewriting the entire set, and GitOps can own one file per policy.
What You Need to Do
GitOps / tfy apply
- For each entry under the old
rules[]array, create one YAML file (or one document) with:type: gateway-guardrails-configname: <old rule id>- top-level
whenand the four*_guardrailsarrays (not nested underrules)
- Remove the folded parent document that only wraps
rules: [...]. - Apply with
tfy apply(each named config is an independent resource). - Prefer copying YAML from the UI (Edit as YAML on a rule) so the shape matches production.
Changes in YAML Schema
| Before (folded) | After (named) |
|---|---|
One document, rules: [{ id, when, ... }] | One document per policy |
Rule identity = rules[].id | Config identity = top-level name |
| Hooks nested under each rule | Hooks at top level |
when, hook field names (llm_input_guardrails, …), and custom_error_message are unchanged — only the document grain changes.
Timeline
| Milestone | Date |
|---|---|
| Named policies available; folded format still accepted for compatibility | v0.179 |
| Deprecation announcement | 15 October 2026 |
Folded { type, rules: [...] } format fully removed | 15 November 2026 |
If you face any issues in the migration, reach out to [email protected].