HAProxy community

HAProxy full traffic inspection/logging

Hello HAProxy community,

I’m trying to setup HAProxy for full traffic inspection (and logging). What I would like to achieve is to have access to full incoming request on frontend, full outgoing request from backend to server and full incoming response from backend server.

By full I mean request line/status line, headers and body. During processing I do heavy path and header rewriting and sometimes even body modification (via lua).

I am using fetches, captures and SPOA, so far I am able to get full incoming request and full incoming response, but still the configuration is getting quite complex.

Is there any simple or straight forward way to achieve full traffic inspection using HAProxy?
Is this doable with HAProxy enterprise edition?
Is there any sidecar component/application to HAProxy that could help in achieving full traffic inspection?

Thanks for any help, hints and pointers.