Caddy: Add support for Forwarded header (RFC 7239)

Created on 14 Apr 2020  ยท  4Comments  ยท  Source: caddyserver/caddy

RFC 7239 specifies a Forwarded header, which is intended to replace X-Forwarded-*.

It would be great if Caddy supported this.

Ref:

feature request help wanted

Most helpful comment

Thanks for the quick response.

Honestly, it's more of a "nice to have", with a use case of replacing the quasi-standardized X-Forwarded-For/-Host/-Proto/-Scheme. I can afford to do this in my environment (Caddy in front of a small collection of services).


Some research on the topic:

I found @c960657's more comprehensive https://c960657.github.io/forwarded.html immediately after I finished making the list below. ๐Ÿ˜…

Relevant issues/tickets:

All 4 comments

Thanks for the request.

What is your use case for this?

The Go team tried to drill down on this a few years ago but the answers were either missing or unsatisfactory: https://github.com/golang/go/issues/20526

Thanks for the quick response.

Honestly, it's more of a "nice to have", with a use case of replacing the quasi-standardized X-Forwarded-For/-Host/-Proto/-Scheme. I can afford to do this in my environment (Caddy in front of a small collection of services).


Some research on the topic:

I found @c960657's more comprehensive https://c960657.github.io/forwarded.html immediately after I finished making the list below. ๐Ÿ˜…

Relevant issues/tickets:

There's a couple go libs that do the parsing:

They're both over 4 years old though.

Now _this_ is an excellent feature request. :+1: Not because it's a high priority, but because it's well-researched!

Was this page helpful?
0 / 5 - 0 ratings