WarUI

Server-side authorization and policy injection

GRID-A05-F22P0beyond-baselinePlanned

Specifies a server pipeline that treats client ASTs as untrusted: validate, check field permissions for the caller, then add mandatory policy predicates (tenant, row ownership) with AND before translation. Client-side hiding of fields or filters is never relied on for security.

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

Live example

A mock server panel with a principal selector (tenant A user, tenant B admin) and an editable incoming AST.

Expected behavior

The effective AST always contains the policy predicate as a top-level AND that the client cannot alter. Forbidden fields return FORBIDDEN_FIELD. Results never cross tenants.

Planned API surface

authorizeQuery()QueryPolicypolicyPredicatesfieldPermissionsprincipalFORBIDDEN_FIELD

Acceptance criteria

  • Policy predicates are injected after client validation and are not removable through the client AST (pending)
  • Field permission checks cover filter, sort, group and aggregate usage (pending)
  • Authorization errors do not reveal whether forbidden fields exist (pending)
  • The docs state that the client allowlist is a UX aid only (pending)