Skip to content

fix: Point forwarding headers at the external Trino endpoint - #119

Merged
sbernauer merged 2 commits into
mainfrom
fix/forwarded-headers
Aug 3, 2026
Merged

fix: Point forwarding headers at the external Trino endpoint#119
sbernauer merged 2 commits into
mainfrom
fix/forwarded-headers

Conversation

@sbernauer

@sbernauer sbernauer commented Jul 30, 2026

Copy link
Copy Markdown
Member

Fixes SUP-386

Trino builds the absolute URLs it hands out to clients (OAuth 2.0 challenge, infoUri, ackUri) from the forwarding headers. These pointed at trino-lb, so clients got sent to /oauth2/token/{id} on trino-lb, which answers with a 404 and breaks the whole authentication flow.

Trino builds the absolute URLs it hands out to clients (OAuth 2.0
challenge, infoUri, ackUri) from the forwarding headers. These pointed
at trino-lb, so clients got sent to /oauth2/token/{id} on trino-lb,
which answers with a 404 and breaks the whole authentication flow.
@sbernauer sbernauer self-assigned this Jul 31, 2026
@sbernauer sbernauer moved this to Development: Waiting for Review in Stackable Engineering Jul 31, 2026
@razvan
razvan self-requested a review August 3, 2026 07:53
@razvan razvan moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Aug 3, 2026
razvan
razvan previously approved these changes Aug 3, 2026

@razvan razvan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small remarks, otherwise it lgtm.

Comment thread trino-lb-core/src/config.rs
Comment thread trino-lb/src/cluster_group_manager.rs
@sbernauer
sbernauer added this pull request to the merge queue Aug 3, 2026
Merged via the queue into main with commit f0706ba Aug 3, 2026
9 checks passed
@sbernauer
sbernauer deleted the fix/forwarded-headers branch August 3, 2026 11:47
@sbernauer sbernauer mentioned this pull request Aug 3, 2026
@sbernauer sbernauer moved this from Development: In Review to Development: Done in Stackable Engineering Aug 6, 2026
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

4 participants