Skip to content

Forward custom HTTP headers on coordinator spooling requests#620

Merged
hashhar merged 1 commit into
trinodb:masterfrom
hashhar:hashhar/582-spooling-headers-fix
Jul 13, 2026
Merged

Forward custom HTTP headers on coordinator spooling requests#620
hashhar merged 1 commit into
trinodb:masterfrom
hashhar:hashhar/582-spooling-headers-fix

Conversation

@hashhar

@hashhar hashhar commented Jul 11, 2026

Copy link
Copy Markdown
Member

Description

Spooled segment data-fetch and acknowledge requests were sent through an unauthenticated client that dropped the custom http_headers supplied to connect(). When the coordinator sits behind a proxy that requires those headers (e.g. an auth gateway) the acknowledge request to the coordinator was rejected with "invalid token".

Forward the user-supplied custom headers on spooling requests but only when the target URI host matches the coordinator so external storage (e.g. S3 presigned URLs) is left untouched. The per-segment protocol headers returned by the coordinator always take precedence.

Non-technical explanation

Forward custom HTTP headers on coordinator spooling requests. Fixes #582

Release notes

( ) This is not user-visible or docs only and no release notes are required.
(x) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

* Fix some things. ({issue}`issuenumber`)

Spooled segment data-fetch and acknowledge requests were sent through an
unauthenticated client that dropped the custom http_headers supplied to
connect(). When the coordinator sits behind a proxy that requires those
headers (e.g. an auth gateway) the acknowledge request to the
coordinator was rejected with "invalid token".

Forward the user-supplied custom headers on spooling requests but only
when the target URI host matches the coordinator so external storage
(e.g. S3 presigned URLs) is left untouched. The per-segment protocol
headers returned by the coordinator always take precedence.
@hashhar hashhar merged commit 0046e86 into trinodb:master Jul 13, 2026
12 checks passed
@hashhar hashhar deleted the hashhar/582-spooling-headers-fix branch July 13, 2026 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Failed to acknowledge spooling request for segment

2 participants