Repository navigation
Conversation
…writing Route every model, Kobra 3 (20024) included, through connectAnycubicTls: a configured CA and pin are both checked, and nothing (MQTT CONNECT or a client certificate) is written before they pass. A configured client certificate is held until the check, over TLS 1.3 only. A cancel is confirmed only by a report whose job reads canceled or stopped without a fault code; a bare idle leaves the outcome unknown. (cherry picked from commit 4611ed4f9f19a6aa24ced2551a500a7c90919ffa)
The LAN control driver now needs explicit cancel evidence. The simulator reported only free after a stop; it now reports the job as canceled once first. Synthetic, never captured on hardware. (cherry picked from commit bd11b5c569cbea07b34d773b4cc7d2776e0d552f)
bloodf
commented
Nov 26, 2026
bloodf
left a comment
Owner
Author
There was a problem hiding this comment.
The TLS changes look sound at 202903f and all six required checks passed. Please fix qualified cancel confirmation before merging: reject failed envelopes and fault codes before accepting any terminal spelling, with simulator-only regression coverage. Where an identifier is available, correlate the confirmation with the command. Kobra 3 also needs a separate follow-up for confirming cancellation from plain idle; leave the outcome uncertain without explicit evidence.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft until the Full Review verdict on the exact head.
Fixes the four findings from the #965 review that reached main when #965 merged early (#969):
connectAnycubicTls. When a client certificate is configured (certPem and keyPem), it usesholdClientIdentity: truewith TLS 1.3 only, as the Kobra X client does, so no client certificate reaches a server before the CA and pin pass. Without a client certificate it stays on TLS 1.2+.rejectUnauthorized: !pinbranch and its post-handshake leaf-hash check are gone. 20024 goes throughconnectAnycubicTls, so a configured CA and pin are both enforced, and nothing (MQTT CONNECT or a client certificate) is written before the check. Pin-only and no-pin behaviour is unchanged, except that a 20024 pin may now also match the key (SPKI) hash, as for the other models.tests/node/fix-965.test.ts): a relay in front of a TLS server that requests a client certificate asserts that no client certificate and zero MQTT bytes reach the server on a wrong pin, for 20028 and 20024, against TLS 1.3, TLS 1.3 with HelloRetryRequest, and a TLS 1.2-only peer. Positive tests show a matching pin connects and presents the client certificate.Tests that fail on revert:
Known follow-ups, not in this PR yet:
anycubic/control-driver.ts~216-222) still maps idle after a cancel to cancelled.docs/fullfarmmanager/evidence/anycubic-fdm-models.md:86still says a job seen to end only asfreeis recorded as cancelled.freeafter a stop, hardware cancels will end as uncertain. That is the safe direction, but it needs hardware evidence.Local: 46/46 focused tests pass (fix-965, fix-963, anycubic-models, qualify-anycubic). The host's required checks must pass on this head before merging.
Closes #969