Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(s2n-quic-rustls): mark re-exported types as deprecated #2176

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Apr 5, 2024

Description of changes:

Our rustls TLS provider re-exported the rustls crate in order to give customers more flexibility when configuring their TLS backend. However, this meant that we were shipping with the rustls API in the s2n-quic crate. Each time rustls has a breaking change, it ends up breaking the s2n-quic 1.x stability guarantees.

In hindsight, it was probably a mistake to re-export a dependency's API (especially pre-1.x) and this PR corrects that by marking those exports as deprecated.

This change also adds a with_prefer_server_cipher_suite_order option to the rustls TLS builder to ease migration off of the re-exported rustls crate.

Testing:

Existing CI

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@toidiu toidiu force-pushed the camshaft/rustls-deprecated branch from 754bfd0 to a6fb91b Compare April 5, 2024 21:24
@toidiu toidiu marked this pull request as ready for review April 5, 2024 21:53
@camshaft camshaft enabled auto-merge (squash) April 5, 2024 22:08
@toidiu toidiu mentioned this pull request Apr 5, 2024
@camshaft camshaft merged commit 5afe1e1 into main Apr 5, 2024
126 checks passed
@camshaft camshaft deleted the camshaft/rustls-deprecated branch April 5, 2024 22:23
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.

3 participants