Repository navigation
Conversation
|
Thanks for moving this into the library. I've opened #139 with a smaller version. It sets Could you check whether #139 gives your fridge the same outcome as your patch did? I don't have that model, so I can't test it here. If you can, a run without any patch just before it would also show whether the ticket change fixed #136. |
Yep I'll test today and revert. thanks! |
I checked and solely applying #139 brought the fridge not working - unfortunately. I'm investigating it further ... |
|
Tested both on the fridge. #139 does not give the same outcome — it ran for about seven minutes and then failed permanently; #137 recovered it in seconds. Same host, same Home Assistant, same libraries, same appliance — only the deployed
Measured on that host with
#139 is a 4-byte change — the Both branches pass here on 3.14 (full suite 1395 passed for each). One heads-up for anyone reproducing: a bare |
I'm submitting anyway a draft for your evaluation, let me know if you agree with the approach.
I started from the LocalThings-side workaround that was closed in mbillow/localthings#862. That workaround did the same thing from outside the package: it reached into the certificate-backed DTLS contexts and forced the narrow classic cert profile my refrigerator accepts.
This changes only the certificate-backed DTLS profile. It keeps the existing ECDHE-ECDSA-AES128-GCM-SHA256 cipher list, but it also disables TLS 1.3 and tickets on the certificate contexts, which stops OpenSSL 3 from putting TLS 1.3 suites and extensions into the first ClientHello.
I applied it in the same places that already own the certificate DTLS shape: auth.py for the provider contexts, and dtls_probe.py for the stateless probe and diagnostic contexts. The PSK path is untouched.
On my refrigerator, before this change the stateless probe gets no useful first-flight response and the diagnostic path returns a fatal handshake_failure. After the change, the ClientHello is a single classic DTLS 1.2 flight, HelloVerifyRequest comes back, and the diagnostic drive reaches the full server flight. Home Assistant/LocalThings setup succeeds and the device stays online.
I kept the claim narrow because that is the appliance I measured. I am not asking to say that every Samsung certificate-backed appliance behaves this way.
For now, this is a compatibility default for the certificate-backed path that was already narrow; PSK remains separate.
Tests: I updated the existing profile expectations because the certificate contexts now set the expected options, and I added a ClientHello shape test that checks the certificate-backed first flight does not advertise TLS 1.3 suites or TLS 1.3-only extensions.
This is a draft because I would like feedback on whether this should live as a default here, as an opt-in flag, or as a separate Samsung profile/provider.
Thanks! Tabascoz