Skip to content

PrintVect 0.5.10: a changed host key says so; Trust it again; hellos checked - #25

Merged
rahulranjan-dev-py merged 1 commit into
mainfrom
ccr-5c5bb225-3h4f6u
Nov 1, 2026
Merged

rahulranjan-dev-py merged 1 commit into
mainfrom
ccr-5c5bb225-3h4f6u

Conversation

@rahulranjan-dev-py

Copy link
Copy Markdown
Owner

The owner's five follow-ups after 0.5.9.

Changes

  1. Changed host key. When the PC at a printer's saved address proves a different identity key with a valid signature for that address (PrintVect or Windows reinstalled there), TcpJobSender throws the new HostIdentityException instead of HostUnreachableException.
    • The PC-name fallback can no longer replace that reason with "did not answer": when the name leads nowhere better, the identity reason is rethrown.
    • ClientService searches once for the host elsewhere. If it isn't found, the job waits for Retry with that reason as its message and is not tried again.
    • The message tells the user to press Trust it again, or to remove and add the printer.
  2. Trust it again on Printers on other PCs.
    • A flagged printer shows an "Identity changed" pill, and the button replaces Test page.
    • The button re-checks the host and, after the person confirms (No is the default; there is an extra warning when the PC reports a different name), takes the newly proven key for every printer of that PC.
  3. Hellos are checked. Every hello first passes the same EnsureHostAsync check as jobs and is skipped if the check fails. Older printers now learn their host's key through that check, so LearnHostKey and the hello-answered event are removed.
  4. Digits-only PIN warning. Settings shows a "Digits only" pill and note when the sharing PIN is digits only, and Diagnostics shows "Sharing PIN is digits only".
  5. Fixes.
    • The SharingDialog comment now says 8 to 12.
    • The PinDialog summaries are back on the right methods.
    • The README example now reads /pin <the sharing PIN>.
  6. docs/testing.md.
    • 0.5.9 step 2 now states the message 0.5.9 really shows.
    • A new 0.5.10 section covers reinstalling PrintVect on HOST, Trust it again, the hello check and the digits-only warning.

Version 0.5.10. Also updated: protocol.md, SECURITY.md, README.md, CLAUDE.md and CHANGELOG.md.

Checked

  • 190 tests pass on Mono. New tests cover:
    • the verdict kinds, including that a key not proven for the address is never offered for trust;
    • that a changed key keeps its reason after the PC-name fallback, against a real host on loopback;
    • the job message after one search;
    • that a hello is only sent to a PC that proves the key.
  • The Settings digits-only warning was rendered under Xvfb.

Generated by Claude Code

…checked

The owner's follow-ups after 0.5.9:

- MovedHostVerdict tells "did not answer" (Unreachable) from "proved a
  different key with a valid signature for this address" (KeyChanged,
  NewKeyId) and from "no proof". TcpJobSender throws HostIdentityException
  for the last two; when the PC-name try after it leads nowhere better,
  the identity reason is rethrown instead of the name's "did not answer".
  ClientService searches once, then keeps the job for Retry with that
  reason as its message (no more tries).
- Trust it again (Printers on other PCs): a printer whose host proved a
  different key shows "Identity changed" and the button in place of Test
  page. It checks the PC again and, after the person confirms (No is the
  default; a warning when the PC gives another name), takes the new key
  for every printer of that PC.
- Hellos pass the same EnsureHostAsync check as jobs and are skipped when
  it fails; key learning for older printers happens there, so the hello
  reply event and LearnHostKey are gone.
- Settings and Diagnostics warn about a digits-only sharing PIN.
- Fixes: SharingDialog comment (8 to 12), PinDialog summaries in the right
  place, README "/pin <the sharing PIN>".
- docs/testing.md: 0.5.9 step 2 states what 0.5.9 really shows; new
  0.5.10 section with the reinstall-HOST steps.
- Tests: changed key keeps its reason after the name fallback, job
  message after one search, hello only to a proven PC, verdict kinds.
- Version 0.5.10; protocol.md, SECURITY.md, README, CLAUDE.md, CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JFV1W7wPfiMU9itafQutsk
@rahulranjan-dev-py
rahulranjan-dev-py merged commit ce2094d into main Nov 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants