-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat: Add SSL/TLS support for ClickHouse connections #6459
base: master
Are you sure you want to change the base?
feat: Add SSL/TLS support for ClickHouse connections #6459
Conversation
docker compose up
|
make test-distributed-migrations
|
/gcbrun |
@patsevanton hi, there are still some CI issues after trying to fix up formatting and typing
sorry for the delay on this. |
@untitaker fixed |
well, that's dumb. apparently our CI workflow breaks on third-party contributions in a very hard to fix way. I'm gonna create another temp branch with your commits in a new PR |
@patsevanton https://github.com/getsentry/snuba/actions/runs/11915367391/job/33206067046?pr=6575#step:7:2090 hope you have access to these logs: seems like launching the testsuite fails because clickhouse still can't connect |
@untitaker you can copy my latest commit 53a73be |
@untitaker I see the failed tests. how can I fix them? (for example: self-hosted-end-to-end) |
Description
This pull request introduces SSL/TLS support for ClickHouse connections in the Snuba project. The changes include new CLI options for enabling secure connections, updates to the ClickhousePool and HTTPBatchWriter classes, and corresponding configuration options in settings and tests.
Changes Overview
CLI Options:
--clickhouse-secure
: If true, an encrypted connection will be used.--clickhouse-ca-certs
: An optional path to certificates directory.--clickhouse-verify
: Verify ClickHouse SSL cert.Class Updates:
ClickhousePool
,HTTPBatchWriter
, and other relevant classes to support SSL/TLS connections.Configuration:
Testing:
Detailed Changes
HTTPBatchWriter
to support SSL/TLS connections.ClickhousePool
to handle SSL/TLS parameters.ClickhouseCluster
to include SSL/TLS configuration.FakeClickhouseCluster
to include SSL/TLS parameters.Related Issues
Related Pull Requests:
Additional Notes
FYI @konstantin-popov
Thank you for reviewing this pull request!
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.