]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: spoe: add register-var-names directive in spoe-agent configuration
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Dec 2017 09:00:55 +0000 (10:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Jan 2018 12:47:27 +0000 (13:47 +0100)
commit336d3ef0e77192582c98b3c578927a529ceadd9b
treeddfa09f78b5428272ca92e83a70ebc8c3d138e69
parentd651ba14d44a7350b4506e9de7c7b44cc18a6bff
MINOR: spoe: add register-var-names directive in spoe-agent configuration

In addition to "option force-set-var", recently added, this directive can be
used to selectivelly register unknown variable names, without totally relaxing
their registration during the runtime, like "option force-set-var" does.

So there is no way for a malicious agent to exhaust memory by defining a too
high number of variable names. In other hand, you need to enumerate all
variable names. This could be painfull in some circumstances.

Remember, this directive is only usefull when the variable names are not
referenced anywhere in the HAProxy configuration or the SPOE one.

Thanks to Etienne Carrière for his help on this part.
doc/SPOE.txt
include/types/spoe.h
src/flt_spoe.c