Haproxy - Lua Backend section

Hello,

I’m trying to use lua in the backend section to set the password for redis:

Backend section

tcp-check send-lf AUTH\ %[lua.getVault]

Currently the getVault function is registered as fetches and just print a string. But i have seen that the lua code is not executed, event if i call core.Info, the message will not be shown.

Is there any way to execute this lua code with tcp-check send?

Is there any way to get this done? Reading the documentation doesn’t say that a lua fetch can’t be used in tcp-check send-lf