Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4729

How do I execute a SPOE agent inbetween frontend http-request directives?

$
0
0

Is it possible to execute a SPOE agent after some http-request directives in the frontend section but before other?

My configuration is as follows: a LUA script extracts some data from JWT token and I want to send it to a SPOE agent for further processing. The problem is that in the SPOE agent configuration I have the following line:

event on-frontend-http-request

which causes the SPOE agent to run before the LUA script. However if I change it to on-backend-http-request the data from LUA script is available in the SPOE agent but it is too late - I need to either accept or reject the request based on results returned from the SPOE agent. And I can only do it in the frontend section using http-request deny ....

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>