Repository navigation
lanpair 1.0.0
The API documented in the README is now stable and follows semantic versioning.
- Security: deeply nested JSON (about 100,000 levels) made
Opener.openraise
RecursionErrorinstead ofEnvelopeError, before any signature check, so anyone on
the LAN could crash a receive loop that only catchesEnvelopeError. It is now rejected
as malformed, and envelopes overOpener.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), withload_identity,save_identityand
delete_identityinlanpair.keystore. Optional:pip install "lanpair[keyring]".lanpair.discovery:Announcertells 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).