Catch policy errors before you save

The policy editor now flags Rego problems as you write, so mistakes surface before you save rather than after. In the web app, errors appear inline in the editor and in the error panel; autocomplete also suggests schema fields as you type.

When a policy is saved, the web app and API return errors for:

  • Unknown or disallowed builtins, such as http.send
  • Type mismatches and incorrect argument counts
  • Unsafe or undeclared variable references
  • Restricted variables in index-applicable policies

The web app editor checks three additional things the API does not: a warning when a policy omits package cloudsmith or a match rule, inline highlighting for malformed Rego that doesn't block saving, and autocomplete for schema field names.


Keep up to date with our monthly product bulletin