-
Notifications
You must be signed in to change notification settings - Fork 5.2k
disable rustls tls12 feature #28956
disable rustls tls12 feature #28956
Conversation
@github-actions, that's not very nice |
@ripatel-jump Please tag appropriate folks to review the change. |
Not sure who to ping, but I've shared this change in the |
@ripatel-jump, the PR needs a rebase. Could you rebase and push? |
94d2fd9
to
9071827
Compare
Thanks for taking a look @pgarg66, just rebased. |
Could this change cause a compatibility issue between client running on older version vs streamer running on the updated version (or vice versa), since we are disabling some features in |
@pgarg66 This will not cause any compatibility issues between any existing Labs validators because it only restricts the available cipher suites and TLS versions, but not add any new ones. The TLS handshake protocol is designed to gracefully handle changes like this PR. With or without this patch, Solana validators will negotiate TLS 1.3 with The only incompatibility issue that could be caused by this patch is breakage of clients that don't support TLS 1.3 yet. Sadly, some stacks can only speak TLS 1.2. That said, TLS 1.3 (first conceived 2014, finalized August 2018) predates the entire Solana protocol. So IMO, it is reasonable to enforce TLS 1.3 for additional security and protocol simplification. Further reasons are in the linked specs PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! r+ ci (pretty sure only blocked on flake)
Problem
Currently, Solana advertises support for legacy TLS 1.2 cipher suites (
0xc0??
).TLS 1.3 is widely supported at this point -- for security and simplicity, support for TLS 1.2 should be disabled.
Summary of Changes
Disables the default
tls12
feature on therustls
dependency.See solana-foundation/specs#21
Fixes #