Skip to content

Plan operators

The operator vocabulary of a query plan's condition tree: Cerbos' own set, plus two Kerberos extensions.

condition is a tree of { expression: { operator, operands } } / { variable } / { value } operands. Variables are Cerbos-named: request.resource.id and request.resource.attr.<path>.

OperatorsMeaning
and, or, notBoolean composition.
eq, ne, lt, le, gt, geComparisons (===, !==, <, <=, >, >=).
inList membership (list.includes(x)).
add, sub, mult, div, modArithmetic (+, -, *, /, %).
index, listComputed member access, list literals.
opaque (Kerberos)Statically unplannable condition — post-filter.
relation (Kerberos)ReBAC dependency — expand or post-check.

Released under the MIT License.