Repository navigation
outposts/proxy: honor X-Forwarded-Host in envoy forward auth (cherry-pick #26888 to version-2026.8) - #27351
Conversation
* outposts/proxy: honor X-Forwarded-Host in envoy forward auth The envoy handler built the post-login redirect from the raw Host header, while the outpost picks the application with the ak-axum Host extractor, which uses X-Forwarded-Host from trusted proxies. When a front proxy rewrote :authority to an internal name, users landed on that internal host after login. The Go outpost replaced the host with X-Forwarded-Host for trusted proxies, so this broke in the Rust rewrite. Use the same extractor for the redirect target. Untrusted peers still cannot pick the redirect host. Closes: #26867 * outposts/proxy: drop envoy handler tests that repeat ak-axum coverage * outposts/proxy: test that envoy forward auth uses the forwarded host The envoy_forward_target unit tests pass a host string directly, so they still pass if handle_envoy goes back to reading the raw Host header. Drive the handler through host_middleware with a trusted proxy instead. The untrusted-peer case stays out because ak-axum's Host extractor tests already cover it.
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ 2 Tests Failed:
View the top 2 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
…rward-auth-backport
|
Note 🤖 Claude Opus 5.5 responding on behalf of Dominic Merged Checked:
Status: squash auto-merge is on. The PR still needs a review from |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-b05cd28ad4e5a425f350cc34bc527d7db0850691
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-b05cd28ad4e5a425f350cc34bc527d7db0850691Afterwards, run the upgrade commands from the latest release notes. |
Cherry-pick of #26888 to
version-2026.8branch.Original PR: #26888
Original Author: @dominic-r
Cherry-picked commit: 0dc918d