Skip to content

fix: enable native-tls for ClickHouse HTTPS connections#106

Merged
kamsz merged 2 commits intomainfrom
kamil/ch-native-tls
Feb 25, 2026
Merged

fix: enable native-tls for ClickHouse HTTPS connections#106
kamsz merged 2 commits intomainfrom
kamil/ch-native-tls

Conversation

@gakonst
Copy link
Copy Markdown
Contributor

@gakonst gakonst commented Feb 25, 2026

Summary

Enable TLS support for the clickhouse crate so HTTPS URLs work.

Motivation

Using https:// in [chains.clickhouse].url fails with:

invalid URL, scheme is not http; if you are trying to connect via HTTPS, consider enabling native-tls or rustls-tls feature

Changes

  • Cargo.toml — add native-tls to clickhouse crate features

Testing

  • cargo check — compiles clean

Prompted by: kamil

@kamsz kamsz merged commit bd2ef1c into main Feb 25, 2026
1 check passed
o-az pushed a commit that referenced this pull request Apr 27, 2026
* fix: enable native-tls for ClickHouse HTTPS connections

Amp-Thread-ID: https://ampcode.com/threads/T-019c93fb-bbb6-70c0-871a-d0be3ee31755
Co-authored-by: Amp <amp@ampcode.com>

* fix: use rustls-tls instead of native-tls

Amp-Thread-ID: https://ampcode.com/threads/T-019c93fb-bbb6-70c0-871a-d0be3ee31755
Co-authored-by: Amp <amp@ampcode.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
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

Successfully merging this pull request may close these issues.

2 participants