Hm, I'm a bit worried about users setting up a Unix socket with a
reverse proxy which doesn't grok PROXY. This would allow clients to
send arbitrary PROXY headers.
On Thu Oct 13, 2022 at 6:02 PM EEST, Simon Ser wrote:
> Hm, I'm a bit worried about users setting up a Unix socket with a> reverse proxy which doesn't grok PROXY. This would allow clients to> send arbitrary PROXY headers.
You're right, i hadn't thought about that. What is the simplest way to
make this configurable? Should i add a special case for
"accept-proxy-ip unix"? Or add a new option like "accept-proxy-socket"?
On Friday, October 14th, 2022 at 21:45, Julio B <julio.bacel@gmail.com> wrote:
> On Thu Oct 13, 2022 at 6:02 PM EEST, Simon Ser wrote:> > > Hm, I'm a bit worried about users setting up a Unix socket with a> > reverse proxy which doesn't grok PROXY. This would allow clients to> > send arbitrary PROXY headers.> > You're right, i hadn't thought about that. What is the simplest way to> make this configurable? Should i add a special case for> "accept-proxy-ip unix"? Or add a new option like "accept-proxy-socket"?
Maybe we can:
- Introduce a new "accept-proxy-from" directive which accepts both IPs
and special names like "unix".
- Alias the old "accept-proxy-ip" directive to the new one, but remove
it from docs so that new configs use the new directive but old
configs keep working.
How does that sound?