Repository navigation
Backport #12374 to release-7.3 - #13089
Conversation
* use sni in the tls handshake * Ran clang-format -i * Remove accidental overcommit * drop too spamy logs * clang-format -style=file -i flow/Net2.actor.cpp --------- Co-authored-by: stack <stack@duboce.com> (cherry picked from commit 947276f)
|
@spraza Would it be possible to get your thoughts here on whether this is an acceptable change? Tagging you here since you reviewed the 7.4 backport and the original change! |
release-7.3
@arnav-ag change lgtm at a high level. In the context of 7.3, I am still discussing with some folks. Meanwhile:
|
@spraza I think your understanding here is right, we would have to revert the commit on release-7.3, cut a new patch release, redeploy. There's no runtime knob to disable the new path. A couple of things that bound the blast radius:
Yep, i more or less followed the packet capture technique from the original PR, but fleshing it out here for repro if it helps: 1. Setup
2. Triggerfdbbackup describe -d 'blobstore://AKIA_dummy:dummy_secret@localhost:14444/test-bucket?bucket=test-bucket&secure_connection=1®ion=us-east-1' \
--log --logdir=/tmp/sni-test/logsUsing 3. ObservationsTrace log (FDB's own logging): $ grep "SSLSetSNIResult" /tmp/sni-test/logs/trace.*.xml
Type="SSLSetSNIResult" Hostname="localhost" Result="1" Addr="127.0.0.1:14444:tls(fromHostname)"
Wire capture (tshark dissecting the pcap): $ tshark -r /tmp/sni-test/capture.pcap -Y 'tls.handshake.type == 1' \
-T fields -e frame.number -e tls.handshake.extensions_server_name
5 localhost
26 localhost$ tshark -r /tmp/sni-test/capture.pcap -Y 'tls.handshake.type == 1' -V | grep -A 6 server_name
Extension: server_name (len=14) name=localhost
Server Name Indication extension
Server Name Type: host_name (0)
Server Name: localhostThe pcap has the SNI extension on the wire, 2/2 Client Hellos carry Perhaps most importantly, we have been already running this patch backported on the 7.3 branch internally for the past few months with GCS backups and can attest that it works. |
|
closing and re-opening to trigger PR checks |
Result of foundationdb-pr-clang-73 on Linux RHEL 9
|
Result of foundationdb-pr-73 on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests-73 on Linux RHEL 9
|
|
just testing the codebuild thing a bit ... /codebuild_run(d79bd72) |
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
* use sni in the tls handshake * Ran clang-format -i * Remove accidental overcommit * drop too spamy logs * clang-format -style=file -i flow/Net2.actor.cpp --------- (cherry picked from commit 947276f) Co-authored-by: Evgeny <evgeny.kuzin@outlook.com> Co-authored-by: stack <stack@duboce.com>
cherrypick #12374, similar to #12385 which was for release-7.4. i believe this is a bug fix that should be backported since it affects the usage of some S3-compatible blob storages, such as GCS, as can be seen in the original PR's description
use sni in the tls handshake
Ran clang-format -i
Remove accidental overcommit
drop too spamy logs
clang-format -style=file -i flow/Net2.actor.cpp
(cherry picked commit e810d64)