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

SSL and clickhouse cloud #10

Open
oatsandsugar opened this issue Feb 18, 2025 · 5 comments
Open

SSL and clickhouse cloud #10

oatsandsugar opened this issue Feb 18, 2025 · 5 comments

Comments

@oatsandsugar
Copy link
Contributor

More of a question than an issue.

I had no problem connecting to my local clickhouse, but when I tried to connect to clickhouse cloud I got this error

> Error executing tool list_databases: Error HTTPSConnectionPool(host='<hostname>', port=443): Max retries exceeded with url: /? (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)'))) executing HTTP request attempt 1 (https://bkat6jn1qy.clickhouse.boreal.cloud:443)

My gut is telling me that this is like when I was trying to connect to it with datagrip, and I had to toggle the USE SSL toggle, but not sure how I would do this in such a connection. Also, apologies if this isn't the best place to post this issue, I didn't see a community slack or anything like that

@iskakaushik
Copy link
Collaborator

@oatsandsugar this is not expected. I made a PR that allows for expanded set of options via env vars here: #11, along with some example configurations: https://github.com/ClickHouse/mcp-clickhouse/pull/11/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R143, would you mind seeing if that helps with this issue? If so, I'll land it.

@oatsandsugar
Copy link
Contributor Author

oatsandsugar commented Feb 18, 2025 via email

@oatsandsugar
Copy link
Contributor Author

Sorry, I commented on the PR, we got it working with verification set to false, but I reckon we should be able to get it working with verification set to true?

Having got this working though, we are getting some incredible results. Happy to share our experiments.

@iskakaushik
Copy link
Collaborator

It would be amazing to see your experiments! It will be useful for me to pair with you to debug the SSL issue as well, could you send an email to kaushik [at] clickhouse.com so we can find a time to pair on this?

@serprex
Copy link
Member

serprex commented Feb 21, 2025

Fixed by #15?

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

3 participants