5. Security
Filters come from clients and must be treated as untrusted input.
5.1 Translation to data sources
Section titled “5.1 Translation to data sources”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.
5.2 Resource limits
Section titled “5.2 Resource limits”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.
5.3 Access to fields
Section titled “5.3 Access to fields”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.