Re: read async auth date from file

2019-03-06 Thread Baptiste
Hi Jeff, If the file is only stored in the FS and you can't put its content into HAProxy's memory at run time (using a map as explained by Jarno), then you may want to use SPOE. So the blocking files IO will be done in a process running outside of HAProxy. You have an SPOA (agent) example in HAPro

Re: read async auth date from file

2019-03-06 Thread Jarno Huuskonen
Hi, On Sun, Mar 03, Jeff wrote: > I need to add an authorization header for a target server, e.g. >http-request add-header Authorization Bearer\ MYTOKENDATA > > where MYTOKENDATA is read from a file for each proxy message. Does this mean that each http request needs to read the MYTOKENDATA f

read async auth date from file

2019-03-03 Thread Jeff
I need to add an authorization header for a target server, e.g. http-request add-header Authorization Bearer\ MYTOKENDATA where MYTOKENDATA is read from a file for each proxy message. (MYTOKENDATA is written asynchronously to the file by another process.) How to do this in HAProxy? thanks, Je