Repository navigation
fix: let a station without a sign key be added again - #45
Merged
Merged
Conversation
This was referenced Nov 9, 2026
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.
Problem
"Reset settings" deletes the station's sign key, but the server keeps the old one. After the reset, every connect failed the trust check and showed "Server Not Trusted!". The server still listed the station as added, so the station never offered a new key, and it stayed stuck until someone deleted it on the panel's Devices page. Reproduced on a desk station.
Change
DeviceSettings.added && sign_key != 0). It shows the existing "Device not added" screen, and submit registers a fresh key through the usualAddflow, which a person approves in the panel.[trust] no sign key yet, waiting for the station to be added againinstead. With a key set, a mismatch still shows the error.Only a station with no key at all is affected. A station that has a key keeps today's behaviour, so a server that fails the trust check doesn't get a new key from a station that still holds one.
Needs FKMTime/micro-connector#25: the connector used to drop
Addfrom a device it already knows.Verification
cargo fmt --check; clippy-D warningsfor v3, v4 and v3 +auto_add; release builds for v3 and v4.[trust] no sign key yet, waiting for the station to be added again, with no "Server Not Trusted!". Submit sent a new key, accepting it on the Devices page stored it, and after the next reconnect the handshake logged[trust] server trusted.