build(deps): use rustls instead of native-tls for sqlx - #69
Merged
Merged
Conversation
olliebatch
approved these changes
Jul 15, 2026
Switch the sqlx TLS backend from runtime-tokio-native-tls to runtime-tokio-rustls in cqrs-es-crypto and journey_dynamics so the dependency tree no longer links system OpenSSL. rustls (ring + webpki roots) is pure Rust, which lets downstream services ship distroless images without libssl3.
StuartHarris
force-pushed
the
es-capture-partition-validation
branch
from
July 16, 2026 16:46
7eb90e3 to
0662f12
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch the
sqlxTLS backend fromruntime-tokio-native-tlstoruntime-tokio-rustlsincqrs-es-cryptoandjourney_dynamics.Why
The
native-tlsbackend links system OpenSSL (openssl-sys→libssl), which forces consumers to shiplibssland a base image with a package manager. Moving to rustls removesopenssl-sysfrom the dependency tree entirely.rustlshere resolves to ring + webpki roots — pure Rust, statically linked — so downstream services can build minimal/distroless images with no OpenSSL.Changes
cqrs-es-crypto:sqlxdependency + dev-dependency →runtime-tokio-rustlsjourney_dynamics:sqlxdependency + dev-dependency →runtime-tokio-rustlsCargo.lockregenerated (dropsopenssl-sys,native-tls,hyper-tls,security-framework…)Verification
cargo checkclean for both crates.cargo tree -i openssl-sys/cargo tree -i native-tlsare empty.Stacked on #68.