Repository navigation
Add support for HTTP header for Trino - #1774
Merged
Merged
Conversation
starhel
force-pushed
the
trino-http-headers
branch
from
October 26, 2026 11:43
e39586a to
5a8c23f
Compare
Contributor
Author
|
|
starhel
force-pushed
the
trino-http-headers
branch
from
October 26, 2026 11:49
5a8c23f to
f2a2466
Compare
`datacontract api` now answers 422 when DATACONTRACT_TRINO_JWT_TOKEN or DATACONTRACT_TRINO_HTTP_HEADERS is set in the server's environment and the posted contract picks the host, unless DATACONTRACT_TRINO_HOST pins it. Before, only DATACONTRACT_TRINO_PASSWORD was protected this way.
Collaborator
|
Thank you for the PR! I added two commits on top. Apart from that, LGTM :) |
Contributor
Author
|
Thanks for the merge and the improvements! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for custom Trino HTTP headers via DATACONTRACT_TRINO_HTTP_HEADERS, Python Config, and YAML configuration files, for both testing and importing data contracts.
Our organisation requires specific HTTP headers to be sent to Trino for queries to execute successfully. This change allows those headers to be configured without modifying the connector.
uv run pytest)uv run ruff check --fix && uv run ruff format)