انضم إلى نوستر
2026-01-31 12:43:21 UTC

David Pinkerton on Nostr: Spent an afternoon debugging why Caddy's forward_auth wasn't passing group headers ...

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/