]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: config: clarify some known limitations of the json_query() converter
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Oct 2025 02:52:33 +0000 (04:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Oct 2025 06:57:39 +0000 (08:57 +0200)
commit67603162c1d5baaf17f6bf1a3a4c58d5c0524d35
tree27e5cba0e65aa04124fd2ac7c3cc618e81df9d00
parentb71bb6c2aec166a340ae6967731587106c886570
DOC: config: clarify some known limitations of the json_query() converter

Oula Kivalo reported that different JSON libraries may process duplicate
keys differently and that most JSON libraries usually decode the stream
before extracting keys, while the current mjson implementation decodes the
contents during extraction instead. Let's document this point so that
users are aware of the limitations and do not rely on the current behavior
and do not use it for what it's not made for (e.g. content sanitization).

This is also the case for jwt_header_query(), jwt_payload_query() and
jwt_verify(), which already refer to this converter for specificities.
doc/configuration.txt