Skip to content

LEEBKIT v1.41 — audit hotfix pass

Choose a tag to compare

@leeblaab leeblaab released this 14 Nov 19:26
· 51 commits to master since this release

LEEBKIT v1.41 — audit hotfix pass

Eight commits, one per fix, each test-first (RED before the fix) with the golden-frame
baseline and smoke gate green at every step. No baseline regeneration was needed:
every pixel output is unchanged except where a bug's visible symptom was the fix target.

Bug fixes

  • voice_speed now reaches the final mix — the VO plan carried the speed for duration math but the mix loop re-synthesized without it, so a sped-up VO played at 1.0x in the output. The plan now carries the synthesized wav path itself (40f2d4b).
  • README no longer claims "incremental render" — that feature does not exist; the sentence is removed and true incremental rendering is parked for v1.5 (509f4d2).

Security hardening

  • Host allowlist + WebSocket Origin gate — loopback binding alone wasn't a trust boundary: a DNS-rebinding page could reach 127.0.0.1 with a foreign Host header. TrustedHostMiddleware now rejects foreign hosts (400) and the WS handshake refuses foreign browser Origins before accepting (3b7a80f). Live-verified against a spare-port server: foreign Host/Origin refused, ours served.
  • UI escaping hardened — esc() covered only < and "; it now escapes all five HTML-significant characters (& first), and every interpolation site in the UI templates (image src, data attributes, output links, flags, strip URLs) goes through it (e0e1ca6).
  • Music beds confined to music/ — an absolute path in project JSON could read any audio file on disk. Every bed now resolves by basename inside the shipped music folder and anything escaping it is rejected (47be295).

Performance

  • Transitions render the outgoing layer once — inside a transition window HEAD built the full outgoing layer twice per frame and discarded the first result (~12 wasted renders per fade boundary). One build now, pixel-identity proven by hashing every frame of a transition-bearing render before and after (00b388e).
  • PNG intermediates at compress_level=1 — the three intermediate-save sites were deflating at max level for files deleted seconds after ffmpeg reads them. Measured 48-frame A/B: 11.4s → 7.7s (~33% faster frame leg), still lossless (d6d9621).

Small guards

  • Upload routes return a clean 400 when a multipart part has no filename (was a 500 on None.lower()); _sniff_audio no longer indexes a 1-byte head; logger renamed reelkit → leebkit; /api/style_preview response echoes the frames it actually renders; /api/meta gained an identity sentinel and start.bat probes it before opening the browser — a foreign service squatting port 8735 now gets a warning instead of a browser pointed at it; README Python note corrected (app 3.11–3.14, Piper VO 3.11–3.13) (cd67745).

Gate trail

GOLDEN PASS (1314 frames, baseline intact) · SMOKE PASS 52 checks · CLI render ffprobe: 90/90 frames at 1080×1920@30fps · Linux CI on this tag.