Skip to content

Trino python client doesn't respect forwarded HTTP header #494

Open
@FPGAwesome

Description

Expected behavior

When Trino coordinator has http-server.process-forwarded=true set, connections over http can be assumed secured by LB or proxy and should be allowed.

Actual behavior

This client setting prevents such connections from occurring:

if self._http_scheme == constants.HTTP:

Steps To Reproduce

Connecting to trino via http using any authentication method will raise the error, with or without headers in place..

Log output

No response

Operating System

Windows

Trino Python client version

0.330.0

Trino Server version

464

Python version

3.11

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions