Skip to content

release: ScanLink 0.8.1b2 - #9

Merged
debeski merged 3 commits into
mainfrom
0.8/release_0_8_1b2
Nov 28, 2026
Merged

debeski merged 3 commits into
mainfrom
0.8/release_0_8_1b2

Conversation

@debeski

@debeski debeski commented Nov 28, 2026

Copy link
Copy Markdown
Owner

ScanLink 0.8.1b2 is the second beta of 0.8.1. It carries the fixes for break-it round 2's ScanLink findings, and pairs with the DjangoLux 1.17.0b3 ScanLink page changes. The full list is in ## v0.8.1b2 of CHANGELOG.md.

  • Callbacks reach public HTTPS websites only (R2-010, High). Before, a linked website could list loopback, private or metadata addresses, or ScanLink itself, and every scan was then posted from the operator's computer to that target.
    • Only public HTTPS callback targets are accepted.
    • The host is resolved and checked again at delivery, with no second lookup, so DNS rebinding cannot redirect it.
    • No proxy is used.
    • Deliveries carry X-ScanLink-Delivery, and ScanLink's own endpoints refuse requests that carry it, so a callback can no longer reach /shutdown.
  • Widening a linked list asks again (R2-054). Approval windows are rationed per registrable domain and no longer take focus (R2-056). The window shows every site in full, and hosts with hidden or look-alike characters are refused or shown in xn-- form (R2-115).
  • Bounded callbacks and requests: a 120 s callback deadline and two at a time (R2-055). Requests must complete within 30 s, with at most 64 connections (R2-125).
  • Robustness: the correct page count (R2-118), no orphaned scans after a crash (R2-119), HEAD and cut-off downloads keep the result (R2-120), result lifetimes use a steady clock (R2-121), doc_id and JSON input are checked (R2-122, R2-123), and a deadline hit mid-acquisition is reported as a timeout (R2-124).
  • Build: the PyInstaller build includes callback_transport as a hidden import.

Verification

  • python -m unittest discover -s tests -t .: 129 OK, 1 skipped (Windows-only).
  • Proof of fix: break-it round 2 re-ran R2-010 against this branch twice, with its original harness. The list edit reopens the approval window; every loopback, private and metadata callback is refused with 400 callback_not_allowed; a rebinding host is refused at send; and no request reached the loopback victims.
  • Not run here: the Windows checks need a Windows host. They are callback TLS against a real public HTTPS endpoint, the PyInstaller onefile build, and tests/windows_install_smoke.ps1.

After merge

Tag v0.8.1b2 on main (the owner's call), alongside DjangoLux 1.17.0b3 and Composer 1.11.0b3.

🤖 Generated with Claude Code

debeski and others added 3 commits November 27, 2026 13:26
Break-it round 2 fixes for ScanLink 0.8.1:
- R2-010: callbacks go to public https websites only; the connected
  address is checked after resolving (DNS rebinding), never loopback,
  private, link-local/metadata or this computer; deliveries carry
  X-ScanLink-Delivery and every endpoint refuses them.
- R2-054: a linked site whose list gains a site asks the operator again.
- R2-055: callback answers are never read; 120 s whole-delivery deadline;
  at most two callbacks in flight.
- R2-056: per-domain cooldowns after decline or no answer, an interval
  between unknown websites' windows, known websites pre-empt; no focus grab.
- R2-115 (ScanLink half): the approval window lists every site in full;
  origins with invisible/bidi characters or a trailing dot are refused,
  non-ASCII hosts are stored as IDNA.
- R2-118..R2-125: final page_count, orphaned child cleanup (job object,
  parent watch, temp sweep), HEAD and one retry keep the result, monotonic
  TTLs, doc_id validation and %r logging, strict JSON, mid-acquisition
  deadline stays a timeout, whole-request deadline and connection cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@debeski
debeski merged commit 719a829 into main Nov 28, 2026
3 checks passed
@debeski
debeski deleted the 0.8/release_0_8_1b2 branch November 28, 2026 11:49
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.

1 participant