Le 20/11/2026 à 11:46 AM, Christopher Faulet a écrit :
Le 11/11/2026 à 7:57 AM, Siddharth Agravat a écrit :
Hello Christopher,
- With post-80 using CLIENT_PLUGIN_AUTH, MySQL doesn't send err_packet (0xff) on
plugin mismatch (reports 0xfe) and expect client to use correct plugin. Same is
not the case with pre-41/post-41 (MySQL relies with error 1251)
- this can happen with many reasons like version upgrades (using the prior auth
account using old plugin) to continue for health checks. Idea here is to not
silently ignore the mismatch (ultimately MySQL blocking haproxy host due to 1129
err)
- This false positive (haproxy is reporting OK packet with 0xfe all the time) is
updated in the doc but code isn't immediately reporting the error in case of
mismatch, the prior fix the support of sha2 is added
Hi,
Sorry for the delay. I worked a bit on that because I was worried about
returning an error in such case because it is more configuration error that a
service error. It does not mean the server will reject regular traffic. But I
can understand the problem.
Instead, here is a patchset to support parsing of AuthSwitchRequest packet with
post-80 modes. I did some tests but it could be useful to validate the series on
your side.
FYI, I merged the series. Thanks !
--
Christopher Faulet