
Why this change?
To bring the guardrails feature to MCP servers, we decided to merge it in the central guardrails policy instead of keeping it separate for models and MCP servers. We will be closely tracking the usage patterns here and evolve this if needed in the future.Is this change backward compatible and is there any action item on you?
The configuration on the UI will automatically be migrated and nothing is needed from you if you are not using Gitops. If you are storing Guardrail configuration in Git and applying via tfy apply , then you will need to copy the new YAML from the UI and paste it in Git since that format has changed. If you are not storing in Git, no changes are needed from your end.Changes in YAML Schema
Previous schema:Key changes in schema
-
input_guardrailswill be renamed tollm_input_guardrailsin every rule. -
output_guardrailswill be renamed tollm_output_guardrailsin every rule. -
Migrate
when.subjectsfrom a list of strings to the new shape withoperatorandconditions.in(orconditions.not_in). Specify at least one ofinornot_in. Use subject formatuser:emailorteam:teamName. -
Migrate
when.modelsintowhen.targetwithoperator,conditions.model,condition:inorcondition:not_in, andvalues. -
Ensure
when.metadata(if used) lists only keys that must be present in the request with exact values; request may have extra keys.