Hi,
I really liked haproxy-auth-request's idea[0] () but needed some extra stuff, so
I forked it and implemented what I needed/wanted[1], by doing a sub-request
against hashicorp vault.
One of the things I need is the full requesting URL, with scheme, etc. So far
I've come up with:
http-request set-header X-Requesting-URL https%%3A//%[hdr("host")]%[url]
which seems to mostly work, but is there a better way?
I use this so that when forwarding to the authentication website, it
can redirect them back to where they were going when they successfully
login.
0: https://github.com/TimWolla/haproxy-auth-request/
1: https://github.com/csawyerYumaed/hapvault/