Skip to content

lanpair 1.0.0

Choose a tag to compare

@TonyD365-Agent TonyD365-Agent released this 21 Nov 15:04
· 30 commits to main since this release
84bedfa

The API documented in the README is now stable and follows semantic versioning.

  • Security: deeply nested JSON (about 100,000 levels) made Opener.open raise
    RecursionError instead of EnvelopeError, before any signature check, so anyone on
    the LAN could crash a receive loop that only catches EnvelopeError. It is now rejected
    as malformed, and envelopes over Opener.max_size (1 MiB by default) are refused before
    parsing. Found by the simulated-network test.
  • load_or_create_identity() keeps the device's seed in the OS key store (macOS Keychain,
    Windows Credential Manager, Secret Service), with load_identity, save_identity and
    delete_identity in lanpair.keystore. Optional: pip install "lanpair[keyring]".
  • lanpair.discovery: Announcer tells the LAN where a device listens, and
    browse() / find(device_id) locate devices with mDNS / DNS-SD. Announcements are
    validated and treated as untrusted hints. Optional: pip install "lanpair[discovery]".
  • Property-based tests (Hypothesis) and coverage-guided fuzzing of Opener.open (Atheris,
    60 s on every CI run). CI installs from hash-pinned lock files (requirements/).
  • e2e/: an end-to-end test in a simulated LAN with an attacker node, run before releases.

Install: pip install lanpair (extras: lanpair[keyring,discovery])

Upgrading from 0.1.0 is strongly recommended: it fixes a denial-of-service in Opener.open (see the security advisory).