WarUI

Filter and query AST validation with server authorization guidance

GRID-A29-F14P1beyond-baselinePlanned

Server-side row models send filters, sorts, and groupings as a typed, versioned AST rather than raw query strings. The docs provide a reference validator schema and guidance on authorizing fields and operators per user on the server, because client checks are never trusted.

Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with a server row model connected to an in-browser mock server. A request inspector is shown.

Expected behavior

The inspector shows the JSON AST. Tampered requests are rejected by the mock server with 403 and an explanation, and the grid shows an accessible error state. Role changes alter the allowed fields.

Planned API surface

serverRowModel.getRowsrequest.filterModel (AST)request.sortModelfilterAstSchemaVersionvalidateFilterAstfieldAllowlist

Acceptance criteria

  • The AST contains no raw SQL fragments, and values are typed literals. (pending)
  • validateFilterAst rejects unknown nodes, operators, and fields and enforces depth and size limits. (pending)
  • The docs include parameterized query mapping guidance and explicitly state server-side authorization is mandatory. (pending)
  • The grid handles 403 and 400 responses without leaking server error text unescaped. (pending)