Re: [EXTERNAL] Re: built in ACL, REQ_CONTENT

2021-06-25 Thread Willy Tarreau
On Tue, Jun 08, 2021 at 06:32:50PM +0200, Lukas Tribus wrote: > Please try to ask the actual question directly next time, so we can > help you right away (https://xyproblem.info/). I didn't know this extremely common problem had a name, thanks Lukas for the link, I'll share it more often! Willy

RE: [EXTERNAL] Re: built in ACL, REQ_CONTENT

2021-06-08 Thread Godfrin, Philippe E
/0 0/0 Jun  8 16:53:45 ip-172-31-77-193 haproxy[15847]: 172.31.77.187:51096 [08/Jun/2021:16:53:40.112] pg_ingress pg_readonly/tstshd01 5001/0/5002 430 -- 1/1/0/0/0 0/0 From: Lukas Tribus Sent: Tuesday, June 8, 2021 11:33 AM To: Godfrin, Philippe E Cc: jarno.huusko...@uef.fi; haproxy@formilux

Re: [EXTERNAL] Re: built in ACL, REQ_CONTENT

2021-06-08 Thread Lukas Tribus
Hello, On Tue, 8 Jun 2021 at 17:36, Godfrin, Philippe E wrote: > > Certainly, > > Postrgres sends this message across the wire: > > Jun 2 21:14:40 ip-172-31-77-193 haproxy[9031]: #0110x00: 00 00 00 4c 00 > 03 00 00 75 73 65 72 00 74 73 64 |...Luser.tsd| > Jun 2 21:14:40

RE: [EXTERNAL] Re: built in ACL, REQ_CONTENT

2021-06-08 Thread Godfrin, Philippe E
suggest: acl check-rw req.payload(8,32),hex -m sub  757365720074736462727700 use_backend pg_readwrite if check-rw But the ACL never results in true… pg From: Jarno Huuskonen Sent: Tuesday, June 8, 2021 8:35 AM To: Godfrin, Philippe E Cc: haproxy@formilux.org Subject: Re: [EXTERNAL] Re: built in ACL

Re: [EXTERNAL] Re: built in ACL, REQ_CONTENT

2021-06-08 Thread Jarno Huuskonen
xplain a little bit what you're trying to do ? -Jarno > pg > > -Original Message- > From: Lukas Tribus > Sent: Monday, June 7, 2021 4:08 PM > To: Godfrin, Philippe E > Cc: haproxy@formilux.org > Subject: [EXTERNAL] Re: built in ACL, REQ_CONTENT >

RE: [EXTERNAL] Re: built in ACL, REQ_CONTENT

2021-06-08 Thread Godfrin, Philippe E
OK, I see. An associated question, how do I gain access to that content to interrogate/parse the data in that content? pg -Original Message- From: Lukas Tribus Sent: Monday, June 7, 2021 4:08 PM To: Godfrin, Philippe E Cc: haproxy@formilux.org Subject: [EXTERNAL] Re: built in ACL