You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cases where Trino is sitting behind a LB which is doing mTLS there is no way to connect to Trino using the python client.
Using the trino java cli this would be: ./trino --server https://trino-server.com/ --keystore-path=certs.pem --keystore-type=pem --truststore-path=ca.pem --user=test --catalog tpch --password
We need to expose a way to configure the requests session when creating a connection so client certs or headers which need to be passed to LB (which Trino doesn't care about) can be set
I see two options. Add a dedicated arg to the connect method to present client cert. I worry it might confuse people who don't know mtls to figure out what's different between verify and cert/client_cert and they might try to use it interchangeably and fail.
Or make it possible to configure the requests session we use for making requests - this would be more flexible at the cost of complexity to the end user maybe.
I am willing to work on this this/next week.
Describe alternatives you've considered
No response
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
new arg to connect to present cert + client_cert for mTLS?
allow customizing the requests library Session that we use (by passing it into connect for example).
I worry the first option can create confusion compared to verify arg which is for self-signed certs and nothing to do with mTLS? We can probably add a single dict[string, string] arg to connect called mtls_config maybe to clarify?
Describe the feature
In cases where Trino is sitting behind a LB which is doing mTLS there is no way to connect to Trino using the python client.
Using the trino java cli this would be:
./trino --server https://trino-server.com/ --keystore-path=certs.pem --keystore-type=pem --truststore-path=ca.pem --user=test --catalog tpch --password
After a conversation with @hashhar:
I am willing to work on this this/next week.
Describe alternatives you've considered
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: