Skip to content

Bump rustls-webpki to 0.103.13#1062

Merged
ladvoc merged 3 commits intolivekit:mainfrom
gasmith:bump-rustls-webpki
May 8, 2026
Merged

Bump rustls-webpki to 0.103.13#1062
ladvoc merged 3 commits intolivekit:mainfrom
gasmith:bump-rustls-webpki

Conversation

@gasmith
Copy link
Copy Markdown
Contributor

@gasmith gasmith commented May 7, 2026

Before you submit your PR

Make sure the following is true before submitting your PR:

  • I have read the contributing guidelines and validated that this PR will be accepted.
  • I have read and followed the principles regarding breaking changes, testing, and code quality.

PR description

This change bumps rustls-webpki from 0.101.7 to 0.103.13, to address GHSA-82j2-j2ch-gfr8 and fixes #1058.

The change is mostly mechanical, but involved upgrading several related crates, and taking an explicit dependency on bytes:

  • tokio-tungstenite: 0.20 -> 0.29
  • async-tungstenite: 0.25 -> 0.29
  • tokio-rustls: 0.24 -> 0.26
  • rustls-native-certs: 0.6 -> 0.8

Note that rustls-native-certs changed load_native_certs to return a CertificateResult { certs, errors } instead of a Result, which means that a single unparseable trust-store entry no longer fails the whole load. The proxy-TLS path now logs errors and fails only when certs is empty, which mirrors the way that tokio-tungstenite does things. This is strictly more permissive than the previous code.

Breaking changes

Nothing serious. Technically, tungstenite::Error (which experienced breaking changes) is leaked through SignalError::WsError, but it's unlikely anyone is actually using that. It's not documented, and it's not leaked (in a reachable way) through the livekit crate. This would only impact crates that depend on livekit-api directly.

MSRV

No impact

Testing

I'm not sure of the best way to test this change. In particular, the proxy + wss:// + rustls-tls-native-roots portion doesn't seem to have any automated test coverage. Unfortunately, this is the portion most heavily impacted by the upgrade.

gasmith added 2 commits May 6, 2026 17:14
This change bumps rustls-webpki from 0.101.7 to 0.103.13, to address
GHSA-82j2-j2ch-gfr8.

The change is mostly mechanical, but involved upgrading several related
crates, and taking an explicit dependency on `bytes`:

- tokio-tungstenite: 0.20 -> 0.29
- async-tungstenite: 0.25 -> 0.29
- tokio-rustls: 0.24 -> 0.26
- rustls-native-certs: 0.6 -> 0.8

I'm not sure of the best way to test this change. In particular, the
proxy + wss:// + rustls-tls-native-roots portion doesn't seem to have
any automated test coverage. Unfortunately, this is the portion most
heavily impacted by the upgrade.

Note that `rustls-native-certs` changed `load_native_certs` to return a
`CertificateResult { certs, errors }` instead of a `Result`, which means
that a single unparseable trust-store entry no longer fails the whole
load. The proxy-TLS path now logs errors and fails only when `certs` is
empty, which mirrors [the way that `tokio-tungstenite` does things](
https://github.com/snapview/tokio-tungstenite/blob/751d7e2bc26e5de302f4a79907b6949bf00e0043/src/tls.rs#L98-L113). This
is strictly more permissive than the previous code.
@ladvoc ladvoc requested review from ladvoc and xianshijing-lk May 7, 2026 18:28
@ladvoc
Copy link
Copy Markdown
Contributor

ladvoc commented May 7, 2026

@gasmith, thank you for your contribution! We will validate this to make sure there are no regressions and get it merged ASAP.

@ladvoc
Copy link
Copy Markdown
Contributor

ladvoc commented May 7, 2026

@gasmith, please add the following changeset at .changeset/bump_rustls_webpki.md and then this is ready to merge:

---
livekit-ffi: minor
livekit: patch
livekit-api: minor
---

# Bump `rustls-webpki` to 0.103.13, addressing [GHSA-82j2-j2ch-gfr8](https://github.com/advisories/GHSA-82j2-j2ch-gfr8)

@gasmith
Copy link
Copy Markdown
Contributor Author

gasmith commented May 7, 2026

@gasmith, please add the following changeset at .changeset/bump_rustls_webpki.md and then this is ready to merge:

Done! Thanks for the quick review.

@ladvoc ladvoc merged commit 9433877 into livekit:main May 8, 2026
18 of 19 checks passed
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.

livekit-api: Update rustls-webpki >= 0.103.13 to fix GHSA-82j2-j2ch-gfr8

2 participants