Skip to content

5. Security

Filters come from clients and must be treated as untrusted input.

SEC_BOUND_PARAMETERS MUST

When translating a filter to a query language, a provider MUST pass operands as bound parameters (or the equivalent mechanism of the data source) and MUST NOT concatenate operands into query text.

SEC_QUOTE_FIELDS MUST

A provider MUST validate field paths with PATH_DOT_NOTATION and quote them as identifiers of the target query language.

SEC_LIMITS MAY

An implementation MAY limit the nesting depth of filters, the number of conditions, the size of @in and @nin lists and the complexity of regular expressions, measured for example by the length of the pattern or by nested quantifiers.

SEC_LIMITS_FAIL MUST

When a limit is exceeded, the implementation MUST fail and MUST NOT truncate or simplify the filter.

SEC_HIDDEN_FIELDS SHOULD

A server SHOULD reject conditions on fields that the client is not allowed to read.

Source: lingodata/unquery@865de91 · spec/sections/05-security.md · unquery 0.1.0 (draft)

LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.