On Fri, 5 Mar 2021 at 11:53, Adis Nezirovic <[email protected]> wrote:

> On 3/4/21 9:47 PM, Mihaly Zachar wrote:
> > If I do this:
> > applet:set_var('txn.myvar', 'myvar_value')
> >
> > Then in the HAProxy layer I can reach the variable with %[var(txn.myvar)]
> > So it DOES work !
> > But Is this safe ? Did I do it well or I was just lucky ?
>
> Actions expose 'txn', while services expose full 'applet' object, so I
> do think it works as intended, it's not an accident. You are using Lua
> service for redirection?
>

Hi Adis,

Ok, thanks for the confirmation.
Yes, I did build a small webservice using HAproxy + Lua.
Sometimes it does send back 200 Ok with some content, sometimes it sends
back 302 based on some logic, it depends on the request.
It controls device provisioning.

Thanks,
Misi

Reply via email to