Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soda can't connect to trino using a self-signed certificate #2046

Open
resleal opened this issue Mar 27, 2024 · 3 comments
Open

Soda can't connect to trino using a self-signed certificate #2046

resleal opened this issue Mar 27, 2024 · 3 comments

Comments

@resleal
Copy link

resleal commented Mar 27, 2024

Hi everyone! I'm trying to connect soda to trino but using username and password and a self-signed certificate.

It does not work because there is no parameter "verify" in soda-core-trino [1] that can be passed to python-trino to address this situation [2].

It seems like a simple fix but I don't really know how to submit/contribute on github. That's what I would do:

  • after line 74 add this: self.verify_ssl = data_source_properties.get("verify_ssl", None)
  • then after line 98 add this: verify=self.verify_ssl

References:
[1] https://github.com/sodadata/soda-core/blob/main/soda/trino/soda/data_sources/trino_data_source.py
[2] https://github.com/trinodb/trino-python-client/blob/master/trino/dbapi.py#L187

@tools-soda
Copy link

SAS-3131

@bastienboutonnet
Copy link
Contributor

Hi @resleal and thanks for contributing already by opening this issue and proposing a fix.

We would really welcome a pull request from you on this.

In order to contribute to this project with GitHub, we would recommend checking out this documentation page. Basically fork the repo, make your changes, push it to your work and open a PR.

contributing to GitHub projects

@iwoork
Copy link

iwoork commented May 8, 2024

The fixed above worked for me. I think it's worthy of a PR and getting it integrated into the core trino data source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants