Spent an afternoon debugging why Caddy's forward_auth wasn't passing group headers from oauth2-proxy when calling it over HTTPS across networks.
The fix was one line: header_up Host oauth2-proxy.example.com
Without it, Caddy sends the original request's Host header, oauth2-proxy's cookie validation gets confused, and X-Auth-Request-Groups silently disappears.
Wrote it up: https://blog.dpinkerton.com/posts/caddy-forward-auth-host-header/