]> git.kaiwu.me - haproxy.git/commit
MAJOR: spoe: upgrade the SPOP version to 2.0 and remove the support for 1.0
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 May 2018 12:56:42 +0000 (14:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Jun 2018 15:33:48 +0000 (17:33 +0200)
commit6381650516b3c3f9c272da66d33d9f9e23139594
treeb2cf1a2972418fe3f8db1b97fa3f4b57d720f7a0
parent730323e56e3816a0c17f3d21857ad276847294db
MAJOR: spoe: upgrade the SPOP version to 2.0 and remove the support for 1.0

The commit c4dcaff3 ("BUG/MEDIUM: spoe: Flags are not encoded in network order")
introduced an incompatibility with older agents. So the major version of the
SPOP is increased to make the situation unambiguous. And because before the fix,
the protocol is buggy, the support of the version 1.0 is removed to be sure to
not continue to support buggy agents.

The agents in the contrib folder (spoa_example, modsecurity and mod_defender)
are also updated to announce the SPOP version 2.0.

So, to be clear, from the patch, connections to agents announcing the SPOP
version 1.0 will be rejected.

This patch must be backported in 1.8.
contrib/mod_defender/spoa.c
contrib/modsecurity/spoa.c
contrib/spoa_example/spoa.c
src/flt_spoe.c