Skip to content

build(deps): use rustls instead of native-tls for sqlx - #69

Merged
StuartHarris merged 1 commit into
mainfrom
tls-rustls
Jul 21, 2026
Merged

StuartHarris merged 1 commit into
mainfrom
tls-rustls

Conversation

@StuartHarris

@StuartHarris StuartHarris commented Jun 30, 2026

Copy link
Copy Markdown
Member

Switch the sqlx TLS backend from runtime-tokio-native-tls to runtime-tokio-rustls in cqrs-es-crypto and journey_dynamics.

Why

The native-tls backend links system OpenSSL (openssl-syslibssl), which forces consumers to ship libssl and a base image with a package manager. Moving to rustls removes openssl-sys from the dependency tree entirely.

rustls here resolves to ring + webpki roots — pure Rust, statically linked — so downstream services can build minimal/distroless images with no OpenSSL.

Changes

  • cqrs-es-crypto: sqlx dependency + dev-dependency → runtime-tokio-rustls
  • journey_dynamics: sqlx dependency + dev-dependency → runtime-tokio-rustls
  • Cargo.lock regenerated (drops openssl-sys, native-tls, hyper-tls, security-framework…)

Verification

  • cargo check clean for both crates.
  • cargo tree -i openssl-sys / cargo tree -i native-tls are empty.

Stacked on #68.

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
StuartHarris force-pushed the es-capture-partition-validation branch from 7eb90e3 to 0662f12 Compare July 16, 2026 16:46
Base automatically changed from es-capture-partition-validation to main July 16, 2026 17:33
@StuartHarris
StuartHarris merged commit bf717a1 into main Jul 21, 2026
1 of 2 checks passed
@StuartHarris
StuartHarris deleted the tls-rustls branch July 21, 2026 07:52
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