Skip to content

deps: move to rustls 0.23 - #216

Merged
congwang-mk merged 1 commit into
mainfrom
rustls-0.23
Sep 10, 2026
Merged

deps: move to rustls 0.23#216
congwang-mk merged 1 commit into
mainfrom
rustls-0.23

Conversation

@congwang-mk

Copy link
Copy Markdown
Contributor

Summary

Bumps rustls 0.22 to 0.23 (with tokio-rustls 0.26 and hyper-rustls 0.27) so rustls-webpki can move to the 0.103 line. The lockfile now carries rustls-webpki 0.103.15, which covers all four advisories from #214:

The 0.22 pin was inherited from hudsucker, which was dropped earlier, so nothing else held it.

Provider handling

rustls 0.23 picks a crypto provider at runtime and panics if more than one is compiled in with none installed process-wide. The three builder sites (server config, upstream connector, test client) now pass the ring provider explicitly, so a downstream crate that also enables aws-lc-rs is unaffected. Our own features keep aws-lc-rs out of the tree, so the build still needs no cmake or C toolchain.

Test plan

  • cargo build --workspace
  • cargo test -p sandlock-core --lib transparent_proxy (8 passed)
  • cargo test -p sandlock-core --test integration http (16 passed, covers HTTP ACL, HTTPS MITM, credential injection, CA injection)

Fixes #214

rustls 0.22 caps rustls-webpki at 0.102, which no longer receives fixes.
Four advisories (GHSA-82j2-j2ch-gfr8, GHSA-pwjx-qhcg-rvj4,
GHSA-xgp8-3hg3-c2mh, GHSA-965h-392x-2mh5) only landed in 0.103, so
every consumer of sandlock-core inherits them for as long as the pin
stays. The pin was inherited from hudsucker, which is gone.

rustls 0.23 selects a crypto provider at runtime and panics when more
than one is compiled in and none is installed process-wide. Pass the
ring provider explicitly at each builder so a downstream crate that
also enables aws-lc-rs does not trip that, and keep aws-lc-rs out of
our own tree so the build needs no cmake or C toolchain.

Fixes #214

Signed-off-by: Cong Wang <cwang@multikernel.io>
@congwang-mk
congwang-mk merged commit 35076af into main Sep 10, 2026
17 checks passed
@congwang-mk
congwang-mk deleted the rustls-0.23 branch September 10, 2026 16:33
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.

rustls = "0.22" pin blocks 4 rustls-webpki security fixes (High/Medium/Low x3)

1 participant